Boot sequence overview. More...
Functions | |
void | mbed_init (void) |
Perform low level init of mbed. More... | |
void | mbed_start (void) |
Start the main mbed application. More... | |
void | mbed_rtos_init (void) |
Perform low level initialization of the RTOS. More... | |
MBED_NORETURN void | mbed_rtos_start (void) |
Start the RTOS. More... | |
void | mbed_toolchain_init (void) |
Perform toolchain specific initialization. More... | |
void | mbed_sdk_init (void) |
SDK hook for running code before ctors or OS. More... | |
void | mbed_main (void) |
Application hook for running code before main. More... | |
Boot sequence overview.
void mbed_init | ( | void | ) |
Perform low level init of mbed.
The toolchain calls this function as part of the boot sequence. This function does the following:
Preconditions:
The following events must not have happened yet:
void mbed_main | ( | void | ) |
Application hook for running code before main.
This is a weak function which can be overridden by an application to allow code to run before main is called.
Preconditions:
void mbed_rtos_init | ( | void | ) |
Perform low level initialization of the RTOS.
Set the RTOS to a known state but don't start the scheduler. After the RTOS has been initialized it is safe to create RTOS primitives for file locks or other purposes.
Preconditions:
MBED_NORETURN void mbed_rtos_start | ( | void | ) |
Start the RTOS.
Start the RTOS scheduler and call mbed_start on the main thread. This function does not return.
Preconditions:
void mbed_sdk_init | ( | void | ) |
SDK hook for running code before ctors or OS.
This is a weak function which can be overridden by a target's SDK to allow code to run after ram is initialized but before the OS has been started or constructors have run.
Preconditions:
void mbed_start | ( | void | ) |
Start the main mbed application.
This is the last stage of the boot sequence. This function must be called only after the RTOS has been fully initialized. This function does the following:
Preconditions:
void mbed_toolchain_init | ( | void | ) |
Perform toolchain specific initialization.
Initialize locks if this has not been done already and call global C++ constructors.
Preconditions: