Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from this space and version 3.05
void OSInitHook (void);

File

Called from

Code enabled by

os_cpu_c.c

OSInit()

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

Arguments

None

Returned Values

None

Required Configuration

None

Callers

OSInit().

Notes/Warnings

None

Example Usage