OSInitHook

Description

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.

Files

os.h/os_cpu_c.c

Prototype

void  OSInitHook (void)

Arguments

None

Returned Values

None

Required Configuration

None

Callers

OSInit().

Notes/Warnings

None

Example Usage

OSInitHook() example usage
          void  OSInitHook (void)                                /* See os_cpu_c.c         */
          {
              /* Perform any initialization code necessary by the port */
          }