EFM32 Gecko Software Documentation  efm32g-doc-5.1.2
efm32g_rmu.h
Go to the documentation of this file.
1 /**************************************************************************/
32 /**************************************************************************/
36 /**************************************************************************/
41 typedef struct
42 {
43  __IOM uint32_t CTRL;
44  __IM uint32_t RSTCAUSE;
45  __OM uint32_t CMD;
46 } RMU_TypeDef;
48 /**************************************************************************/
53 /* Bit fields for RMU CTRL */
54 #define _RMU_CTRL_RESETVALUE 0x00000000UL
55 #define _RMU_CTRL_MASK 0x00000001UL
56 #define RMU_CTRL_LOCKUPRDIS (0x1UL << 0)
57 #define _RMU_CTRL_LOCKUPRDIS_SHIFT 0
58 #define _RMU_CTRL_LOCKUPRDIS_MASK 0x1UL
59 #define _RMU_CTRL_LOCKUPRDIS_DEFAULT 0x00000000UL
60 #define RMU_CTRL_LOCKUPRDIS_DEFAULT (_RMU_CTRL_LOCKUPRDIS_DEFAULT << 0)
62 /* Bit fields for RMU RSTCAUSE */
63 #define _RMU_RSTCAUSE_RESETVALUE 0x00000000UL
64 #define _RMU_RSTCAUSE_MASK 0x0000007FUL
65 #define RMU_RSTCAUSE_PORST (0x1UL << 0)
66 #define _RMU_RSTCAUSE_PORST_SHIFT 0
67 #define _RMU_RSTCAUSE_PORST_MASK 0x1UL
68 #define _RMU_RSTCAUSE_PORST_DEFAULT 0x00000000UL
69 #define RMU_RSTCAUSE_PORST_DEFAULT (_RMU_RSTCAUSE_PORST_DEFAULT << 0)
70 #define RMU_RSTCAUSE_BODUNREGRST (0x1UL << 1)
71 #define _RMU_RSTCAUSE_BODUNREGRST_SHIFT 1
72 #define _RMU_RSTCAUSE_BODUNREGRST_MASK 0x2UL
73 #define _RMU_RSTCAUSE_BODUNREGRST_DEFAULT 0x00000000UL
74 #define RMU_RSTCAUSE_BODUNREGRST_DEFAULT (_RMU_RSTCAUSE_BODUNREGRST_DEFAULT << 1)
75 #define RMU_RSTCAUSE_BODREGRST (0x1UL << 2)
76 #define _RMU_RSTCAUSE_BODREGRST_SHIFT 2
77 #define _RMU_RSTCAUSE_BODREGRST_MASK 0x4UL
78 #define _RMU_RSTCAUSE_BODREGRST_DEFAULT 0x00000000UL
79 #define RMU_RSTCAUSE_BODREGRST_DEFAULT (_RMU_RSTCAUSE_BODREGRST_DEFAULT << 2)
80 #define RMU_RSTCAUSE_EXTRST (0x1UL << 3)
81 #define _RMU_RSTCAUSE_EXTRST_SHIFT 3
82 #define _RMU_RSTCAUSE_EXTRST_MASK 0x8UL
83 #define _RMU_RSTCAUSE_EXTRST_DEFAULT 0x00000000UL
84 #define RMU_RSTCAUSE_EXTRST_DEFAULT (_RMU_RSTCAUSE_EXTRST_DEFAULT << 3)
85 #define RMU_RSTCAUSE_WDOGRST (0x1UL << 4)
86 #define _RMU_RSTCAUSE_WDOGRST_SHIFT 4
87 #define _RMU_RSTCAUSE_WDOGRST_MASK 0x10UL
88 #define _RMU_RSTCAUSE_WDOGRST_DEFAULT 0x00000000UL
89 #define RMU_RSTCAUSE_WDOGRST_DEFAULT (_RMU_RSTCAUSE_WDOGRST_DEFAULT << 4)
90 #define RMU_RSTCAUSE_LOCKUPRST (0x1UL << 5)
91 #define _RMU_RSTCAUSE_LOCKUPRST_SHIFT 5
92 #define _RMU_RSTCAUSE_LOCKUPRST_MASK 0x20UL
93 #define _RMU_RSTCAUSE_LOCKUPRST_DEFAULT 0x00000000UL
94 #define RMU_RSTCAUSE_LOCKUPRST_DEFAULT (_RMU_RSTCAUSE_LOCKUPRST_DEFAULT << 5)
95 #define RMU_RSTCAUSE_SYSREQRST (0x1UL << 6)
96 #define _RMU_RSTCAUSE_SYSREQRST_SHIFT 6
97 #define _RMU_RSTCAUSE_SYSREQRST_MASK 0x40UL
98 #define _RMU_RSTCAUSE_SYSREQRST_DEFAULT 0x00000000UL
99 #define RMU_RSTCAUSE_SYSREQRST_DEFAULT (_RMU_RSTCAUSE_SYSREQRST_DEFAULT << 6)
101 /* Bit fields for RMU CMD */
102 #define _RMU_CMD_RESETVALUE 0x00000000UL
103 #define _RMU_CMD_MASK 0x00000001UL
104 #define RMU_CMD_RCCLR (0x1UL << 0)
105 #define _RMU_CMD_RCCLR_SHIFT 0
106 #define _RMU_CMD_RCCLR_MASK 0x1UL
107 #define _RMU_CMD_RCCLR_DEFAULT 0x00000000UL
108 #define RMU_CMD_RCCLR_DEFAULT (_RMU_CMD_RCCLR_DEFAULT << 0)
__IM uint32_t RSTCAUSE
Definition: efm32g_rmu.h:44
__IOM uint32_t CTRL
Definition: efm32g_rmu.h:43
__OM uint32_t CMD
Definition: efm32g_rmu.h:45