Microchip® Advanced Software Framework

xmega_reset_cause.h File Reference

Chip-specific reset cause functions.

Copyright (c) 2010-2018 Microchip Technology Inc. and its subsidiaries.

#include "compiler.h"
#include "ccp.h"

Macros

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
 

Typedefs

typedef uint8_t reset_cause_t
 Chip-specific reset cause type capable of holding all chip reset causes. More...
 

Functions

Management
static reset_cause_t reset_cause_get_causes (void)
 Get all reset causes. More...
 
static void reset_cause_clear_causes (reset_cause_t causes)
 Clear a bit-mask of reset causes. More...
 
static void reset_do_soft_reset (void)
 Perform a software reset of the device. More...