Atmel Software Framework

avr32_reset_cause.h File Reference

Chip-specific reset cause functions.

Copyright (c) 2010-2012 Atmel Corporation. All rights reserved.

#include "compiler.h"
#include "sysclk.h"

Macros

Chip-specific reset causes
#define CHIP_RESET_CAUSE_EXTRST   AVR32_PM_RCAUSE_EXT_MASK
 
#define CHIP_RESET_CAUSE_BOD_CPU   AVR32_PM_RCAUSE_BOD_MASK
 
#define CHIP_RESET_CAUSE_BOD_IO   AVR32_PM_RCAUSE_BOD33_MASK
 
#define CHIP_RESET_CAUSE_OCD   AVR32_PM_RCAUSE_OCDRST_MASK
 
#define CHIP_RESET_CAUSE_POR   AVR32_PM_RCAUSE_POR_MASK
 
#define RCAUSE_JTAG   AVR32_PM_RCAUSE_JTAG_MASK
 
#define RCAUSE_JTAGHARD   AVR32_PM_RCAUSE_JTAGHARD_MASK
 
#define RCAUSE_AWIRE   AVR32_PM_RCAUSE_AWIRE_MASK
 
#define RCAUSE_AWIREHARD   AVR32_PM_RCAUSE_AWIREHARD_MASK
 
#define CHIP_RESET_CAUSE_JTAG
 
#define CHIP_RESET_CAUSE_WDT   AVR32_PM_RCAUSE_WDT_MASK
 
#define CHIP_RESET_CAUSE_CPU_ERROR   AVR32_PM_RCAUSE_CPUERR_MASK
 
#define CHIP_RESET_CAUSE_SLEEP   AVR32_PM_RCAUSE_SLEEP_MASK
 

Typedefs

typedef uint32_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...