Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
MEGA 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)
 

Chip-specific reset causes

#define CHIP_RESET_CAUSE_EXTRST   (1<<EXTRF)
 
#define CHIP_RESET_CAUSE_BOD_CPU   (1<<BORF)
 
#define CHIP_RESET_CAUSE_POR   (1<<PORF)
 
#define CHIP_RESET_CAUSE_WDT   (1<<WDRF)
 
#define CHIP_RESET_CAUSE_JTAG   (1<<JTRF)
 

#define CHIP_RESET_CAUSE_BOD_CPU   (1<<BORF)

brown-out detected reset cause, same as for CPU

Referenced by main().

#define CHIP_RESET_CAUSE_EXTRST   (1<<EXTRF)

External reset cause

Referenced by main().

#define CHIP_RESET_CAUSE_JTAG   (1<<JTRF)

Software reset reset cause

#define CHIP_RESET_CAUSE_POR   (1<<PORF)

Power-on-reset reset cause

Referenced by main().

#define CHIP_RESET_CAUSE_WDT   (1<<WDRF)

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.

static void reset_cause_clear_causes ( reset_cause_t  causes)
inlinestatic

Referenced by main().

static reset_cause_t reset_cause_get_causes ( void  )
inlinestatic

Referenced by main().