GPIO#

Bootloader GPIO definitions.

See bootloader-gpio.h for source code.

State Indicator Macros#

The bootloader indicates which state it is in by calling these // macros. Map them to the ::halBootloadStateIndicator function // (in bootloder-gpio.c) if you want to display that bootloader state. // Used to blink the LED's or otherwise signal bootloader activity.

#define
BL_STATE_UP ()

Finished init sequence, ready for bootload.

#define
BL_STATE_DOWN ()

Called right before bootloader resets to application. Use to cleanup and reset GPIO's to leave node in known state for app start, if necessary.

#define
BL_STATE_POLLING_LOOP ()

Standalone bootloader polling serial/radio interface.

#define
BL_STATE_DOWNLOAD_LOOP ()

Processing download image.

#define
BL_STATE_DOWNLOAD_SUCCESS ()

Download process was a success.

#define
BL_STATE_DOWNLOAD_FAILURE ()

Download process failed.

Enumerations#

enum
BL_ST_UP
BL_ST_DOWN
BL_ST_POLLING_LOOP
BL_ST_DOWNLOAD_LOOP
BL_ST_DOWNLOAD_FAILURE
BL_ST_DOWNLOAD_SUCCESS
}

Defines various bootloader states. Use in LED code to signal bootload activity.

Functions#

void

Initialize GPIO.

void
bootloadStateIndicator(enum blState_e state)

Helper function used for displaying bootloader state (for example: with LEDs).

bool

Force activation of bootloader.

State Indicator Macros Documentation#

Enumeration Documentation#

blState_e#

blState_e

Defines various bootloader states. Use in LED code to signal bootload activity.

Enumerator
BL_ST_UP

bootloader up

BL_ST_DOWN

bootloader going down

BL_ST_POLLING_LOOP

polling interfaces

BL_ST_DOWNLOAD_LOOP

downloading

BL_ST_DOWNLOAD_FAILURE

download failure

BL_ST_DOWNLOAD_SUCCESS

download success


Function Documentation#

bootloadGpioInit#

void bootloadGpioInit (void )

Initialize GPIO.

Parameters
TypeDirectionArgument NameDescription
voidN/A

bootloadStateIndicator#

void bootloadStateIndicator (enum blState_e state)

Helper function used for displaying bootloader state (for example: with LEDs).

Parameters
TypeDirectionArgument NameDescription
enum blState_eN/Astate

bootloadForceActivation#

bool bootloadForceActivation (void )

Force activation of bootloader.

Parameters
TypeDirectionArgument NameDescription
voidN/A