Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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. Anchor10005951000595 Arguments Anchor10005961000596 None Anchor10005971000597

Files

os.h/os_cpu_c.c

Prototype

Code Block
void  OSInitHook (void)

Arguments

None

Returned Values

anchorNone1000598

Required Configuration

1000598None Anchor10005991000599

Callers

OSInit().

Notes/Warnings

Anchor10006001000600None Anchor10006141000614

Example Usage

...

Code Block

...

void OSInitHook (void) /* See { /* Perform any initialization code necessary by the port */ }tr
         */
          {
              /* Perform any initialization code necessary by the port */
          }
HTML Table
summary
classCode_Listing
Table Row (tr)
Table Cell (td)
rowspan4
Anchor
10006041000604
titleOSInitHook() example usage
          void  OSInitHook (void)                                /* See os_cpu_c.c
*/
Anchor
10006051000605
Anchor
10006061000606
Anchor
10006071000607
Table Row (tr)
Table Row (tr)