Task Function in FreeRTOS
Task Function in FreeRTOS
xTaskCreate() then the required RAM is automatically allocated from the FreeRTOS
heap. If a task is created using xTaskCreateStatic() then the RAM is provided by the
application writer, so it can be statically allocated at compile time. See the Static Vs Dynamic
allocation page for more information.
pvTaskCode Pointer to the task entry function (just the name of the function
that implements the task, see the example below).
The stack depth multiplied by the stack width must not exceed the
maximum value that can be contained in a variable of
type size_t.