19#ifndef MBED_RESET_REASON_API_H
20#define MBED_RESET_REASON_API_H
22#if DEVICE_RESET_REASON
void hal_reset_reason_get_capabilities(reset_reason_capabilities_t *cap)
Fill the given reset_reason_capabilities_t instance according to platform capabilities.
reset_reason_t
Definitions of different reset reasons.
void hal_reset_reason_clear(void)
Clear the reset reason from registers.
uint32_t hal_reset_reason_get_raw(void)
Fetch the raw platform specific reset reason register value.
reset_reason_t hal_reset_reason_get(void)
Fetch the reset reason for the last system reset.
@ RESET_REASON_SOFTWARE
Set during software reset, typically triggered by writing the SYSRESETREQ bit in the Application Inte...
@ RESET_REASON_PIN_RESET
Set when a reset is triggered by the hardware pin on the board.
@ RESET_REASON_PLATFORM
Platform specific reset reason not captured in this enum.
@ RESET_REASON_ACCESS_ERROR
Umbrella value that encompasses any access related reset.
@ RESET_REASON_MULTIPLE
Set if multiple reset reasons are set within the board.
@ RESET_REASON_BROWN_OUT
Triggered when the voltage drops below the low voltage detect (LVD) threshold; the system is held in ...
@ RESET_REASON_LOCKUP
Set when the core is locked because of an unrecoverable exception.
@ RESET_REASON_WATCHDOG
Set when a running watchdog timer fails to be refreshed.
@ RESET_REASON_WAKE_LOW_POWER
Set when waking from deep sleep mode.
@ RESET_REASON_BOOT_ERROR
Umbrella value that encompasses any boot related reset.
@ RESET_REASON_POWER_ON
Set when power is initially applied to the board.
@ RESET_REASON_UNKNOWN
Unknown or unreadable reset reason.
Reset reason capabilities of the platform.
uint32_t reasons
Supported reset reasons.