During initialization, µC/OS-III creates a minimum of two (2) internal tasks (OS_IdleTask()
and OS_TickTask()
) and, three (3) optional tasks (OS_StatTask()
, OS_TmrTask()
and OS_IntQTask()
). The optional tasks are created based on the value of compile-time #defines
between 0 and 4 internal tasks depending on configuration constants found in os_cfg.h:
OS_CFG_STATTASK_TASKIDLE_EN enables OS_StatTaskIdleTask()
OS_CFG_TMRSTAT_TASK_EN enables OS_TmrTaskStatTask()
OS_CFG_ISRTASK_POST_DEFERREDTICK_EN enables OS_IntQTask()
...
TickTask()
OS_CFG_TASKTMR_TICK_EN
OS_CFG_TASK_IDLE_EN
...
EN enables OS_TmrTask()