...
Returned Value
None
Notes/Warnings
- Execution time of this task depends on the size of the task’s stack.
- The application can determine the total task stack space (in number of
CPU_STK
elements) by adding the value of*p_free
and*p_used
. This number should add up to the task’s stack size which is stored in the.StkSize
field of theOS_TCB
of the task. - The
#define
CPU_CFG_STK_GROWTH
must be declared (typically fromos_cpu.h
). When this#define
is set toCPU_STK_GROWTH_LO_TO_HI
, the stack grows from low memory to high memory. When this#define
is set toCPU_STK_GROWTH_HI_TO_LO
, the stack grows from high memory to low memory.