Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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 3 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_ISRTMR_POST_DEFERRED_EN EN                enables OS_IntQTask()

Advanced applications may not require the Tick task or the Idle task. To disable a task, set its configuration option to DEF_DISABLED in os_cfg.h. The following configuration parameters affect the Tick and Idle tasks, respectively:

  • OS_CFG_TASK_TICK_EN
  • OS_CFG_TASK_IDLE_EN

 

...

  • TmrTask()