See reset_cause_quickstart.
Typedefs | |
typedef uint8_t | reset_cause_t |
Chip-specific reset cause type capable of holding all chip reset causes. More... | |
Functions | |
static void | reset_cause_clear_causes (reset_cause_t causes) |
static reset_cause_t | reset_cause_get_causes (void) |
static void | reset_do_soft_reset (void) |
Chip-specific reset causes | |
#define | CHIP_RESET_CAUSE_EXTRST RST_EXTRF_bm |
#define | CHIP_RESET_CAUSE_BOD_IO RST_BORF_bm |
#define | CHIP_RESET_CAUSE_BOD_CPU RST_BORF_bm |
#define | CHIP_RESET_CAUSE_OCD RST_PDIRF_bm |
#define | CHIP_RESET_CAUSE_POR RST_PORF_bm |
#define | CHIP_RESET_CAUSE_SOFT RST_SRF_bm |
#define | CHIP_RESET_CAUSE_SPIKE RST_SDRF_bm |
#define | CHIP_RESET_CAUSE_WDT RST_WDRF_bm |
#define CHIP_RESET_CAUSE_BOD_CPU RST_BORF_bm |
Brown-out detected reset cause, same as for I/O
Referenced by main().
#define CHIP_RESET_CAUSE_BOD_IO RST_BORF_bm |
brown-out detected reset cause, same as for CPU
#define CHIP_RESET_CAUSE_EXTRST RST_EXTRF_bm |
External reset cause
Referenced by main().
#define CHIP_RESET_CAUSE_OCD RST_PDIRF_bm |
On-chip debug system reset cause
Referenced by main().
#define CHIP_RESET_CAUSE_POR RST_PORF_bm |
Power-on-reset reset cause
Referenced by main().
#define CHIP_RESET_CAUSE_SOFT RST_SRF_bm |
Software reset reset cause
Referenced by main().
#define CHIP_RESET_CAUSE_SPIKE RST_SDRF_bm |
Spike detected reset cause
Referenced by main().
#define CHIP_RESET_CAUSE_WDT RST_WDRF_bm |
Watchdog timeout reset cause
Referenced by main().
typedef uint8_t reset_cause_t |
Chip-specific reset cause type capable of holding all chip reset causes.
Typically reflects the size of the reset cause register.
|
inlinestatic |
Referenced by main().
|
inlinestatic |
Referenced by main().
|
inlinestatic |
References ccp_write_io().
Referenced by main().