This module provides functionality to set and get system reset cause
Reset cause
Enumerator |
---|
RESET_CAUSE_UNKNOWN |
Unknown reset cause, power-on reset
|
RESET_CAUSE_WATCHDOG |
Watchdog reset
|
RESET_CAUSE_SOFT |
Software reset
|
RESET_CAUSE_OFF_GPIO |
Reset from system off by GPIO sense detect
|
RESET_CAUSE_OFF_LPCOMP |
Reset from system off by LPCOMP
|
RESET_CAUSE_OFF_DEBUG |
Reset from system off by debug interface
|
RESET_CAUSE_OFF_NFC |
Reset from system off by NFC field sense
|
RESET_CAUSE__FIRST_USER |
First user-defined software reset cause
|
RESET_CAUSE__LAST_USER |
Last user-defined software reset cause
|
Definition at line 58 of file reset.h.
Name: get_reset_cause
Returns reset cause for the last system reset.
- Returns
- Reset cause
Name: set_reset_cause
Sets (resets) reset cause.
- Parameters
-
reset_cause | Reset cause. Allowed values: RESET_CAUSE_UNKNOWN, [RESET_CAUSE__FIRST_USER..RESET_CAUSE__LAST_USER] |