OS_IdleTask()
is the very first task created by µC/OS-III and always exists in a µC/OS-III-based application. The priority of the idle task is always set to OS_CFG_PRIO_MAX-1
. In fact, OS_IdleTask()
is the only task that is ever allowed to be at this priority and, as a safeguard, when other tasks are created, OSTaskCreate()
ensures that there are no other tasks created at the same priority as the idle task. The idle task runs whenever there are no other tasks that are ready-to-run. The important portions of the code for the idle task are shown below (refer to os_core.c
for the complete code).
Manage space
Manage content
Integrations