SYS/BIOS
7.00
|
The startup bootstrap.
This module manages the very early startup initialization that occurs before C's main()
function is invoked. This initialization typically consists of setting hardware specific registers that control watchdog timers, access to memory, cache settings, clock speeds, etc.
In addition to configuration parameters that allow the user to add custom startup functions, this module also provides services that allow other modules to add initialiazation functions to the startup sequence.
This module adds two functions to the generated ti_sysbios_config.c file: Startup_reset()
and Startup_exec()
. You can review the ti_sysbios_config.c to see how these functions are generated.
The following list defines the startup sequence and, in particular, when user provided startup functions are invoked:
main()
is called.The following code shows how to add a custom reset functions to this module.
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
Go to the source code of this file.
Functions | |
void | Startup_exec (void) |
Execute the startup functions. More... | |
void | Startup_reset (void) |
Application-specific reset functions. More... | |
Variables | |
volatile bool | Startup_done |
Startup_done is set to true when startup is complete. More... | |
void Startup_exec | ( | void | ) |
Execute the startup functions.
This function executes the configured Startup functions in the following order:
void Startup_reset | ( | void | ) |
Application-specific reset functions.
This function executes the configured Startup functions that are configured as "Reset Functions".
volatile bool Startup_done |
Startup_done is set to true when startup is complete.