Can anybody tell me what is the max no. of priorities in FreeRTOs ? According to FreeRTOSConfig.h its max value is upto 0xFFFF FFFF(i.e. 4 bytes ).
What is the max. no. of tasks possible in FreeRTOs ?
Please help me in this topic.
Thanks in advance
You can keep adding tasks until you run out of RAM. There is no maximum.
Thanks for Your reply about tasks. But what about max no. of priorities in FreeRTOs ?
Is it as big as a unsigned long ?
The maximum number of priorities can be defined with configMAX_PRIORITIES in FreeRTOSConfig.h
But I don’t think it’s usefull to use more than 5 priorities. And as far as I know: the more priorities the longer the switching time
Thanks for reply.
I know that but what is max value which we can configure there ?
One more thing that I didn’t get any defination tskIDLE_PRIORITY in source code. Can You tell where it is defined or what is it ?
I think its an odd question - I don’t see why its useful - but the actually answer is the maximum value a variable of type portBASE_TYPE can hold. So if portBASE_TYPE is 32bit, this would be 0xffffffff.
tskIDLE_PRIORITY is 0, the tsk on the front tells you its defined in task.h. I’m sure this information is on the WEB site.