SYS/BIOS  7.00
Functions | Variables
Startup.h File Reference

Detailed Description

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.

Startup Sequence

The following list defines the startup sequence and, in particular, when user provided startup functions are invoked:

Examples

The following code shows how to add a custom reset functions to this module.

const Startup = scripting.addModule("/ti/sysbios/runtime/Startup", {}, false);
const myStartup = Startup.addInstance();
myStartup.startupFxn = "myResetFxn";
myStartup.functionType = "Reset Function";
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
Include dependency graph for Startup.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...
 

Function Documentation

§ Startup_exec()

void Startup_exec ( void  )

Execute the startup functions.

This function executes the configured Startup functions in the following order:

  • The functions configured as "First Functions" are called.
  • The functions configured as "Module Init Functions" are called.
  • The functions configured as "Last Functions" are called.

§ Startup_reset()

void Startup_reset ( void  )

Application-specific reset functions.

This function executes the configured Startup functions that are configured as "Reset Functions".

Variable Documentation

§ Startup_done

volatile bool Startup_done

Startup_done is set to true when startup is complete.

© Copyright 1995-2021, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale