void OSInitHook (void);
File | Called from | Code enabled by |
|
| Always enabled |
Description
OSInitHook()
is is a function that is called by µC/OS-III’s initialization code, OSInit()
. OSInitHook()
is 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 is called at the beginning of of OSInit()
, before any µC/OS-III task and data structure have been initialized.
Files
os.h/os_cpu_c.c
Prototype
Code Block |
---|
void OSInitHook (void) |
Arguments
None
Returned Values
None
Required Configuration
None
Callers
OSInit(
).
Notes/Warnings
None
Example Usage
Code Block | ||
---|---|---|
| ||
void OSInitHook (void) /* See os_cpu_c.c */
{
/* Perform any initialization code necessary by the port */
} |