ResetBootloader Core

Description

Methods to reset from the bootloader to the app.

Functions

void reset_resetWithReason (uint16_t resetReason)
void reset_setResetReason (uint16_t resetReason)
uint16_t reset_getResetReason (void)
void reset_invalidateResetReason (void)
uint16_t reset_classifyReset (void)

Function Documentation

void reset_resetWithReason ( uint16_t resetReason )

Reset from the bootloader with a reset cause.

Note
This function does not return.
Parameters
resetReason A reset reason as defined in the bootloader interface
void reset_setResetReason ( uint16_t resetReason )

Set a reset reason.

Parameters
resetReason A reset reason as defined in the bootloader interface
uint16_t reset_getResetReason ( void )

Get the reset reason without verifying it.

Returns
The reset reason
void reset_invalidateResetReason ( void )

Invalidate the reset reason.

uint16_t reset_classifyReset ( void )

Classify reset and get the reset reason.

Returns
Reset cause or BOOTLOADER_RESET_REASON_UNKNOWN