rstc.h
Go to the documentation of this file.
#ifndef _SAME54_RSTC_COMPONENT_
#define _SAME54_RSTC_COMPONENT_
/* ========================================================================== */
/* ========================================================================== */
#define RSTC_U2239
#define REV_RSTC 0x400
/* -------- RSTC_RCAUSE : (RSTC Offset: 0x00) (R/ 8) Reset Cause -------- */
#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef union {
struct {
uint8_t POR:1;
uint8_t BODCORE:1;
uint8_t BODVDD:1;
uint8_t NVM:1;
uint8_t EXT:1;
uint8_t WDT:1;
uint8_t SYST:1;
uint8_t BACKUP:1;
} bit;
uint8_t reg;
} RSTC_RCAUSE_Type;
#endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#define RSTC_RCAUSE_OFFSET 0x00
#define RSTC_RCAUSE_POR_Pos 0
#define RSTC_RCAUSE_POR (_U_(0x1) << RSTC_RCAUSE_POR_Pos)
#define RSTC_RCAUSE_BODCORE_Pos 1
#define RSTC_RCAUSE_BODCORE (_U_(0x1) << RSTC_RCAUSE_BODCORE_Pos)
#define RSTC_RCAUSE_BODVDD_Pos 2
#define RSTC_RCAUSE_BODVDD (_U_(0x1) << RSTC_RCAUSE_BODVDD_Pos)
#define RSTC_RCAUSE_NVM_Pos 3
#define RSTC_RCAUSE_NVM (_U_(0x1) << RSTC_RCAUSE_NVM_Pos)
#define RSTC_RCAUSE_EXT_Pos 4
#define RSTC_RCAUSE_EXT (_U_(0x1) << RSTC_RCAUSE_EXT_Pos)
#define RSTC_RCAUSE_WDT_Pos 5
#define RSTC_RCAUSE_WDT (_U_(0x1) << RSTC_RCAUSE_WDT_Pos)
#define RSTC_RCAUSE_SYST_Pos 6
#define RSTC_RCAUSE_SYST (_U_(0x1) << RSTC_RCAUSE_SYST_Pos)
#define RSTC_RCAUSE_BACKUP_Pos 7
#define RSTC_RCAUSE_BACKUP (_U_(0x1) << RSTC_RCAUSE_BACKUP_Pos)
#define RSTC_RCAUSE_MASK _U_(0xFF)
/* -------- RSTC_BKUPEXIT : (RSTC Offset: 0x02) (R/ 8) Backup Exit Source -------- */
#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef union {
struct {
uint8_t :1;
uint8_t RTC:1;
uint8_t BBPS:1;
uint8_t :4;
uint8_t HIB:1;
} bit;
uint8_t reg;
} RSTC_BKUPEXIT_Type;
#endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#define RSTC_BKUPEXIT_OFFSET 0x02
#define RSTC_BKUPEXIT_RESETVALUE _U_(0x00)
#define RSTC_BKUPEXIT_RTC_Pos 1
#define RSTC_BKUPEXIT_RTC (_U_(0x1) << RSTC_BKUPEXIT_RTC_Pos)
#define RSTC_BKUPEXIT_BBPS_Pos 2
#define RSTC_BKUPEXIT_BBPS (_U_(0x1) << RSTC_BKUPEXIT_BBPS_Pos)
#define RSTC_BKUPEXIT_HIB_Pos 7
#define RSTC_BKUPEXIT_HIB (_U_(0x1) << RSTC_BKUPEXIT_HIB_Pos)
#define RSTC_BKUPEXIT_MASK _U_(0x86)
#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef struct {
__I RSTC_RCAUSE_Type RCAUSE;
RoReg8 Reserved1[0x1];
__I RSTC_BKUPEXIT_Type BKUPEXIT;
} Rstc;
#endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#endif /* _SAME54_RSTC_COMPONENT_ */
RSTC_RCAUSE_Type::EXT
uint8_t EXT
Definition: rstc.h:50
RSTC_RCAUSE_Type::BACKUP
uint8_t BACKUP
Definition: rstc.h:53
RSTC_RCAUSE_Type
Definition: rstc.h:44
RSTC_RCAUSE_Type::SYST
uint8_t SYST
Definition: rstc.h:52
RSTC_RCAUSE_Type::WDT
uint8_t WDT
Definition: rstc.h:51
RSTC_BKUPEXIT_Type::reg
uint8_t reg
Definition: rstc.h:89
RSTC_BKUPEXIT_Type
Definition: rstc.h:81
RSTC_BKUPEXIT_Type::RTC
uint8_t RTC
Definition: rstc.h:84
RSTC_RCAUSE_Type::BODVDD
uint8_t BODVDD
Definition: rstc.h:48
RSTC_BKUPEXIT_Type::HIB
uint8_t HIB
Definition: rstc.h:87
Rstc::RCAUSE
__I RSTC_RCAUSE_Type RCAUSE
Offset: 0x00 (R/ 8) Reset Cause.
Definition: rstc.h:107
RSTC_RCAUSE_Type::BODCORE
uint8_t BODCORE
Definition: rstc.h:47
Rstc
RSTC hardware registers.
Definition: rstc.h:106
Rstc::BKUPEXIT
__I RSTC_BKUPEXIT_Type BKUPEXIT
Offset: 0x02 (R/ 8) Backup Exit Source.
Definition: rstc.h:109
RSTC_RCAUSE_Type::reg
uint8_t reg
Definition: rstc.h:55
RSTC_RCAUSE_Type::POR
uint8_t POR
Definition: rstc.h:46
RSTC_BKUPEXIT_Type::BBPS
uint8_t BBPS
Definition: rstc.h:85
RoReg8
volatile const uint8_t RoReg8
Definition: same54n19a.h:53
RSTC_RCAUSE_Type::NVM
uint8_t NVM
Definition: rstc.h:49