...
void OSIdleTaskHook (void);
File | Called from | Code enabled by |
|
...
|
...
...
N/A |
Anchor
OS_IdleTask()
.OSIdleTaskHook()
is part of the CPU port code and this function must not be called by the application code. OSIdleTaskHook()
is used by the µC/OS-III port developer.
Anchor
OSIdleTaskHook()
runs in the context of the idle task and thus it is important to make sure there is sufficient stack space in the idle task. OSIdleTaskHook()
must not make any OS???Pend()
calls, call OSTaskSuspend()
or OSTimeDly???()
. In other words, this function must never be allowed to make a blocking call.Arguments
...
None Anchor
Returned Value
...
None 1051002 Anchor
Notes/Warnings
...
...
Example
...
The code below calls an application-specific hook that the application programmer can define. The user can simply set the value of OS_AppIdleTaskHookPtr
to point to the desired hook function which in this case is assumed to be defined in os_app_hooks.c
. The idle task calls OSIdleTaskHook()
which in turns calls App_OS_IdleTaskHook()
through OS_AppIdleTaskHookPtr
.
Anchor
...
rowspan | 9 |
---|
...