...
Description
OSInitHook()
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. Anchor
Files
os.h/os_cpu_c.c
Prototype
Code Block |
---|
void OSInitHook (void) |
Arguments
None
Returned Values
anchorNone1000598
Required Configuration
Callers
OSInit(
).
Notes/Warnings
Anchor
Example Usage
...
Code Block |
---|
...
HTML Table | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
summary | |||||||||||
class | Code_Listing | ||||||||||
Table Row (tr) | |||||||||||
Table Cell (td) | |||||||||||
| |||||||||||
Anchor | 1000604 | 1000604 | void OSInitHook (void) /* See
| ||||||||
void OSInitHook (void) /* See os_cpu_c.c*/ Anchor | | 1000605 | 1000605 | {||||||||
Anchor | 1000606 | 1000606 | /* Perform any initialization code necessary by the port */|||||||||
Anchor | 1000607 | 1000607 | }|||||||||
Table Row (tr) | |||||||||||
Table Row (tr) |