Xmega Application Note


xmega_reset_cause.h File Reference

Chip-specific reset cause functions. More...

#include "compiler.h"
#include "ccp.h"
Include dependency graph for xmega_reset_cause.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

Chip-specific reset causes

For internal use only.

#define CHIP_RESET_CAUSE_BOD_CPU   RST_BORF_bm
#define CHIP_RESET_CAUSE_BOD_IO   RST_BORF_bm
#define CHIP_RESET_CAUSE_EXTRST   RST_EXTRF_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. Typically reflects the size of the reset cause register.

Functions

Management

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

Detailed Description

Chip-specific reset cause functions.

Copyright (C) 2010 Atmel Corporation. All rights reserved.

Definition in file xmega_reset_cause.h.

@DOC_TITLE@
Generated on Fri Oct 22 12:15:25 2010 for AVR1300 Using the Xmega ADC by doxygen 1.6.3