Hello, welcome back.
In this lesson, we shall talk about free artist types who talk about data types as well as the variable
types.
And these are just these are just.
New nomenclature or naming conventions used in free Archos, they are no like different types from what
we are used to.
And in fact, this very first light describes what I'm talking about.
So Free describes this to underscore type and basically wherever you see take an escort is a 16 bitz
type you into 16 bit or you into 32 bit based on the configuration settings.
And what this means is we can go to our free Arktos Kernell settings and see that, OK, we want it
to be 16 bits or we want it to be 32 bits.
So this ATIC type, it can be you in 16 or you instead of two.
But there's also another data type known as the base type is written like this.
This is a you into 16 bits type.
If you are running a 16 bit architecture such as Atme or EPIK microcontroller on our arm architecture,
the base type is 32 bit.
So this is architecture specific.
So whenever you require a 32 bit data type, you can just see this type underscore T and then you give
the variable name right.
So that Tic-Tac the base type.
OK, now let's see some naming conventions of variables.
Right.
So variables are often prefixed with the AR type.
So whenever you see in three ATA's a variable name, starting with C, this indicate it's a character
type.
Whenever you see a variable name starting with S, it's indicates it's a short type or an unsigned 16
bit type if you see a variable name starting with the letter L..
This shows that it's assigned 32 bit type or a long type.
And the other variables that start with X and this means they are off base type and any other non-standard
types.
So if we are to declare a structure, for instance, a structure variable would start with X at Task
Hondo, we start with execution style X..
The reason we are talking about this is so that when are going through the Free Arktos documentation
or source code of the Arktos, can you see these naming conventions and you'll be able to make use of
them.
OK.
And when we see a variable name, start with you, it's indicates this is an unsigned type.
And of course Pointis will start with the letter P.
OK.
Moving on, so let's see the function names, so just like we said, the variables have prefix functions
also have prefix functions are prefixed with both that type they return and therefore they are defined
within.
For example, we have this function v task priority prioritises.
This returns a void type, hence the letter V this the type it retains and is defined within the task
C as the named task.
So it's first prefixed with the type it's retains in this case void.
And then the second word is the following, which we find it.
We find this in the task.
Doxey file as Task C over here we have this other example X you receive this returns a variable off
base type.
Remember we said base type is the prefix X and we find this in the kudasai file is the next word is
Q of course these functions will use them in the course.
OK, and then we have this other function.
This one has two letters as a prefix.
We have Peevey time to get time ID.
This returns a pointer to avoid his Peevey pointer to avoid and is defined in the time as those cifas
OK as we have this.
So you should, you would be seeing a lot of this as we used if we are to call APIs.
OK, so this order is for this lesson.
I've seen the next lesson.
Have a nice day.