Atmel Software Framework

XMEGA reset cause

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

#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

#define CHIP_RESET_CAUSE_OCD   RST_PDIRF_bm

On-chip debug system reset cause

#define CHIP_RESET_CAUSE_POR   RST_PORF_bm

Power-on-reset reset cause

#define CHIP_RESET_CAUSE_SOFT   RST_SRF_bm

Software reset reset cause

#define CHIP_RESET_CAUSE_SPIKE   RST_SDRF_bm

Spike detected reset cause

#define CHIP_RESET_CAUSE_WDT   RST_WDRF_bm

Watchdog timeout reset cause

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.

static void reset_cause_clear_causes ( reset_cause_t  causes)
inlinestatic
static reset_cause_t reset_cause_get_causes ( void  )
inlinestatic
static void reset_do_soft_reset ( void  )
inlinestatic

References ccp_write_io().