OSInitHook()
void OSInitHook (void);
File |
Called from |
Code enabled by |
os_cpu_c.c |
OSInit() |
Always enabled |
OSInitHook() is a function that is called by µC/OS-III’s initialization code, OSInit(). OSInitHook() is typically implemented by the port implementer for the processor used. This hook allows the port to be extended to do such tasks as setup exception stacks, floating-point registers, and more. OSInitHook() is called at the beginning of OSInit(), before any µC/OS-III task and data structure have been initialized.
Arguments
None
Returned Values
None
Notes/Warnings
None
Example
void OSInitHook (void) /* See os_cpu_c.c */ { /* Perform any initialization code necessary by the port */ } |