SAME54P20A Test Project
rtc.h
Go to the documentation of this file.
1 
30 #ifndef _SAME54_RTC_COMPONENT_
31 #define _SAME54_RTC_COMPONENT_
32 
33 /* ========================================================================== */
35 /* ========================================================================== */
38 
39 #define RTC_U2250
40 #define REV_RTC 0x210
41 
42 /* -------- RTC_MODE0_CTRLA : (RTC Offset: 0x00) (R/W 16) MODE0 MODE0 Control A -------- */
43 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
44 typedef union {
45  struct {
46  uint16_t SWRST:1;
47  uint16_t ENABLE:1;
48  uint16_t MODE:2;
49  uint16_t :3;
50  uint16_t MATCHCLR:1;
51  uint16_t PRESCALER:4;
52  uint16_t :1;
53  uint16_t BKTRST:1;
54  uint16_t GPTRST:1;
55  uint16_t COUNTSYNC:1;
56  } bit;
57  uint16_t reg;
59 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
60 
61 #define RTC_MODE0_CTRLA_OFFSET 0x00
62 #define RTC_MODE0_CTRLA_RESETVALUE _U_(0x0000)
64 #define RTC_MODE0_CTRLA_SWRST_Pos 0
65 #define RTC_MODE0_CTRLA_SWRST (_U_(0x1) << RTC_MODE0_CTRLA_SWRST_Pos)
66 #define RTC_MODE0_CTRLA_ENABLE_Pos 1
67 #define RTC_MODE0_CTRLA_ENABLE (_U_(0x1) << RTC_MODE0_CTRLA_ENABLE_Pos)
68 #define RTC_MODE0_CTRLA_MODE_Pos 2
69 #define RTC_MODE0_CTRLA_MODE_Msk (_U_(0x3) << RTC_MODE0_CTRLA_MODE_Pos)
70 #define RTC_MODE0_CTRLA_MODE(value) (RTC_MODE0_CTRLA_MODE_Msk & ((value) << RTC_MODE0_CTRLA_MODE_Pos))
71 #define RTC_MODE0_CTRLA_MODE_COUNT32_Val _U_(0x0)
72 #define RTC_MODE0_CTRLA_MODE_COUNT16_Val _U_(0x1)
73 #define RTC_MODE0_CTRLA_MODE_CLOCK_Val _U_(0x2)
74 #define RTC_MODE0_CTRLA_MODE_COUNT32 (RTC_MODE0_CTRLA_MODE_COUNT32_Val << RTC_MODE0_CTRLA_MODE_Pos)
75 #define RTC_MODE0_CTRLA_MODE_COUNT16 (RTC_MODE0_CTRLA_MODE_COUNT16_Val << RTC_MODE0_CTRLA_MODE_Pos)
76 #define RTC_MODE0_CTRLA_MODE_CLOCK (RTC_MODE0_CTRLA_MODE_CLOCK_Val << RTC_MODE0_CTRLA_MODE_Pos)
77 #define RTC_MODE0_CTRLA_MATCHCLR_Pos 7
78 #define RTC_MODE0_CTRLA_MATCHCLR (_U_(0x1) << RTC_MODE0_CTRLA_MATCHCLR_Pos)
79 #define RTC_MODE0_CTRLA_PRESCALER_Pos 8
80 #define RTC_MODE0_CTRLA_PRESCALER_Msk (_U_(0xF) << RTC_MODE0_CTRLA_PRESCALER_Pos)
81 #define RTC_MODE0_CTRLA_PRESCALER(value) (RTC_MODE0_CTRLA_PRESCALER_Msk & ((value) << RTC_MODE0_CTRLA_PRESCALER_Pos))
82 #define RTC_MODE0_CTRLA_PRESCALER_OFF_Val _U_(0x0)
83 #define RTC_MODE0_CTRLA_PRESCALER_DIV1_Val _U_(0x1)
84 #define RTC_MODE0_CTRLA_PRESCALER_DIV2_Val _U_(0x2)
85 #define RTC_MODE0_CTRLA_PRESCALER_DIV4_Val _U_(0x3)
86 #define RTC_MODE0_CTRLA_PRESCALER_DIV8_Val _U_(0x4)
87 #define RTC_MODE0_CTRLA_PRESCALER_DIV16_Val _U_(0x5)
88 #define RTC_MODE0_CTRLA_PRESCALER_DIV32_Val _U_(0x6)
89 #define RTC_MODE0_CTRLA_PRESCALER_DIV64_Val _U_(0x7)
90 #define RTC_MODE0_CTRLA_PRESCALER_DIV128_Val _U_(0x8)
91 #define RTC_MODE0_CTRLA_PRESCALER_DIV256_Val _U_(0x9)
92 #define RTC_MODE0_CTRLA_PRESCALER_DIV512_Val _U_(0xA)
93 #define RTC_MODE0_CTRLA_PRESCALER_DIV1024_Val _U_(0xB)
94 #define RTC_MODE0_CTRLA_PRESCALER_OFF (RTC_MODE0_CTRLA_PRESCALER_OFF_Val << RTC_MODE0_CTRLA_PRESCALER_Pos)
95 #define RTC_MODE0_CTRLA_PRESCALER_DIV1 (RTC_MODE0_CTRLA_PRESCALER_DIV1_Val << RTC_MODE0_CTRLA_PRESCALER_Pos)
96 #define RTC_MODE0_CTRLA_PRESCALER_DIV2 (RTC_MODE0_CTRLA_PRESCALER_DIV2_Val << RTC_MODE0_CTRLA_PRESCALER_Pos)
97 #define RTC_MODE0_CTRLA_PRESCALER_DIV4 (RTC_MODE0_CTRLA_PRESCALER_DIV4_Val << RTC_MODE0_CTRLA_PRESCALER_Pos)
98 #define RTC_MODE0_CTRLA_PRESCALER_DIV8 (RTC_MODE0_CTRLA_PRESCALER_DIV8_Val << RTC_MODE0_CTRLA_PRESCALER_Pos)
99 #define RTC_MODE0_CTRLA_PRESCALER_DIV16 (RTC_MODE0_CTRLA_PRESCALER_DIV16_Val << RTC_MODE0_CTRLA_PRESCALER_Pos)
100 #define RTC_MODE0_CTRLA_PRESCALER_DIV32 (RTC_MODE0_CTRLA_PRESCALER_DIV32_Val << RTC_MODE0_CTRLA_PRESCALER_Pos)
101 #define RTC_MODE0_CTRLA_PRESCALER_DIV64 (RTC_MODE0_CTRLA_PRESCALER_DIV64_Val << RTC_MODE0_CTRLA_PRESCALER_Pos)
102 #define RTC_MODE0_CTRLA_PRESCALER_DIV128 (RTC_MODE0_CTRLA_PRESCALER_DIV128_Val << RTC_MODE0_CTRLA_PRESCALER_Pos)
103 #define RTC_MODE0_CTRLA_PRESCALER_DIV256 (RTC_MODE0_CTRLA_PRESCALER_DIV256_Val << RTC_MODE0_CTRLA_PRESCALER_Pos)
104 #define RTC_MODE0_CTRLA_PRESCALER_DIV512 (RTC_MODE0_CTRLA_PRESCALER_DIV512_Val << RTC_MODE0_CTRLA_PRESCALER_Pos)
105 #define RTC_MODE0_CTRLA_PRESCALER_DIV1024 (RTC_MODE0_CTRLA_PRESCALER_DIV1024_Val << RTC_MODE0_CTRLA_PRESCALER_Pos)
106 #define RTC_MODE0_CTRLA_BKTRST_Pos 13
107 #define RTC_MODE0_CTRLA_BKTRST (_U_(0x1) << RTC_MODE0_CTRLA_BKTRST_Pos)
108 #define RTC_MODE0_CTRLA_GPTRST_Pos 14
109 #define RTC_MODE0_CTRLA_GPTRST (_U_(0x1) << RTC_MODE0_CTRLA_GPTRST_Pos)
110 #define RTC_MODE0_CTRLA_COUNTSYNC_Pos 15
111 #define RTC_MODE0_CTRLA_COUNTSYNC (_U_(0x1) << RTC_MODE0_CTRLA_COUNTSYNC_Pos)
112 #define RTC_MODE0_CTRLA_MASK _U_(0xEF8F)
114 /* -------- RTC_MODE1_CTRLA : (RTC Offset: 0x00) (R/W 16) MODE1 MODE1 Control A -------- */
115 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
116 typedef union {
117  struct {
118  uint16_t SWRST:1;
119  uint16_t ENABLE:1;
120  uint16_t MODE:2;
121  uint16_t :4;
122  uint16_t PRESCALER:4;
123  uint16_t :1;
124  uint16_t BKTRST:1;
125  uint16_t GPTRST:1;
126  uint16_t COUNTSYNC:1;
127  } bit;
128  uint16_t reg;
130 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
131 
132 #define RTC_MODE1_CTRLA_OFFSET 0x00
133 #define RTC_MODE1_CTRLA_RESETVALUE _U_(0x0000)
135 #define RTC_MODE1_CTRLA_SWRST_Pos 0
136 #define RTC_MODE1_CTRLA_SWRST (_U_(0x1) << RTC_MODE1_CTRLA_SWRST_Pos)
137 #define RTC_MODE1_CTRLA_ENABLE_Pos 1
138 #define RTC_MODE1_CTRLA_ENABLE (_U_(0x1) << RTC_MODE1_CTRLA_ENABLE_Pos)
139 #define RTC_MODE1_CTRLA_MODE_Pos 2
140 #define RTC_MODE1_CTRLA_MODE_Msk (_U_(0x3) << RTC_MODE1_CTRLA_MODE_Pos)
141 #define RTC_MODE1_CTRLA_MODE(value) (RTC_MODE1_CTRLA_MODE_Msk & ((value) << RTC_MODE1_CTRLA_MODE_Pos))
142 #define RTC_MODE1_CTRLA_MODE_COUNT32_Val _U_(0x0)
143 #define RTC_MODE1_CTRLA_MODE_COUNT16_Val _U_(0x1)
144 #define RTC_MODE1_CTRLA_MODE_CLOCK_Val _U_(0x2)
145 #define RTC_MODE1_CTRLA_MODE_COUNT32 (RTC_MODE1_CTRLA_MODE_COUNT32_Val << RTC_MODE1_CTRLA_MODE_Pos)
146 #define RTC_MODE1_CTRLA_MODE_COUNT16 (RTC_MODE1_CTRLA_MODE_COUNT16_Val << RTC_MODE1_CTRLA_MODE_Pos)
147 #define RTC_MODE1_CTRLA_MODE_CLOCK (RTC_MODE1_CTRLA_MODE_CLOCK_Val << RTC_MODE1_CTRLA_MODE_Pos)
148 #define RTC_MODE1_CTRLA_PRESCALER_Pos 8
149 #define RTC_MODE1_CTRLA_PRESCALER_Msk (_U_(0xF) << RTC_MODE1_CTRLA_PRESCALER_Pos)
150 #define RTC_MODE1_CTRLA_PRESCALER(value) (RTC_MODE1_CTRLA_PRESCALER_Msk & ((value) << RTC_MODE1_CTRLA_PRESCALER_Pos))
151 #define RTC_MODE1_CTRLA_PRESCALER_OFF_Val _U_(0x0)
152 #define RTC_MODE1_CTRLA_PRESCALER_DIV1_Val _U_(0x1)
153 #define RTC_MODE1_CTRLA_PRESCALER_DIV2_Val _U_(0x2)
154 #define RTC_MODE1_CTRLA_PRESCALER_DIV4_Val _U_(0x3)
155 #define RTC_MODE1_CTRLA_PRESCALER_DIV8_Val _U_(0x4)
156 #define RTC_MODE1_CTRLA_PRESCALER_DIV16_Val _U_(0x5)
157 #define RTC_MODE1_CTRLA_PRESCALER_DIV32_Val _U_(0x6)
158 #define RTC_MODE1_CTRLA_PRESCALER_DIV64_Val _U_(0x7)
159 #define RTC_MODE1_CTRLA_PRESCALER_DIV128_Val _U_(0x8)
160 #define RTC_MODE1_CTRLA_PRESCALER_DIV256_Val _U_(0x9)
161 #define RTC_MODE1_CTRLA_PRESCALER_DIV512_Val _U_(0xA)
162 #define RTC_MODE1_CTRLA_PRESCALER_DIV1024_Val _U_(0xB)
163 #define RTC_MODE1_CTRLA_PRESCALER_OFF (RTC_MODE1_CTRLA_PRESCALER_OFF_Val << RTC_MODE1_CTRLA_PRESCALER_Pos)
164 #define RTC_MODE1_CTRLA_PRESCALER_DIV1 (RTC_MODE1_CTRLA_PRESCALER_DIV1_Val << RTC_MODE1_CTRLA_PRESCALER_Pos)
165 #define RTC_MODE1_CTRLA_PRESCALER_DIV2 (RTC_MODE1_CTRLA_PRESCALER_DIV2_Val << RTC_MODE1_CTRLA_PRESCALER_Pos)
166 #define RTC_MODE1_CTRLA_PRESCALER_DIV4 (RTC_MODE1_CTRLA_PRESCALER_DIV4_Val << RTC_MODE1_CTRLA_PRESCALER_Pos)
167 #define RTC_MODE1_CTRLA_PRESCALER_DIV8 (RTC_MODE1_CTRLA_PRESCALER_DIV8_Val << RTC_MODE1_CTRLA_PRESCALER_Pos)
168 #define RTC_MODE1_CTRLA_PRESCALER_DIV16 (RTC_MODE1_CTRLA_PRESCALER_DIV16_Val << RTC_MODE1_CTRLA_PRESCALER_Pos)
169 #define RTC_MODE1_CTRLA_PRESCALER_DIV32 (RTC_MODE1_CTRLA_PRESCALER_DIV32_Val << RTC_MODE1_CTRLA_PRESCALER_Pos)
170 #define RTC_MODE1_CTRLA_PRESCALER_DIV64 (RTC_MODE1_CTRLA_PRESCALER_DIV64_Val << RTC_MODE1_CTRLA_PRESCALER_Pos)
171 #define RTC_MODE1_CTRLA_PRESCALER_DIV128 (RTC_MODE1_CTRLA_PRESCALER_DIV128_Val << RTC_MODE1_CTRLA_PRESCALER_Pos)
172 #define RTC_MODE1_CTRLA_PRESCALER_DIV256 (RTC_MODE1_CTRLA_PRESCALER_DIV256_Val << RTC_MODE1_CTRLA_PRESCALER_Pos)
173 #define RTC_MODE1_CTRLA_PRESCALER_DIV512 (RTC_MODE1_CTRLA_PRESCALER_DIV512_Val << RTC_MODE1_CTRLA_PRESCALER_Pos)
174 #define RTC_MODE1_CTRLA_PRESCALER_DIV1024 (RTC_MODE1_CTRLA_PRESCALER_DIV1024_Val << RTC_MODE1_CTRLA_PRESCALER_Pos)
175 #define RTC_MODE1_CTRLA_BKTRST_Pos 13
176 #define RTC_MODE1_CTRLA_BKTRST (_U_(0x1) << RTC_MODE1_CTRLA_BKTRST_Pos)
177 #define RTC_MODE1_CTRLA_GPTRST_Pos 14
178 #define RTC_MODE1_CTRLA_GPTRST (_U_(0x1) << RTC_MODE1_CTRLA_GPTRST_Pos)
179 #define RTC_MODE1_CTRLA_COUNTSYNC_Pos 15
180 #define RTC_MODE1_CTRLA_COUNTSYNC (_U_(0x1) << RTC_MODE1_CTRLA_COUNTSYNC_Pos)
181 #define RTC_MODE1_CTRLA_MASK _U_(0xEF0F)
183 /* -------- RTC_MODE2_CTRLA : (RTC Offset: 0x00) (R/W 16) MODE2 MODE2 Control A -------- */
184 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
185 typedef union {
186  struct {
187  uint16_t SWRST:1;
188  uint16_t ENABLE:1;
189  uint16_t MODE:2;
190  uint16_t :2;
191  uint16_t CLKREP:1;
192  uint16_t MATCHCLR:1;
193  uint16_t PRESCALER:4;
194  uint16_t :1;
195  uint16_t BKTRST:1;
196  uint16_t GPTRST:1;
197  uint16_t CLOCKSYNC:1;
198  } bit;
199  uint16_t reg;
201 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
202 
203 #define RTC_MODE2_CTRLA_OFFSET 0x00
204 #define RTC_MODE2_CTRLA_RESETVALUE _U_(0x0000)
206 #define RTC_MODE2_CTRLA_SWRST_Pos 0
207 #define RTC_MODE2_CTRLA_SWRST (_U_(0x1) << RTC_MODE2_CTRLA_SWRST_Pos)
208 #define RTC_MODE2_CTRLA_ENABLE_Pos 1
209 #define RTC_MODE2_CTRLA_ENABLE (_U_(0x1) << RTC_MODE2_CTRLA_ENABLE_Pos)
210 #define RTC_MODE2_CTRLA_MODE_Pos 2
211 #define RTC_MODE2_CTRLA_MODE_Msk (_U_(0x3) << RTC_MODE2_CTRLA_MODE_Pos)
212 #define RTC_MODE2_CTRLA_MODE(value) (RTC_MODE2_CTRLA_MODE_Msk & ((value) << RTC_MODE2_CTRLA_MODE_Pos))
213 #define RTC_MODE2_CTRLA_MODE_COUNT32_Val _U_(0x0)
214 #define RTC_MODE2_CTRLA_MODE_COUNT16_Val _U_(0x1)
215 #define RTC_MODE2_CTRLA_MODE_CLOCK_Val _U_(0x2)
216 #define RTC_MODE2_CTRLA_MODE_COUNT32 (RTC_MODE2_CTRLA_MODE_COUNT32_Val << RTC_MODE2_CTRLA_MODE_Pos)
217 #define RTC_MODE2_CTRLA_MODE_COUNT16 (RTC_MODE2_CTRLA_MODE_COUNT16_Val << RTC_MODE2_CTRLA_MODE_Pos)
218 #define RTC_MODE2_CTRLA_MODE_CLOCK (RTC_MODE2_CTRLA_MODE_CLOCK_Val << RTC_MODE2_CTRLA_MODE_Pos)
219 #define RTC_MODE2_CTRLA_CLKREP_Pos 6
220 #define RTC_MODE2_CTRLA_CLKREP (_U_(0x1) << RTC_MODE2_CTRLA_CLKREP_Pos)
221 #define RTC_MODE2_CTRLA_MATCHCLR_Pos 7
222 #define RTC_MODE2_CTRLA_MATCHCLR (_U_(0x1) << RTC_MODE2_CTRLA_MATCHCLR_Pos)
223 #define RTC_MODE2_CTRLA_PRESCALER_Pos 8
224 #define RTC_MODE2_CTRLA_PRESCALER_Msk (_U_(0xF) << RTC_MODE2_CTRLA_PRESCALER_Pos)
225 #define RTC_MODE2_CTRLA_PRESCALER(value) (RTC_MODE2_CTRLA_PRESCALER_Msk & ((value) << RTC_MODE2_CTRLA_PRESCALER_Pos))
226 #define RTC_MODE2_CTRLA_PRESCALER_OFF_Val _U_(0x0)
227 #define RTC_MODE2_CTRLA_PRESCALER_DIV1_Val _U_(0x1)
228 #define RTC_MODE2_CTRLA_PRESCALER_DIV2_Val _U_(0x2)
229 #define RTC_MODE2_CTRLA_PRESCALER_DIV4_Val _U_(0x3)
230 #define RTC_MODE2_CTRLA_PRESCALER_DIV8_Val _U_(0x4)
231 #define RTC_MODE2_CTRLA_PRESCALER_DIV16_Val _U_(0x5)
232 #define RTC_MODE2_CTRLA_PRESCALER_DIV32_Val _U_(0x6)
233 #define RTC_MODE2_CTRLA_PRESCALER_DIV64_Val _U_(0x7)
234 #define RTC_MODE2_CTRLA_PRESCALER_DIV128_Val _U_(0x8)
235 #define RTC_MODE2_CTRLA_PRESCALER_DIV256_Val _U_(0x9)
236 #define RTC_MODE2_CTRLA_PRESCALER_DIV512_Val _U_(0xA)
237 #define RTC_MODE2_CTRLA_PRESCALER_DIV1024_Val _U_(0xB)
238 #define RTC_MODE2_CTRLA_PRESCALER_OFF (RTC_MODE2_CTRLA_PRESCALER_OFF_Val << RTC_MODE2_CTRLA_PRESCALER_Pos)
239 #define RTC_MODE2_CTRLA_PRESCALER_DIV1 (RTC_MODE2_CTRLA_PRESCALER_DIV1_Val << RTC_MODE2_CTRLA_PRESCALER_Pos)
240 #define RTC_MODE2_CTRLA_PRESCALER_DIV2 (RTC_MODE2_CTRLA_PRESCALER_DIV2_Val << RTC_MODE2_CTRLA_PRESCALER_Pos)
241 #define RTC_MODE2_CTRLA_PRESCALER_DIV4 (RTC_MODE2_CTRLA_PRESCALER_DIV4_Val << RTC_MODE2_CTRLA_PRESCALER_Pos)
242 #define RTC_MODE2_CTRLA_PRESCALER_DIV8 (RTC_MODE2_CTRLA_PRESCALER_DIV8_Val << RTC_MODE2_CTRLA_PRESCALER_Pos)
243 #define RTC_MODE2_CTRLA_PRESCALER_DIV16 (RTC_MODE2_CTRLA_PRESCALER_DIV16_Val << RTC_MODE2_CTRLA_PRESCALER_Pos)
244 #define RTC_MODE2_CTRLA_PRESCALER_DIV32 (RTC_MODE2_CTRLA_PRESCALER_DIV32_Val << RTC_MODE2_CTRLA_PRESCALER_Pos)
245 #define RTC_MODE2_CTRLA_PRESCALER_DIV64 (RTC_MODE2_CTRLA_PRESCALER_DIV64_Val << RTC_MODE2_CTRLA_PRESCALER_Pos)
246 #define RTC_MODE2_CTRLA_PRESCALER_DIV128 (RTC_MODE2_CTRLA_PRESCALER_DIV128_Val << RTC_MODE2_CTRLA_PRESCALER_Pos)
247 #define RTC_MODE2_CTRLA_PRESCALER_DIV256 (RTC_MODE2_CTRLA_PRESCALER_DIV256_Val << RTC_MODE2_CTRLA_PRESCALER_Pos)
248 #define RTC_MODE2_CTRLA_PRESCALER_DIV512 (RTC_MODE2_CTRLA_PRESCALER_DIV512_Val << RTC_MODE2_CTRLA_PRESCALER_Pos)
249 #define RTC_MODE2_CTRLA_PRESCALER_DIV1024 (RTC_MODE2_CTRLA_PRESCALER_DIV1024_Val << RTC_MODE2_CTRLA_PRESCALER_Pos)
250 #define RTC_MODE2_CTRLA_BKTRST_Pos 13
251 #define RTC_MODE2_CTRLA_BKTRST (_U_(0x1) << RTC_MODE2_CTRLA_BKTRST_Pos)
252 #define RTC_MODE2_CTRLA_GPTRST_Pos 14
253 #define RTC_MODE2_CTRLA_GPTRST (_U_(0x1) << RTC_MODE2_CTRLA_GPTRST_Pos)
254 #define RTC_MODE2_CTRLA_CLOCKSYNC_Pos 15
255 #define RTC_MODE2_CTRLA_CLOCKSYNC (_U_(0x1) << RTC_MODE2_CTRLA_CLOCKSYNC_Pos)
256 #define RTC_MODE2_CTRLA_MASK _U_(0xEFCF)
258 /* -------- RTC_MODE0_CTRLB : (RTC Offset: 0x02) (R/W 16) MODE0 MODE0 Control B -------- */
259 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
260 typedef union {
261  struct {
262  uint16_t GP0EN:1;
263  uint16_t GP2EN:1;
264  uint16_t :2;
265  uint16_t DEBMAJ:1;
266  uint16_t DEBASYNC:1;
267  uint16_t RTCOUT:1;
268  uint16_t DMAEN:1;
269  uint16_t DEBF:3;
270  uint16_t :1;
271  uint16_t ACTF:3;
272  uint16_t :1;
273  } bit;
274  uint16_t reg;
276 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
277 
278 #define RTC_MODE0_CTRLB_OFFSET 0x02
279 #define RTC_MODE0_CTRLB_RESETVALUE _U_(0x0000)
281 #define RTC_MODE0_CTRLB_GP0EN_Pos 0
282 #define RTC_MODE0_CTRLB_GP0EN (_U_(0x1) << RTC_MODE0_CTRLB_GP0EN_Pos)
283 #define RTC_MODE0_CTRLB_GP2EN_Pos 1
284 #define RTC_MODE0_CTRLB_GP2EN (_U_(0x1) << RTC_MODE0_CTRLB_GP2EN_Pos)
285 #define RTC_MODE0_CTRLB_DEBMAJ_Pos 4
286 #define RTC_MODE0_CTRLB_DEBMAJ (_U_(0x1) << RTC_MODE0_CTRLB_DEBMAJ_Pos)
287 #define RTC_MODE0_CTRLB_DEBASYNC_Pos 5
288 #define RTC_MODE0_CTRLB_DEBASYNC (_U_(0x1) << RTC_MODE0_CTRLB_DEBASYNC_Pos)
289 #define RTC_MODE0_CTRLB_RTCOUT_Pos 6
290 #define RTC_MODE0_CTRLB_RTCOUT (_U_(0x1) << RTC_MODE0_CTRLB_RTCOUT_Pos)
291 #define RTC_MODE0_CTRLB_DMAEN_Pos 7
292 #define RTC_MODE0_CTRLB_DMAEN (_U_(0x1) << RTC_MODE0_CTRLB_DMAEN_Pos)
293 #define RTC_MODE0_CTRLB_DEBF_Pos 8
294 #define RTC_MODE0_CTRLB_DEBF_Msk (_U_(0x7) << RTC_MODE0_CTRLB_DEBF_Pos)
295 #define RTC_MODE0_CTRLB_DEBF(value) (RTC_MODE0_CTRLB_DEBF_Msk & ((value) << RTC_MODE0_CTRLB_DEBF_Pos))
296 #define RTC_MODE0_CTRLB_DEBF_DIV2_Val _U_(0x0)
297 #define RTC_MODE0_CTRLB_DEBF_DIV4_Val _U_(0x1)
298 #define RTC_MODE0_CTRLB_DEBF_DIV8_Val _U_(0x2)
299 #define RTC_MODE0_CTRLB_DEBF_DIV16_Val _U_(0x3)
300 #define RTC_MODE0_CTRLB_DEBF_DIV32_Val _U_(0x4)
301 #define RTC_MODE0_CTRLB_DEBF_DIV64_Val _U_(0x5)
302 #define RTC_MODE0_CTRLB_DEBF_DIV128_Val _U_(0x6)
303 #define RTC_MODE0_CTRLB_DEBF_DIV256_Val _U_(0x7)
304 #define RTC_MODE0_CTRLB_DEBF_DIV2 (RTC_MODE0_CTRLB_DEBF_DIV2_Val << RTC_MODE0_CTRLB_DEBF_Pos)
305 #define RTC_MODE0_CTRLB_DEBF_DIV4 (RTC_MODE0_CTRLB_DEBF_DIV4_Val << RTC_MODE0_CTRLB_DEBF_Pos)
306 #define RTC_MODE0_CTRLB_DEBF_DIV8 (RTC_MODE0_CTRLB_DEBF_DIV8_Val << RTC_MODE0_CTRLB_DEBF_Pos)
307 #define RTC_MODE0_CTRLB_DEBF_DIV16 (RTC_MODE0_CTRLB_DEBF_DIV16_Val << RTC_MODE0_CTRLB_DEBF_Pos)
308 #define RTC_MODE0_CTRLB_DEBF_DIV32 (RTC_MODE0_CTRLB_DEBF_DIV32_Val << RTC_MODE0_CTRLB_DEBF_Pos)
309 #define RTC_MODE0_CTRLB_DEBF_DIV64 (RTC_MODE0_CTRLB_DEBF_DIV64_Val << RTC_MODE0_CTRLB_DEBF_Pos)
310 #define RTC_MODE0_CTRLB_DEBF_DIV128 (RTC_MODE0_CTRLB_DEBF_DIV128_Val << RTC_MODE0_CTRLB_DEBF_Pos)
311 #define RTC_MODE0_CTRLB_DEBF_DIV256 (RTC_MODE0_CTRLB_DEBF_DIV256_Val << RTC_MODE0_CTRLB_DEBF_Pos)
312 #define RTC_MODE0_CTRLB_ACTF_Pos 12
313 #define RTC_MODE0_CTRLB_ACTF_Msk (_U_(0x7) << RTC_MODE0_CTRLB_ACTF_Pos)
314 #define RTC_MODE0_CTRLB_ACTF(value) (RTC_MODE0_CTRLB_ACTF_Msk & ((value) << RTC_MODE0_CTRLB_ACTF_Pos))
315 #define RTC_MODE0_CTRLB_ACTF_DIV2_Val _U_(0x0)
316 #define RTC_MODE0_CTRLB_ACTF_DIV4_Val _U_(0x1)
317 #define RTC_MODE0_CTRLB_ACTF_DIV8_Val _U_(0x2)
318 #define RTC_MODE0_CTRLB_ACTF_DIV16_Val _U_(0x3)
319 #define RTC_MODE0_CTRLB_ACTF_DIV32_Val _U_(0x4)
320 #define RTC_MODE0_CTRLB_ACTF_DIV64_Val _U_(0x5)
321 #define RTC_MODE0_CTRLB_ACTF_DIV128_Val _U_(0x6)
322 #define RTC_MODE0_CTRLB_ACTF_DIV256_Val _U_(0x7)
323 #define RTC_MODE0_CTRLB_ACTF_DIV2 (RTC_MODE0_CTRLB_ACTF_DIV2_Val << RTC_MODE0_CTRLB_ACTF_Pos)
324 #define RTC_MODE0_CTRLB_ACTF_DIV4 (RTC_MODE0_CTRLB_ACTF_DIV4_Val << RTC_MODE0_CTRLB_ACTF_Pos)
325 #define RTC_MODE0_CTRLB_ACTF_DIV8 (RTC_MODE0_CTRLB_ACTF_DIV8_Val << RTC_MODE0_CTRLB_ACTF_Pos)
326 #define RTC_MODE0_CTRLB_ACTF_DIV16 (RTC_MODE0_CTRLB_ACTF_DIV16_Val << RTC_MODE0_CTRLB_ACTF_Pos)
327 #define RTC_MODE0_CTRLB_ACTF_DIV32 (RTC_MODE0_CTRLB_ACTF_DIV32_Val << RTC_MODE0_CTRLB_ACTF_Pos)
328 #define RTC_MODE0_CTRLB_ACTF_DIV64 (RTC_MODE0_CTRLB_ACTF_DIV64_Val << RTC_MODE0_CTRLB_ACTF_Pos)
329 #define RTC_MODE0_CTRLB_ACTF_DIV128 (RTC_MODE0_CTRLB_ACTF_DIV128_Val << RTC_MODE0_CTRLB_ACTF_Pos)
330 #define RTC_MODE0_CTRLB_ACTF_DIV256 (RTC_MODE0_CTRLB_ACTF_DIV256_Val << RTC_MODE0_CTRLB_ACTF_Pos)
331 #define RTC_MODE0_CTRLB_MASK _U_(0x77F3)
333 /* -------- RTC_MODE1_CTRLB : (RTC Offset: 0x02) (R/W 16) MODE1 MODE1 Control B -------- */
334 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
335 typedef union {
336  struct {
337  uint16_t GP0EN:1;
338  uint16_t GP2EN:1;
339  uint16_t :2;
340  uint16_t DEBMAJ:1;
341  uint16_t DEBASYNC:1;
342  uint16_t RTCOUT:1;
343  uint16_t DMAEN:1;
344  uint16_t DEBF:3;
345  uint16_t :1;
346  uint16_t ACTF:3;
347  uint16_t :1;
348  } bit;
349  uint16_t reg;
351 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
352 
353 #define RTC_MODE1_CTRLB_OFFSET 0x02
354 #define RTC_MODE1_CTRLB_RESETVALUE _U_(0x0000)
356 #define RTC_MODE1_CTRLB_GP0EN_Pos 0
357 #define RTC_MODE1_CTRLB_GP0EN (_U_(0x1) << RTC_MODE1_CTRLB_GP0EN_Pos)
358 #define RTC_MODE1_CTRLB_GP2EN_Pos 1
359 #define RTC_MODE1_CTRLB_GP2EN (_U_(0x1) << RTC_MODE1_CTRLB_GP2EN_Pos)
360 #define RTC_MODE1_CTRLB_DEBMAJ_Pos 4
361 #define RTC_MODE1_CTRLB_DEBMAJ (_U_(0x1) << RTC_MODE1_CTRLB_DEBMAJ_Pos)
362 #define RTC_MODE1_CTRLB_DEBASYNC_Pos 5
363 #define RTC_MODE1_CTRLB_DEBASYNC (_U_(0x1) << RTC_MODE1_CTRLB_DEBASYNC_Pos)
364 #define RTC_MODE1_CTRLB_RTCOUT_Pos 6
365 #define RTC_MODE1_CTRLB_RTCOUT (_U_(0x1) << RTC_MODE1_CTRLB_RTCOUT_Pos)
366 #define RTC_MODE1_CTRLB_DMAEN_Pos 7
367 #define RTC_MODE1_CTRLB_DMAEN (_U_(0x1) << RTC_MODE1_CTRLB_DMAEN_Pos)
368 #define RTC_MODE1_CTRLB_DEBF_Pos 8
369 #define RTC_MODE1_CTRLB_DEBF_Msk (_U_(0x7) << RTC_MODE1_CTRLB_DEBF_Pos)
370 #define RTC_MODE1_CTRLB_DEBF(value) (RTC_MODE1_CTRLB_DEBF_Msk & ((value) << RTC_MODE1_CTRLB_DEBF_Pos))
371 #define RTC_MODE1_CTRLB_DEBF_DIV2_Val _U_(0x0)
372 #define RTC_MODE1_CTRLB_DEBF_DIV4_Val _U_(0x1)
373 #define RTC_MODE1_CTRLB_DEBF_DIV8_Val _U_(0x2)
374 #define RTC_MODE1_CTRLB_DEBF_DIV16_Val _U_(0x3)
375 #define RTC_MODE1_CTRLB_DEBF_DIV32_Val _U_(0x4)
376 #define RTC_MODE1_CTRLB_DEBF_DIV64_Val _U_(0x5)
377 #define RTC_MODE1_CTRLB_DEBF_DIV128_Val _U_(0x6)
378 #define RTC_MODE1_CTRLB_DEBF_DIV256_Val _U_(0x7)
379 #define RTC_MODE1_CTRLB_DEBF_DIV2 (RTC_MODE1_CTRLB_DEBF_DIV2_Val << RTC_MODE1_CTRLB_DEBF_Pos)
380 #define RTC_MODE1_CTRLB_DEBF_DIV4 (RTC_MODE1_CTRLB_DEBF_DIV4_Val << RTC_MODE1_CTRLB_DEBF_Pos)
381 #define RTC_MODE1_CTRLB_DEBF_DIV8 (RTC_MODE1_CTRLB_DEBF_DIV8_Val << RTC_MODE1_CTRLB_DEBF_Pos)
382 #define RTC_MODE1_CTRLB_DEBF_DIV16 (RTC_MODE1_CTRLB_DEBF_DIV16_Val << RTC_MODE1_CTRLB_DEBF_Pos)
383 #define RTC_MODE1_CTRLB_DEBF_DIV32 (RTC_MODE1_CTRLB_DEBF_DIV32_Val << RTC_MODE1_CTRLB_DEBF_Pos)
384 #define RTC_MODE1_CTRLB_DEBF_DIV64 (RTC_MODE1_CTRLB_DEBF_DIV64_Val << RTC_MODE1_CTRLB_DEBF_Pos)
385 #define RTC_MODE1_CTRLB_DEBF_DIV128 (RTC_MODE1_CTRLB_DEBF_DIV128_Val << RTC_MODE1_CTRLB_DEBF_Pos)
386 #define RTC_MODE1_CTRLB_DEBF_DIV256 (RTC_MODE1_CTRLB_DEBF_DIV256_Val << RTC_MODE1_CTRLB_DEBF_Pos)
387 #define RTC_MODE1_CTRLB_ACTF_Pos 12
388 #define RTC_MODE1_CTRLB_ACTF_Msk (_U_(0x7) << RTC_MODE1_CTRLB_ACTF_Pos)
389 #define RTC_MODE1_CTRLB_ACTF(value) (RTC_MODE1_CTRLB_ACTF_Msk & ((value) << RTC_MODE1_CTRLB_ACTF_Pos))
390 #define RTC_MODE1_CTRLB_ACTF_DIV2_Val _U_(0x0)
391 #define RTC_MODE1_CTRLB_ACTF_DIV4_Val _U_(0x1)
392 #define RTC_MODE1_CTRLB_ACTF_DIV8_Val _U_(0x2)
393 #define RTC_MODE1_CTRLB_ACTF_DIV16_Val _U_(0x3)
394 #define RTC_MODE1_CTRLB_ACTF_DIV32_Val _U_(0x4)
395 #define RTC_MODE1_CTRLB_ACTF_DIV64_Val _U_(0x5)
396 #define RTC_MODE1_CTRLB_ACTF_DIV128_Val _U_(0x6)
397 #define RTC_MODE1_CTRLB_ACTF_DIV256_Val _U_(0x7)
398 #define RTC_MODE1_CTRLB_ACTF_DIV2 (RTC_MODE1_CTRLB_ACTF_DIV2_Val << RTC_MODE1_CTRLB_ACTF_Pos)
399 #define RTC_MODE1_CTRLB_ACTF_DIV4 (RTC_MODE1_CTRLB_ACTF_DIV4_Val << RTC_MODE1_CTRLB_ACTF_Pos)
400 #define RTC_MODE1_CTRLB_ACTF_DIV8 (RTC_MODE1_CTRLB_ACTF_DIV8_Val << RTC_MODE1_CTRLB_ACTF_Pos)
401 #define RTC_MODE1_CTRLB_ACTF_DIV16 (RTC_MODE1_CTRLB_ACTF_DIV16_Val << RTC_MODE1_CTRLB_ACTF_Pos)
402 #define RTC_MODE1_CTRLB_ACTF_DIV32 (RTC_MODE1_CTRLB_ACTF_DIV32_Val << RTC_MODE1_CTRLB_ACTF_Pos)
403 #define RTC_MODE1_CTRLB_ACTF_DIV64 (RTC_MODE1_CTRLB_ACTF_DIV64_Val << RTC_MODE1_CTRLB_ACTF_Pos)
404 #define RTC_MODE1_CTRLB_ACTF_DIV128 (RTC_MODE1_CTRLB_ACTF_DIV128_Val << RTC_MODE1_CTRLB_ACTF_Pos)
405 #define RTC_MODE1_CTRLB_ACTF_DIV256 (RTC_MODE1_CTRLB_ACTF_DIV256_Val << RTC_MODE1_CTRLB_ACTF_Pos)
406 #define RTC_MODE1_CTRLB_MASK _U_(0x77F3)
408 /* -------- RTC_MODE2_CTRLB : (RTC Offset: 0x02) (R/W 16) MODE2 MODE2 Control B -------- */
409 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
410 typedef union {
411  struct {
412  uint16_t GP0EN:1;
413  uint16_t GP2EN:1;
414  uint16_t :2;
415  uint16_t DEBMAJ:1;
416  uint16_t DEBASYNC:1;
417  uint16_t RTCOUT:1;
418  uint16_t DMAEN:1;
419  uint16_t DEBF:3;
420  uint16_t :1;
421  uint16_t ACTF:3;
422  uint16_t :1;
423  } bit;
424  uint16_t reg;
426 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
427 
428 #define RTC_MODE2_CTRLB_OFFSET 0x02
429 #define RTC_MODE2_CTRLB_RESETVALUE _U_(0x0000)
431 #define RTC_MODE2_CTRLB_GP0EN_Pos 0
432 #define RTC_MODE2_CTRLB_GP0EN (_U_(0x1) << RTC_MODE2_CTRLB_GP0EN_Pos)
433 #define RTC_MODE2_CTRLB_GP2EN_Pos 1
434 #define RTC_MODE2_CTRLB_GP2EN (_U_(0x1) << RTC_MODE2_CTRLB_GP2EN_Pos)
435 #define RTC_MODE2_CTRLB_DEBMAJ_Pos 4
436 #define RTC_MODE2_CTRLB_DEBMAJ (_U_(0x1) << RTC_MODE2_CTRLB_DEBMAJ_Pos)
437 #define RTC_MODE2_CTRLB_DEBASYNC_Pos 5
438 #define RTC_MODE2_CTRLB_DEBASYNC (_U_(0x1) << RTC_MODE2_CTRLB_DEBASYNC_Pos)
439 #define RTC_MODE2_CTRLB_RTCOUT_Pos 6
440 #define RTC_MODE2_CTRLB_RTCOUT (_U_(0x1) << RTC_MODE2_CTRLB_RTCOUT_Pos)
441 #define RTC_MODE2_CTRLB_DMAEN_Pos 7
442 #define RTC_MODE2_CTRLB_DMAEN (_U_(0x1) << RTC_MODE2_CTRLB_DMAEN_Pos)
443 #define RTC_MODE2_CTRLB_DEBF_Pos 8
444 #define RTC_MODE2_CTRLB_DEBF_Msk (_U_(0x7) << RTC_MODE2_CTRLB_DEBF_Pos)
445 #define RTC_MODE2_CTRLB_DEBF(value) (RTC_MODE2_CTRLB_DEBF_Msk & ((value) << RTC_MODE2_CTRLB_DEBF_Pos))
446 #define RTC_MODE2_CTRLB_DEBF_DIV2_Val _U_(0x0)
447 #define RTC_MODE2_CTRLB_DEBF_DIV4_Val _U_(0x1)
448 #define RTC_MODE2_CTRLB_DEBF_DIV8_Val _U_(0x2)
449 #define RTC_MODE2_CTRLB_DEBF_DIV16_Val _U_(0x3)
450 #define RTC_MODE2_CTRLB_DEBF_DIV32_Val _U_(0x4)
451 #define RTC_MODE2_CTRLB_DEBF_DIV64_Val _U_(0x5)
452 #define RTC_MODE2_CTRLB_DEBF_DIV128_Val _U_(0x6)
453 #define RTC_MODE2_CTRLB_DEBF_DIV256_Val _U_(0x7)
454 #define RTC_MODE2_CTRLB_DEBF_DIV2 (RTC_MODE2_CTRLB_DEBF_DIV2_Val << RTC_MODE2_CTRLB_DEBF_Pos)
455 #define RTC_MODE2_CTRLB_DEBF_DIV4 (RTC_MODE2_CTRLB_DEBF_DIV4_Val << RTC_MODE2_CTRLB_DEBF_Pos)
456 #define RTC_MODE2_CTRLB_DEBF_DIV8 (RTC_MODE2_CTRLB_DEBF_DIV8_Val << RTC_MODE2_CTRLB_DEBF_Pos)
457 #define RTC_MODE2_CTRLB_DEBF_DIV16 (RTC_MODE2_CTRLB_DEBF_DIV16_Val << RTC_MODE2_CTRLB_DEBF_Pos)
458 #define RTC_MODE2_CTRLB_DEBF_DIV32 (RTC_MODE2_CTRLB_DEBF_DIV32_Val << RTC_MODE2_CTRLB_DEBF_Pos)
459 #define RTC_MODE2_CTRLB_DEBF_DIV64 (RTC_MODE2_CTRLB_DEBF_DIV64_Val << RTC_MODE2_CTRLB_DEBF_Pos)
460 #define RTC_MODE2_CTRLB_DEBF_DIV128 (RTC_MODE2_CTRLB_DEBF_DIV128_Val << RTC_MODE2_CTRLB_DEBF_Pos)
461 #define RTC_MODE2_CTRLB_DEBF_DIV256 (RTC_MODE2_CTRLB_DEBF_DIV256_Val << RTC_MODE2_CTRLB_DEBF_Pos)
462 #define RTC_MODE2_CTRLB_ACTF_Pos 12
463 #define RTC_MODE2_CTRLB_ACTF_Msk (_U_(0x7) << RTC_MODE2_CTRLB_ACTF_Pos)
464 #define RTC_MODE2_CTRLB_ACTF(value) (RTC_MODE2_CTRLB_ACTF_Msk & ((value) << RTC_MODE2_CTRLB_ACTF_Pos))
465 #define RTC_MODE2_CTRLB_ACTF_DIV2_Val _U_(0x0)
466 #define RTC_MODE2_CTRLB_ACTF_DIV4_Val _U_(0x1)
467 #define RTC_MODE2_CTRLB_ACTF_DIV8_Val _U_(0x2)
468 #define RTC_MODE2_CTRLB_ACTF_DIV16_Val _U_(0x3)
469 #define RTC_MODE2_CTRLB_ACTF_DIV32_Val _U_(0x4)
470 #define RTC_MODE2_CTRLB_ACTF_DIV64_Val _U_(0x5)
471 #define RTC_MODE2_CTRLB_ACTF_DIV128_Val _U_(0x6)
472 #define RTC_MODE2_CTRLB_ACTF_DIV256_Val _U_(0x7)
473 #define RTC_MODE2_CTRLB_ACTF_DIV2 (RTC_MODE2_CTRLB_ACTF_DIV2_Val << RTC_MODE2_CTRLB_ACTF_Pos)
474 #define RTC_MODE2_CTRLB_ACTF_DIV4 (RTC_MODE2_CTRLB_ACTF_DIV4_Val << RTC_MODE2_CTRLB_ACTF_Pos)
475 #define RTC_MODE2_CTRLB_ACTF_DIV8 (RTC_MODE2_CTRLB_ACTF_DIV8_Val << RTC_MODE2_CTRLB_ACTF_Pos)
476 #define RTC_MODE2_CTRLB_ACTF_DIV16 (RTC_MODE2_CTRLB_ACTF_DIV16_Val << RTC_MODE2_CTRLB_ACTF_Pos)
477 #define RTC_MODE2_CTRLB_ACTF_DIV32 (RTC_MODE2_CTRLB_ACTF_DIV32_Val << RTC_MODE2_CTRLB_ACTF_Pos)
478 #define RTC_MODE2_CTRLB_ACTF_DIV64 (RTC_MODE2_CTRLB_ACTF_DIV64_Val << RTC_MODE2_CTRLB_ACTF_Pos)
479 #define RTC_MODE2_CTRLB_ACTF_DIV128 (RTC_MODE2_CTRLB_ACTF_DIV128_Val << RTC_MODE2_CTRLB_ACTF_Pos)
480 #define RTC_MODE2_CTRLB_ACTF_DIV256 (RTC_MODE2_CTRLB_ACTF_DIV256_Val << RTC_MODE2_CTRLB_ACTF_Pos)
481 #define RTC_MODE2_CTRLB_MASK _U_(0x77F3)
483 /* -------- RTC_MODE0_EVCTRL : (RTC Offset: 0x04) (R/W 32) MODE0 MODE0 Event Control -------- */
484 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
485 typedef union {
486  struct {
487  uint32_t PEREO0:1;
488  uint32_t PEREO1:1;
489  uint32_t PEREO2:1;
490  uint32_t PEREO3:1;
491  uint32_t PEREO4:1;
492  uint32_t PEREO5:1;
493  uint32_t PEREO6:1;
494  uint32_t PEREO7:1;
495  uint32_t CMPEO0:1;
496  uint32_t CMPEO1:1;
497  uint32_t :4;
498  uint32_t TAMPEREO:1;
499  uint32_t OVFEO:1;
500  uint32_t TAMPEVEI:1;
501  uint32_t :15;
502  } bit;
503  struct {
504  uint32_t PEREO:8;
505  uint32_t CMPEO:2;
506  uint32_t :22;
507  } vec;
508  uint32_t reg;
510 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
511 
512 #define RTC_MODE0_EVCTRL_OFFSET 0x04
513 #define RTC_MODE0_EVCTRL_RESETVALUE _U_(0x00000000)
515 #define RTC_MODE0_EVCTRL_PEREO0_Pos 0
516 #define RTC_MODE0_EVCTRL_PEREO0 (_U_(1) << RTC_MODE0_EVCTRL_PEREO0_Pos)
517 #define RTC_MODE0_EVCTRL_PEREO1_Pos 1
518 #define RTC_MODE0_EVCTRL_PEREO1 (_U_(1) << RTC_MODE0_EVCTRL_PEREO1_Pos)
519 #define RTC_MODE0_EVCTRL_PEREO2_Pos 2
520 #define RTC_MODE0_EVCTRL_PEREO2 (_U_(1) << RTC_MODE0_EVCTRL_PEREO2_Pos)
521 #define RTC_MODE0_EVCTRL_PEREO3_Pos 3
522 #define RTC_MODE0_EVCTRL_PEREO3 (_U_(1) << RTC_MODE0_EVCTRL_PEREO3_Pos)
523 #define RTC_MODE0_EVCTRL_PEREO4_Pos 4
524 #define RTC_MODE0_EVCTRL_PEREO4 (_U_(1) << RTC_MODE0_EVCTRL_PEREO4_Pos)
525 #define RTC_MODE0_EVCTRL_PEREO5_Pos 5
526 #define RTC_MODE0_EVCTRL_PEREO5 (_U_(1) << RTC_MODE0_EVCTRL_PEREO5_Pos)
527 #define RTC_MODE0_EVCTRL_PEREO6_Pos 6
528 #define RTC_MODE0_EVCTRL_PEREO6 (_U_(1) << RTC_MODE0_EVCTRL_PEREO6_Pos)
529 #define RTC_MODE0_EVCTRL_PEREO7_Pos 7
530 #define RTC_MODE0_EVCTRL_PEREO7 (_U_(1) << RTC_MODE0_EVCTRL_PEREO7_Pos)
531 #define RTC_MODE0_EVCTRL_PEREO_Pos 0
532 #define RTC_MODE0_EVCTRL_PEREO_Msk (_U_(0xFF) << RTC_MODE0_EVCTRL_PEREO_Pos)
533 #define RTC_MODE0_EVCTRL_PEREO(value) (RTC_MODE0_EVCTRL_PEREO_Msk & ((value) << RTC_MODE0_EVCTRL_PEREO_Pos))
534 #define RTC_MODE0_EVCTRL_CMPEO0_Pos 8
535 #define RTC_MODE0_EVCTRL_CMPEO0 (_U_(1) << RTC_MODE0_EVCTRL_CMPEO0_Pos)
536 #define RTC_MODE0_EVCTRL_CMPEO1_Pos 9
537 #define RTC_MODE0_EVCTRL_CMPEO1 (_U_(1) << RTC_MODE0_EVCTRL_CMPEO1_Pos)
538 #define RTC_MODE0_EVCTRL_CMPEO_Pos 8
539 #define RTC_MODE0_EVCTRL_CMPEO_Msk (_U_(0x3) << RTC_MODE0_EVCTRL_CMPEO_Pos)
540 #define RTC_MODE0_EVCTRL_CMPEO(value) (RTC_MODE0_EVCTRL_CMPEO_Msk & ((value) << RTC_MODE0_EVCTRL_CMPEO_Pos))
541 #define RTC_MODE0_EVCTRL_TAMPEREO_Pos 14
542 #define RTC_MODE0_EVCTRL_TAMPEREO (_U_(0x1) << RTC_MODE0_EVCTRL_TAMPEREO_Pos)
543 #define RTC_MODE0_EVCTRL_OVFEO_Pos 15
544 #define RTC_MODE0_EVCTRL_OVFEO (_U_(0x1) << RTC_MODE0_EVCTRL_OVFEO_Pos)
545 #define RTC_MODE0_EVCTRL_TAMPEVEI_Pos 16
546 #define RTC_MODE0_EVCTRL_TAMPEVEI (_U_(0x1) << RTC_MODE0_EVCTRL_TAMPEVEI_Pos)
547 #define RTC_MODE0_EVCTRL_MASK _U_(0x0001C3FF)
549 /* -------- RTC_MODE1_EVCTRL : (RTC Offset: 0x04) (R/W 32) MODE1 MODE1 Event Control -------- */
550 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
551 typedef union {
552  struct {
553  uint32_t PEREO0:1;
554  uint32_t PEREO1:1;
555  uint32_t PEREO2:1;
556  uint32_t PEREO3:1;
557  uint32_t PEREO4:1;
558  uint32_t PEREO5:1;
559  uint32_t PEREO6:1;
560  uint32_t PEREO7:1;
561  uint32_t CMPEO0:1;
562  uint32_t CMPEO1:1;
563  uint32_t CMPEO2:1;
564  uint32_t CMPEO3:1;
565  uint32_t :2;
566  uint32_t TAMPEREO:1;
567  uint32_t OVFEO:1;
568  uint32_t TAMPEVEI:1;
569  uint32_t :15;
570  } bit;
571  struct {
572  uint32_t PEREO:8;
573  uint32_t CMPEO:4;
574  uint32_t :20;
575  } vec;
576  uint32_t reg;
578 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
579 
580 #define RTC_MODE1_EVCTRL_OFFSET 0x04
581 #define RTC_MODE1_EVCTRL_RESETVALUE _U_(0x00000000)
583 #define RTC_MODE1_EVCTRL_PEREO0_Pos 0
584 #define RTC_MODE1_EVCTRL_PEREO0 (_U_(1) << RTC_MODE1_EVCTRL_PEREO0_Pos)
585 #define RTC_MODE1_EVCTRL_PEREO1_Pos 1
586 #define RTC_MODE1_EVCTRL_PEREO1 (_U_(1) << RTC_MODE1_EVCTRL_PEREO1_Pos)
587 #define RTC_MODE1_EVCTRL_PEREO2_Pos 2
588 #define RTC_MODE1_EVCTRL_PEREO2 (_U_(1) << RTC_MODE1_EVCTRL_PEREO2_Pos)
589 #define RTC_MODE1_EVCTRL_PEREO3_Pos 3
590 #define RTC_MODE1_EVCTRL_PEREO3 (_U_(1) << RTC_MODE1_EVCTRL_PEREO3_Pos)
591 #define RTC_MODE1_EVCTRL_PEREO4_Pos 4
592 #define RTC_MODE1_EVCTRL_PEREO4 (_U_(1) << RTC_MODE1_EVCTRL_PEREO4_Pos)
593 #define RTC_MODE1_EVCTRL_PEREO5_Pos 5
594 #define RTC_MODE1_EVCTRL_PEREO5 (_U_(1) << RTC_MODE1_EVCTRL_PEREO5_Pos)
595 #define RTC_MODE1_EVCTRL_PEREO6_Pos 6
596 #define RTC_MODE1_EVCTRL_PEREO6 (_U_(1) << RTC_MODE1_EVCTRL_PEREO6_Pos)
597 #define RTC_MODE1_EVCTRL_PEREO7_Pos 7
598 #define RTC_MODE1_EVCTRL_PEREO7 (_U_(1) << RTC_MODE1_EVCTRL_PEREO7_Pos)
599 #define RTC_MODE1_EVCTRL_PEREO_Pos 0
600 #define RTC_MODE1_EVCTRL_PEREO_Msk (_U_(0xFF) << RTC_MODE1_EVCTRL_PEREO_Pos)
601 #define RTC_MODE1_EVCTRL_PEREO(value) (RTC_MODE1_EVCTRL_PEREO_Msk & ((value) << RTC_MODE1_EVCTRL_PEREO_Pos))
602 #define RTC_MODE1_EVCTRL_CMPEO0_Pos 8
603 #define RTC_MODE1_EVCTRL_CMPEO0 (_U_(1) << RTC_MODE1_EVCTRL_CMPEO0_Pos)
604 #define RTC_MODE1_EVCTRL_CMPEO1_Pos 9
605 #define RTC_MODE1_EVCTRL_CMPEO1 (_U_(1) << RTC_MODE1_EVCTRL_CMPEO1_Pos)
606 #define RTC_MODE1_EVCTRL_CMPEO2_Pos 10
607 #define RTC_MODE1_EVCTRL_CMPEO2 (_U_(1) << RTC_MODE1_EVCTRL_CMPEO2_Pos)
608 #define RTC_MODE1_EVCTRL_CMPEO3_Pos 11
609 #define RTC_MODE1_EVCTRL_CMPEO3 (_U_(1) << RTC_MODE1_EVCTRL_CMPEO3_Pos)
610 #define RTC_MODE1_EVCTRL_CMPEO_Pos 8
611 #define RTC_MODE1_EVCTRL_CMPEO_Msk (_U_(0xF) << RTC_MODE1_EVCTRL_CMPEO_Pos)
612 #define RTC_MODE1_EVCTRL_CMPEO(value) (RTC_MODE1_EVCTRL_CMPEO_Msk & ((value) << RTC_MODE1_EVCTRL_CMPEO_Pos))
613 #define RTC_MODE1_EVCTRL_TAMPEREO_Pos 14
614 #define RTC_MODE1_EVCTRL_TAMPEREO (_U_(0x1) << RTC_MODE1_EVCTRL_TAMPEREO_Pos)
615 #define RTC_MODE1_EVCTRL_OVFEO_Pos 15
616 #define RTC_MODE1_EVCTRL_OVFEO (_U_(0x1) << RTC_MODE1_EVCTRL_OVFEO_Pos)
617 #define RTC_MODE1_EVCTRL_TAMPEVEI_Pos 16
618 #define RTC_MODE1_EVCTRL_TAMPEVEI (_U_(0x1) << RTC_MODE1_EVCTRL_TAMPEVEI_Pos)
619 #define RTC_MODE1_EVCTRL_MASK _U_(0x0001CFFF)
621 /* -------- RTC_MODE2_EVCTRL : (RTC Offset: 0x04) (R/W 32) MODE2 MODE2 Event Control -------- */
622 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
623 typedef union {
624  struct {
625  uint32_t PEREO0:1;
626  uint32_t PEREO1:1;
627  uint32_t PEREO2:1;
628  uint32_t PEREO3:1;
629  uint32_t PEREO4:1;
630  uint32_t PEREO5:1;
631  uint32_t PEREO6:1;
632  uint32_t PEREO7:1;
633  uint32_t ALARMEO0:1;
634  uint32_t ALARMEO1:1;
635  uint32_t :4;
636  uint32_t TAMPEREO:1;
637  uint32_t OVFEO:1;
638  uint32_t TAMPEVEI:1;
639  uint32_t :15;
640  } bit;
641  struct {
642  uint32_t PEREO:8;
643  uint32_t ALARMEO:2;
644  uint32_t :22;
645  } vec;
646  uint32_t reg;
648 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
649 
650 #define RTC_MODE2_EVCTRL_OFFSET 0x04
651 #define RTC_MODE2_EVCTRL_RESETVALUE _U_(0x00000000)
653 #define RTC_MODE2_EVCTRL_PEREO0_Pos 0
654 #define RTC_MODE2_EVCTRL_PEREO0 (_U_(1) << RTC_MODE2_EVCTRL_PEREO0_Pos)
655 #define RTC_MODE2_EVCTRL_PEREO1_Pos 1
656 #define RTC_MODE2_EVCTRL_PEREO1 (_U_(1) << RTC_MODE2_EVCTRL_PEREO1_Pos)
657 #define RTC_MODE2_EVCTRL_PEREO2_Pos 2
658 #define RTC_MODE2_EVCTRL_PEREO2 (_U_(1) << RTC_MODE2_EVCTRL_PEREO2_Pos)
659 #define RTC_MODE2_EVCTRL_PEREO3_Pos 3
660 #define RTC_MODE2_EVCTRL_PEREO3 (_U_(1) << RTC_MODE2_EVCTRL_PEREO3_Pos)
661 #define RTC_MODE2_EVCTRL_PEREO4_Pos 4
662 #define RTC_MODE2_EVCTRL_PEREO4 (_U_(1) << RTC_MODE2_EVCTRL_PEREO4_Pos)
663 #define RTC_MODE2_EVCTRL_PEREO5_Pos 5
664 #define RTC_MODE2_EVCTRL_PEREO5 (_U_(1) << RTC_MODE2_EVCTRL_PEREO5_Pos)
665 #define RTC_MODE2_EVCTRL_PEREO6_Pos 6
666 #define RTC_MODE2_EVCTRL_PEREO6 (_U_(1) << RTC_MODE2_EVCTRL_PEREO6_Pos)
667 #define RTC_MODE2_EVCTRL_PEREO7_Pos 7
668 #define RTC_MODE2_EVCTRL_PEREO7 (_U_(1) << RTC_MODE2_EVCTRL_PEREO7_Pos)
669 #define RTC_MODE2_EVCTRL_PEREO_Pos 0
670 #define RTC_MODE2_EVCTRL_PEREO_Msk (_U_(0xFF) << RTC_MODE2_EVCTRL_PEREO_Pos)
671 #define RTC_MODE2_EVCTRL_PEREO(value) (RTC_MODE2_EVCTRL_PEREO_Msk & ((value) << RTC_MODE2_EVCTRL_PEREO_Pos))
672 #define RTC_MODE2_EVCTRL_ALARMEO0_Pos 8
673 #define RTC_MODE2_EVCTRL_ALARMEO0 (_U_(1) << RTC_MODE2_EVCTRL_ALARMEO0_Pos)
674 #define RTC_MODE2_EVCTRL_ALARMEO1_Pos 9
675 #define RTC_MODE2_EVCTRL_ALARMEO1 (_U_(1) << RTC_MODE2_EVCTRL_ALARMEO1_Pos)
676 #define RTC_MODE2_EVCTRL_ALARMEO_Pos 8
677 #define RTC_MODE2_EVCTRL_ALARMEO_Msk (_U_(0x3) << RTC_MODE2_EVCTRL_ALARMEO_Pos)
678 #define RTC_MODE2_EVCTRL_ALARMEO(value) (RTC_MODE2_EVCTRL_ALARMEO_Msk & ((value) << RTC_MODE2_EVCTRL_ALARMEO_Pos))
679 #define RTC_MODE2_EVCTRL_TAMPEREO_Pos 14
680 #define RTC_MODE2_EVCTRL_TAMPEREO (_U_(0x1) << RTC_MODE2_EVCTRL_TAMPEREO_Pos)
681 #define RTC_MODE2_EVCTRL_OVFEO_Pos 15
682 #define RTC_MODE2_EVCTRL_OVFEO (_U_(0x1) << RTC_MODE2_EVCTRL_OVFEO_Pos)
683 #define RTC_MODE2_EVCTRL_TAMPEVEI_Pos 16
684 #define RTC_MODE2_EVCTRL_TAMPEVEI (_U_(0x1) << RTC_MODE2_EVCTRL_TAMPEVEI_Pos)
685 #define RTC_MODE2_EVCTRL_MASK _U_(0x0001C3FF)
687 /* -------- RTC_MODE0_INTENCLR : (RTC Offset: 0x08) (R/W 16) MODE0 MODE0 Interrupt Enable Clear -------- */
688 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
689 typedef union {
690  struct {
691  uint16_t PER0:1;
692  uint16_t PER1:1;
693  uint16_t PER2:1;
694  uint16_t PER3:1;
695  uint16_t PER4:1;
696  uint16_t PER5:1;
697  uint16_t PER6:1;
698  uint16_t PER7:1;
699  uint16_t CMP0:1;
700  uint16_t CMP1:1;
701  uint16_t :4;
702  uint16_t TAMPER:1;
703  uint16_t OVF:1;
704  } bit;
705  struct {
706  uint16_t PER:8;
707  uint16_t CMP:2;
708  uint16_t :6;
709  } vec;
710  uint16_t reg;
712 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
713 
714 #define RTC_MODE0_INTENCLR_OFFSET 0x08
715 #define RTC_MODE0_INTENCLR_RESETVALUE _U_(0x0000)
717 #define RTC_MODE0_INTENCLR_PER0_Pos 0
718 #define RTC_MODE0_INTENCLR_PER0 (_U_(1) << RTC_MODE0_INTENCLR_PER0_Pos)
719 #define RTC_MODE0_INTENCLR_PER1_Pos 1
720 #define RTC_MODE0_INTENCLR_PER1 (_U_(1) << RTC_MODE0_INTENCLR_PER1_Pos)
721 #define RTC_MODE0_INTENCLR_PER2_Pos 2
722 #define RTC_MODE0_INTENCLR_PER2 (_U_(1) << RTC_MODE0_INTENCLR_PER2_Pos)
723 #define RTC_MODE0_INTENCLR_PER3_Pos 3
724 #define RTC_MODE0_INTENCLR_PER3 (_U_(1) << RTC_MODE0_INTENCLR_PER3_Pos)
725 #define RTC_MODE0_INTENCLR_PER4_Pos 4
726 #define RTC_MODE0_INTENCLR_PER4 (_U_(1) << RTC_MODE0_INTENCLR_PER4_Pos)
727 #define RTC_MODE0_INTENCLR_PER5_Pos 5
728 #define RTC_MODE0_INTENCLR_PER5 (_U_(1) << RTC_MODE0_INTENCLR_PER5_Pos)
729 #define RTC_MODE0_INTENCLR_PER6_Pos 6
730 #define RTC_MODE0_INTENCLR_PER6 (_U_(1) << RTC_MODE0_INTENCLR_PER6_Pos)
731 #define RTC_MODE0_INTENCLR_PER7_Pos 7
732 #define RTC_MODE0_INTENCLR_PER7 (_U_(1) << RTC_MODE0_INTENCLR_PER7_Pos)
733 #define RTC_MODE0_INTENCLR_PER_Pos 0
734 #define RTC_MODE0_INTENCLR_PER_Msk (_U_(0xFF) << RTC_MODE0_INTENCLR_PER_Pos)
735 #define RTC_MODE0_INTENCLR_PER(value) (RTC_MODE0_INTENCLR_PER_Msk & ((value) << RTC_MODE0_INTENCLR_PER_Pos))
736 #define RTC_MODE0_INTENCLR_CMP0_Pos 8
737 #define RTC_MODE0_INTENCLR_CMP0 (_U_(1) << RTC_MODE0_INTENCLR_CMP0_Pos)
738 #define RTC_MODE0_INTENCLR_CMP1_Pos 9
739 #define RTC_MODE0_INTENCLR_CMP1 (_U_(1) << RTC_MODE0_INTENCLR_CMP1_Pos)
740 #define RTC_MODE0_INTENCLR_CMP_Pos 8
741 #define RTC_MODE0_INTENCLR_CMP_Msk (_U_(0x3) << RTC_MODE0_INTENCLR_CMP_Pos)
742 #define RTC_MODE0_INTENCLR_CMP(value) (RTC_MODE0_INTENCLR_CMP_Msk & ((value) << RTC_MODE0_INTENCLR_CMP_Pos))
743 #define RTC_MODE0_INTENCLR_TAMPER_Pos 14
744 #define RTC_MODE0_INTENCLR_TAMPER (_U_(0x1) << RTC_MODE0_INTENCLR_TAMPER_Pos)
745 #define RTC_MODE0_INTENCLR_OVF_Pos 15
746 #define RTC_MODE0_INTENCLR_OVF (_U_(0x1) << RTC_MODE0_INTENCLR_OVF_Pos)
747 #define RTC_MODE0_INTENCLR_MASK _U_(0xC3FF)
749 /* -------- RTC_MODE1_INTENCLR : (RTC Offset: 0x08) (R/W 16) MODE1 MODE1 Interrupt Enable Clear -------- */
750 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
751 typedef union {
752  struct {
753  uint16_t PER0:1;
754  uint16_t PER1:1;
755  uint16_t PER2:1;
756  uint16_t PER3:1;
757  uint16_t PER4:1;
758  uint16_t PER5:1;
759  uint16_t PER6:1;
760  uint16_t PER7:1;
761  uint16_t CMP0:1;
762  uint16_t CMP1:1;
763  uint16_t CMP2:1;
764  uint16_t CMP3:1;
765  uint16_t :2;
766  uint16_t TAMPER:1;
767  uint16_t OVF:1;
768  } bit;
769  struct {
770  uint16_t PER:8;
771  uint16_t CMP:4;
772  uint16_t :4;
773  } vec;
774  uint16_t reg;
776 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
777 
778 #define RTC_MODE1_INTENCLR_OFFSET 0x08
779 #define RTC_MODE1_INTENCLR_RESETVALUE _U_(0x0000)
781 #define RTC_MODE1_INTENCLR_PER0_Pos 0
782 #define RTC_MODE1_INTENCLR_PER0 (_U_(1) << RTC_MODE1_INTENCLR_PER0_Pos)
783 #define RTC_MODE1_INTENCLR_PER1_Pos 1
784 #define RTC_MODE1_INTENCLR_PER1 (_U_(1) << RTC_MODE1_INTENCLR_PER1_Pos)
785 #define RTC_MODE1_INTENCLR_PER2_Pos 2
786 #define RTC_MODE1_INTENCLR_PER2 (_U_(1) << RTC_MODE1_INTENCLR_PER2_Pos)
787 #define RTC_MODE1_INTENCLR_PER3_Pos 3
788 #define RTC_MODE1_INTENCLR_PER3 (_U_(1) << RTC_MODE1_INTENCLR_PER3_Pos)
789 #define RTC_MODE1_INTENCLR_PER4_Pos 4
790 #define RTC_MODE1_INTENCLR_PER4 (_U_(1) << RTC_MODE1_INTENCLR_PER4_Pos)
791 #define RTC_MODE1_INTENCLR_PER5_Pos 5
792 #define RTC_MODE1_INTENCLR_PER5 (_U_(1) << RTC_MODE1_INTENCLR_PER5_Pos)
793 #define RTC_MODE1_INTENCLR_PER6_Pos 6
794 #define RTC_MODE1_INTENCLR_PER6 (_U_(1) << RTC_MODE1_INTENCLR_PER6_Pos)
795 #define RTC_MODE1_INTENCLR_PER7_Pos 7
796 #define RTC_MODE1_INTENCLR_PER7 (_U_(1) << RTC_MODE1_INTENCLR_PER7_Pos)
797 #define RTC_MODE1_INTENCLR_PER_Pos 0
798 #define RTC_MODE1_INTENCLR_PER_Msk (_U_(0xFF) << RTC_MODE1_INTENCLR_PER_Pos)
799 #define RTC_MODE1_INTENCLR_PER(value) (RTC_MODE1_INTENCLR_PER_Msk & ((value) << RTC_MODE1_INTENCLR_PER_Pos))
800 #define RTC_MODE1_INTENCLR_CMP0_Pos 8
801 #define RTC_MODE1_INTENCLR_CMP0 (_U_(1) << RTC_MODE1_INTENCLR_CMP0_Pos)
802 #define RTC_MODE1_INTENCLR_CMP1_Pos 9
803 #define RTC_MODE1_INTENCLR_CMP1 (_U_(1) << RTC_MODE1_INTENCLR_CMP1_Pos)
804 #define RTC_MODE1_INTENCLR_CMP2_Pos 10
805 #define RTC_MODE1_INTENCLR_CMP2 (_U_(1) << RTC_MODE1_INTENCLR_CMP2_Pos)
806 #define RTC_MODE1_INTENCLR_CMP3_Pos 11
807 #define RTC_MODE1_INTENCLR_CMP3 (_U_(1) << RTC_MODE1_INTENCLR_CMP3_Pos)
808 #define RTC_MODE1_INTENCLR_CMP_Pos 8
809 #define RTC_MODE1_INTENCLR_CMP_Msk (_U_(0xF) << RTC_MODE1_INTENCLR_CMP_Pos)
810 #define RTC_MODE1_INTENCLR_CMP(value) (RTC_MODE1_INTENCLR_CMP_Msk & ((value) << RTC_MODE1_INTENCLR_CMP_Pos))
811 #define RTC_MODE1_INTENCLR_TAMPER_Pos 14
812 #define RTC_MODE1_INTENCLR_TAMPER (_U_(0x1) << RTC_MODE1_INTENCLR_TAMPER_Pos)
813 #define RTC_MODE1_INTENCLR_OVF_Pos 15
814 #define RTC_MODE1_INTENCLR_OVF (_U_(0x1) << RTC_MODE1_INTENCLR_OVF_Pos)
815 #define RTC_MODE1_INTENCLR_MASK _U_(0xCFFF)
817 /* -------- RTC_MODE2_INTENCLR : (RTC Offset: 0x08) (R/W 16) MODE2 MODE2 Interrupt Enable Clear -------- */
818 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
819 typedef union {
820  struct {
821  uint16_t PER0:1;
822  uint16_t PER1:1;
823  uint16_t PER2:1;
824  uint16_t PER3:1;
825  uint16_t PER4:1;
826  uint16_t PER5:1;
827  uint16_t PER6:1;
828  uint16_t PER7:1;
829  uint16_t ALARM0:1;
830  uint16_t ALARM1:1;
831  uint16_t :4;
832  uint16_t TAMPER:1;
833  uint16_t OVF:1;
834  } bit;
835  struct {
836  uint16_t PER:8;
837  uint16_t ALARM:2;
838  uint16_t :6;
839  } vec;
840  uint16_t reg;
842 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
843 
844 #define RTC_MODE2_INTENCLR_OFFSET 0x08
845 #define RTC_MODE2_INTENCLR_RESETVALUE _U_(0x0000)
847 #define RTC_MODE2_INTENCLR_PER0_Pos 0
848 #define RTC_MODE2_INTENCLR_PER0 (_U_(1) << RTC_MODE2_INTENCLR_PER0_Pos)
849 #define RTC_MODE2_INTENCLR_PER1_Pos 1
850 #define RTC_MODE2_INTENCLR_PER1 (_U_(1) << RTC_MODE2_INTENCLR_PER1_Pos)
851 #define RTC_MODE2_INTENCLR_PER2_Pos 2
852 #define RTC_MODE2_INTENCLR_PER2 (_U_(1) << RTC_MODE2_INTENCLR_PER2_Pos)
853 #define RTC_MODE2_INTENCLR_PER3_Pos 3
854 #define RTC_MODE2_INTENCLR_PER3 (_U_(1) << RTC_MODE2_INTENCLR_PER3_Pos)
855 #define RTC_MODE2_INTENCLR_PER4_Pos 4
856 #define RTC_MODE2_INTENCLR_PER4 (_U_(1) << RTC_MODE2_INTENCLR_PER4_Pos)
857 #define RTC_MODE2_INTENCLR_PER5_Pos 5
858 #define RTC_MODE2_INTENCLR_PER5 (_U_(1) << RTC_MODE2_INTENCLR_PER5_Pos)
859 #define RTC_MODE2_INTENCLR_PER6_Pos 6
860 #define RTC_MODE2_INTENCLR_PER6 (_U_(1) << RTC_MODE2_INTENCLR_PER6_Pos)
861 #define RTC_MODE2_INTENCLR_PER7_Pos 7
862 #define RTC_MODE2_INTENCLR_PER7 (_U_(1) << RTC_MODE2_INTENCLR_PER7_Pos)
863 #define RTC_MODE2_INTENCLR_PER_Pos 0
864 #define RTC_MODE2_INTENCLR_PER_Msk (_U_(0xFF) << RTC_MODE2_INTENCLR_PER_Pos)
865 #define RTC_MODE2_INTENCLR_PER(value) (RTC_MODE2_INTENCLR_PER_Msk & ((value) << RTC_MODE2_INTENCLR_PER_Pos))
866 #define RTC_MODE2_INTENCLR_ALARM0_Pos 8
867 #define RTC_MODE2_INTENCLR_ALARM0 (_U_(1) << RTC_MODE2_INTENCLR_ALARM0_Pos)
868 #define RTC_MODE2_INTENCLR_ALARM1_Pos 9
869 #define RTC_MODE2_INTENCLR_ALARM1 (_U_(1) << RTC_MODE2_INTENCLR_ALARM1_Pos)
870 #define RTC_MODE2_INTENCLR_ALARM_Pos 8
871 #define RTC_MODE2_INTENCLR_ALARM_Msk (_U_(0x3) << RTC_MODE2_INTENCLR_ALARM_Pos)
872 #define RTC_MODE2_INTENCLR_ALARM(value) (RTC_MODE2_INTENCLR_ALARM_Msk & ((value) << RTC_MODE2_INTENCLR_ALARM_Pos))
873 #define RTC_MODE2_INTENCLR_TAMPER_Pos 14
874 #define RTC_MODE2_INTENCLR_TAMPER (_U_(0x1) << RTC_MODE2_INTENCLR_TAMPER_Pos)
875 #define RTC_MODE2_INTENCLR_OVF_Pos 15
876 #define RTC_MODE2_INTENCLR_OVF (_U_(0x1) << RTC_MODE2_INTENCLR_OVF_Pos)
877 #define RTC_MODE2_INTENCLR_MASK _U_(0xC3FF)
879 /* -------- RTC_MODE0_INTENSET : (RTC Offset: 0x0A) (R/W 16) MODE0 MODE0 Interrupt Enable Set -------- */
880 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
881 typedef union {
882  struct {
883  uint16_t PER0:1;
884  uint16_t PER1:1;
885  uint16_t PER2:1;
886  uint16_t PER3:1;
887  uint16_t PER4:1;
888  uint16_t PER5:1;
889  uint16_t PER6:1;
890  uint16_t PER7:1;
891  uint16_t CMP0:1;
892  uint16_t CMP1:1;
893  uint16_t :4;
894  uint16_t TAMPER:1;
895  uint16_t OVF:1;
896  } bit;
897  struct {
898  uint16_t PER:8;
899  uint16_t CMP:2;
900  uint16_t :6;
901  } vec;
902  uint16_t reg;
904 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
905 
906 #define RTC_MODE0_INTENSET_OFFSET 0x0A
907 #define RTC_MODE0_INTENSET_RESETVALUE _U_(0x0000)
909 #define RTC_MODE0_INTENSET_PER0_Pos 0
910 #define RTC_MODE0_INTENSET_PER0 (_U_(1) << RTC_MODE0_INTENSET_PER0_Pos)
911 #define RTC_MODE0_INTENSET_PER1_Pos 1
912 #define RTC_MODE0_INTENSET_PER1 (_U_(1) << RTC_MODE0_INTENSET_PER1_Pos)
913 #define RTC_MODE0_INTENSET_PER2_Pos 2
914 #define RTC_MODE0_INTENSET_PER2 (_U_(1) << RTC_MODE0_INTENSET_PER2_Pos)
915 #define RTC_MODE0_INTENSET_PER3_Pos 3
916 #define RTC_MODE0_INTENSET_PER3 (_U_(1) << RTC_MODE0_INTENSET_PER3_Pos)
917 #define RTC_MODE0_INTENSET_PER4_Pos 4
918 #define RTC_MODE0_INTENSET_PER4 (_U_(1) << RTC_MODE0_INTENSET_PER4_Pos)
919 #define RTC_MODE0_INTENSET_PER5_Pos 5
920 #define RTC_MODE0_INTENSET_PER5 (_U_(1) << RTC_MODE0_INTENSET_PER5_Pos)
921 #define RTC_MODE0_INTENSET_PER6_Pos 6
922 #define RTC_MODE0_INTENSET_PER6 (_U_(1) << RTC_MODE0_INTENSET_PER6_Pos)
923 #define RTC_MODE0_INTENSET_PER7_Pos 7
924 #define RTC_MODE0_INTENSET_PER7 (_U_(1) << RTC_MODE0_INTENSET_PER7_Pos)
925 #define RTC_MODE0_INTENSET_PER_Pos 0
926 #define RTC_MODE0_INTENSET_PER_Msk (_U_(0xFF) << RTC_MODE0_INTENSET_PER_Pos)
927 #define RTC_MODE0_INTENSET_PER(value) (RTC_MODE0_INTENSET_PER_Msk & ((value) << RTC_MODE0_INTENSET_PER_Pos))
928 #define RTC_MODE0_INTENSET_CMP0_Pos 8
929 #define RTC_MODE0_INTENSET_CMP0 (_U_(1) << RTC_MODE0_INTENSET_CMP0_Pos)
930 #define RTC_MODE0_INTENSET_CMP1_Pos 9
931 #define RTC_MODE0_INTENSET_CMP1 (_U_(1) << RTC_MODE0_INTENSET_CMP1_Pos)
932 #define RTC_MODE0_INTENSET_CMP_Pos 8
933 #define RTC_MODE0_INTENSET_CMP_Msk (_U_(0x3) << RTC_MODE0_INTENSET_CMP_Pos)
934 #define RTC_MODE0_INTENSET_CMP(value) (RTC_MODE0_INTENSET_CMP_Msk & ((value) << RTC_MODE0_INTENSET_CMP_Pos))
935 #define RTC_MODE0_INTENSET_TAMPER_Pos 14
936 #define RTC_MODE0_INTENSET_TAMPER (_U_(0x1) << RTC_MODE0_INTENSET_TAMPER_Pos)
937 #define RTC_MODE0_INTENSET_OVF_Pos 15
938 #define RTC_MODE0_INTENSET_OVF (_U_(0x1) << RTC_MODE0_INTENSET_OVF_Pos)
939 #define RTC_MODE0_INTENSET_MASK _U_(0xC3FF)
941 /* -------- RTC_MODE1_INTENSET : (RTC Offset: 0x0A) (R/W 16) MODE1 MODE1 Interrupt Enable Set -------- */
942 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
943 typedef union {
944  struct {
945  uint16_t PER0:1;
946  uint16_t PER1:1;
947  uint16_t PER2:1;
948  uint16_t PER3:1;
949  uint16_t PER4:1;
950  uint16_t PER5:1;
951  uint16_t PER6:1;
952  uint16_t PER7:1;
953  uint16_t CMP0:1;
954  uint16_t CMP1:1;
955  uint16_t CMP2:1;
956  uint16_t CMP3:1;
957  uint16_t :2;
958  uint16_t TAMPER:1;
959  uint16_t OVF:1;
960  } bit;
961  struct {
962  uint16_t PER:8;
963  uint16_t CMP:4;
964  uint16_t :4;
965  } vec;
966  uint16_t reg;
968 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
969 
970 #define RTC_MODE1_INTENSET_OFFSET 0x0A
971 #define RTC_MODE1_INTENSET_RESETVALUE _U_(0x0000)
973 #define RTC_MODE1_INTENSET_PER0_Pos 0
974 #define RTC_MODE1_INTENSET_PER0 (_U_(1) << RTC_MODE1_INTENSET_PER0_Pos)
975 #define RTC_MODE1_INTENSET_PER1_Pos 1
976 #define RTC_MODE1_INTENSET_PER1 (_U_(1) << RTC_MODE1_INTENSET_PER1_Pos)
977 #define RTC_MODE1_INTENSET_PER2_Pos 2
978 #define RTC_MODE1_INTENSET_PER2 (_U_(1) << RTC_MODE1_INTENSET_PER2_Pos)
979 #define RTC_MODE1_INTENSET_PER3_Pos 3
980 #define RTC_MODE1_INTENSET_PER3 (_U_(1) << RTC_MODE1_INTENSET_PER3_Pos)
981 #define RTC_MODE1_INTENSET_PER4_Pos 4
982 #define RTC_MODE1_INTENSET_PER4 (_U_(1) << RTC_MODE1_INTENSET_PER4_Pos)
983 #define RTC_MODE1_INTENSET_PER5_Pos 5
984 #define RTC_MODE1_INTENSET_PER5 (_U_(1) << RTC_MODE1_INTENSET_PER5_Pos)
985 #define RTC_MODE1_INTENSET_PER6_Pos 6
986 #define RTC_MODE1_INTENSET_PER6 (_U_(1) << RTC_MODE1_INTENSET_PER6_Pos)
987 #define RTC_MODE1_INTENSET_PER7_Pos 7
988 #define RTC_MODE1_INTENSET_PER7 (_U_(1) << RTC_MODE1_INTENSET_PER7_Pos)
989 #define RTC_MODE1_INTENSET_PER_Pos 0
990 #define RTC_MODE1_INTENSET_PER_Msk (_U_(0xFF) << RTC_MODE1_INTENSET_PER_Pos)
991 #define RTC_MODE1_INTENSET_PER(value) (RTC_MODE1_INTENSET_PER_Msk & ((value) << RTC_MODE1_INTENSET_PER_Pos))
992 #define RTC_MODE1_INTENSET_CMP0_Pos 8
993 #define RTC_MODE1_INTENSET_CMP0 (_U_(1) << RTC_MODE1_INTENSET_CMP0_Pos)
994 #define RTC_MODE1_INTENSET_CMP1_Pos 9
995 #define RTC_MODE1_INTENSET_CMP1 (_U_(1) << RTC_MODE1_INTENSET_CMP1_Pos)
996 #define RTC_MODE1_INTENSET_CMP2_Pos 10
997 #define RTC_MODE1_INTENSET_CMP2 (_U_(1) << RTC_MODE1_INTENSET_CMP2_Pos)
998 #define RTC_MODE1_INTENSET_CMP3_Pos 11
999 #define RTC_MODE1_INTENSET_CMP3 (_U_(1) << RTC_MODE1_INTENSET_CMP3_Pos)
1000 #define RTC_MODE1_INTENSET_CMP_Pos 8
1001 #define RTC_MODE1_INTENSET_CMP_Msk (_U_(0xF) << RTC_MODE1_INTENSET_CMP_Pos)
1002 #define RTC_MODE1_INTENSET_CMP(value) (RTC_MODE1_INTENSET_CMP_Msk & ((value) << RTC_MODE1_INTENSET_CMP_Pos))
1003 #define RTC_MODE1_INTENSET_TAMPER_Pos 14
1004 #define RTC_MODE1_INTENSET_TAMPER (_U_(0x1) << RTC_MODE1_INTENSET_TAMPER_Pos)
1005 #define RTC_MODE1_INTENSET_OVF_Pos 15
1006 #define RTC_MODE1_INTENSET_OVF (_U_(0x1) << RTC_MODE1_INTENSET_OVF_Pos)
1007 #define RTC_MODE1_INTENSET_MASK _U_(0xCFFF)
1009 /* -------- RTC_MODE2_INTENSET : (RTC Offset: 0x0A) (R/W 16) MODE2 MODE2 Interrupt Enable Set -------- */
1010 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1011 typedef union {
1012  struct {
1013  uint16_t PER0:1;
1014  uint16_t PER1:1;
1015  uint16_t PER2:1;
1016  uint16_t PER3:1;
1017  uint16_t PER4:1;
1018  uint16_t PER5:1;
1019  uint16_t PER6:1;
1020  uint16_t PER7:1;
1021  uint16_t ALARM0:1;
1022  uint16_t ALARM1:1;
1023  uint16_t :4;
1024  uint16_t TAMPER:1;
1025  uint16_t OVF:1;
1026  } bit;
1027  struct {
1028  uint16_t PER:8;
1029  uint16_t ALARM:2;
1030  uint16_t :6;
1031  } vec;
1032  uint16_t reg;
1034 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
1035 
1036 #define RTC_MODE2_INTENSET_OFFSET 0x0A
1037 #define RTC_MODE2_INTENSET_RESETVALUE _U_(0x0000)
1039 #define RTC_MODE2_INTENSET_PER0_Pos 0
1040 #define RTC_MODE2_INTENSET_PER0 (_U_(1) << RTC_MODE2_INTENSET_PER0_Pos)
1041 #define RTC_MODE2_INTENSET_PER1_Pos 1
1042 #define RTC_MODE2_INTENSET_PER1 (_U_(1) << RTC_MODE2_INTENSET_PER1_Pos)
1043 #define RTC_MODE2_INTENSET_PER2_Pos 2
1044 #define RTC_MODE2_INTENSET_PER2 (_U_(1) << RTC_MODE2_INTENSET_PER2_Pos)
1045 #define RTC_MODE2_INTENSET_PER3_Pos 3
1046 #define RTC_MODE2_INTENSET_PER3 (_U_(1) << RTC_MODE2_INTENSET_PER3_Pos)
1047 #define RTC_MODE2_INTENSET_PER4_Pos 4
1048 #define RTC_MODE2_INTENSET_PER4 (_U_(1) << RTC_MODE2_INTENSET_PER4_Pos)
1049 #define RTC_MODE2_INTENSET_PER5_Pos 5
1050 #define RTC_MODE2_INTENSET_PER5 (_U_(1) << RTC_MODE2_INTENSET_PER5_Pos)
1051 #define RTC_MODE2_INTENSET_PER6_Pos 6
1052 #define RTC_MODE2_INTENSET_PER6 (_U_(1) << RTC_MODE2_INTENSET_PER6_Pos)
1053 #define RTC_MODE2_INTENSET_PER7_Pos 7
1054 #define RTC_MODE2_INTENSET_PER7 (_U_(1) << RTC_MODE2_INTENSET_PER7_Pos)
1055 #define RTC_MODE2_INTENSET_PER_Pos 0
1056 #define RTC_MODE2_INTENSET_PER_Msk (_U_(0xFF) << RTC_MODE2_INTENSET_PER_Pos)
1057 #define RTC_MODE2_INTENSET_PER(value) (RTC_MODE2_INTENSET_PER_Msk & ((value) << RTC_MODE2_INTENSET_PER_Pos))
1058 #define RTC_MODE2_INTENSET_ALARM0_Pos 8
1059 #define RTC_MODE2_INTENSET_ALARM0 (_U_(1) << RTC_MODE2_INTENSET_ALARM0_Pos)
1060 #define RTC_MODE2_INTENSET_ALARM1_Pos 9
1061 #define RTC_MODE2_INTENSET_ALARM1 (_U_(1) << RTC_MODE2_INTENSET_ALARM1_Pos)
1062 #define RTC_MODE2_INTENSET_ALARM_Pos 8
1063 #define RTC_MODE2_INTENSET_ALARM_Msk (_U_(0x3) << RTC_MODE2_INTENSET_ALARM_Pos)
1064 #define RTC_MODE2_INTENSET_ALARM(value) (RTC_MODE2_INTENSET_ALARM_Msk & ((value) << RTC_MODE2_INTENSET_ALARM_Pos))
1065 #define RTC_MODE2_INTENSET_TAMPER_Pos 14
1066 #define RTC_MODE2_INTENSET_TAMPER (_U_(0x1) << RTC_MODE2_INTENSET_TAMPER_Pos)
1067 #define RTC_MODE2_INTENSET_OVF_Pos 15
1068 #define RTC_MODE2_INTENSET_OVF (_U_(0x1) << RTC_MODE2_INTENSET_OVF_Pos)
1069 #define RTC_MODE2_INTENSET_MASK _U_(0xC3FF)
1071 /* -------- RTC_MODE0_INTFLAG : (RTC Offset: 0x0C) (R/W 16) MODE0 MODE0 Interrupt Flag Status and Clear -------- */
1072 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1073 typedef union { // __I to avoid read-modify-write on write-to-clear register
1074  struct {
1075  __I uint16_t PER0:1;
1076  __I uint16_t PER1:1;
1077  __I uint16_t PER2:1;
1078  __I uint16_t PER3:1;
1079  __I uint16_t PER4:1;
1080  __I uint16_t PER5:1;
1081  __I uint16_t PER6:1;
1082  __I uint16_t PER7:1;
1083  __I uint16_t CMP0:1;
1084  __I uint16_t CMP1:1;
1085  __I uint16_t :4;
1086  __I uint16_t TAMPER:1;
1087  __I uint16_t OVF:1;
1088  } bit;
1089  struct {
1090  __I uint16_t PER:8;
1091  __I uint16_t CMP:2;
1092  __I uint16_t :6;
1093  } vec;
1094  uint16_t reg;
1096 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
1097 
1098 #define RTC_MODE0_INTFLAG_OFFSET 0x0C
1099 #define RTC_MODE0_INTFLAG_RESETVALUE _U_(0x0000)
1101 #define RTC_MODE0_INTFLAG_PER0_Pos 0
1102 #define RTC_MODE0_INTFLAG_PER0 (_U_(1) << RTC_MODE0_INTFLAG_PER0_Pos)
1103 #define RTC_MODE0_INTFLAG_PER1_Pos 1
1104 #define RTC_MODE0_INTFLAG_PER1 (_U_(1) << RTC_MODE0_INTFLAG_PER1_Pos)
1105 #define RTC_MODE0_INTFLAG_PER2_Pos 2
1106 #define RTC_MODE0_INTFLAG_PER2 (_U_(1) << RTC_MODE0_INTFLAG_PER2_Pos)
1107 #define RTC_MODE0_INTFLAG_PER3_Pos 3
1108 #define RTC_MODE0_INTFLAG_PER3 (_U_(1) << RTC_MODE0_INTFLAG_PER3_Pos)
1109 #define RTC_MODE0_INTFLAG_PER4_Pos 4
1110 #define RTC_MODE0_INTFLAG_PER4 (_U_(1) << RTC_MODE0_INTFLAG_PER4_Pos)
1111 #define RTC_MODE0_INTFLAG_PER5_Pos 5
1112 #define RTC_MODE0_INTFLAG_PER5 (_U_(1) << RTC_MODE0_INTFLAG_PER5_Pos)
1113 #define RTC_MODE0_INTFLAG_PER6_Pos 6
1114 #define RTC_MODE0_INTFLAG_PER6 (_U_(1) << RTC_MODE0_INTFLAG_PER6_Pos)
1115 #define RTC_MODE0_INTFLAG_PER7_Pos 7
1116 #define RTC_MODE0_INTFLAG_PER7 (_U_(1) << RTC_MODE0_INTFLAG_PER7_Pos)
1117 #define RTC_MODE0_INTFLAG_PER_Pos 0
1118 #define RTC_MODE0_INTFLAG_PER_Msk (_U_(0xFF) << RTC_MODE0_INTFLAG_PER_Pos)
1119 #define RTC_MODE0_INTFLAG_PER(value) (RTC_MODE0_INTFLAG_PER_Msk & ((value) << RTC_MODE0_INTFLAG_PER_Pos))
1120 #define RTC_MODE0_INTFLAG_CMP0_Pos 8
1121 #define RTC_MODE0_INTFLAG_CMP0 (_U_(1) << RTC_MODE0_INTFLAG_CMP0_Pos)
1122 #define RTC_MODE0_INTFLAG_CMP1_Pos 9
1123 #define RTC_MODE0_INTFLAG_CMP1 (_U_(1) << RTC_MODE0_INTFLAG_CMP1_Pos)
1124 #define RTC_MODE0_INTFLAG_CMP_Pos 8
1125 #define RTC_MODE0_INTFLAG_CMP_Msk (_U_(0x3) << RTC_MODE0_INTFLAG_CMP_Pos)
1126 #define RTC_MODE0_INTFLAG_CMP(value) (RTC_MODE0_INTFLAG_CMP_Msk & ((value) << RTC_MODE0_INTFLAG_CMP_Pos))
1127 #define RTC_MODE0_INTFLAG_TAMPER_Pos 14
1128 #define RTC_MODE0_INTFLAG_TAMPER (_U_(0x1) << RTC_MODE0_INTFLAG_TAMPER_Pos)
1129 #define RTC_MODE0_INTFLAG_OVF_Pos 15
1130 #define RTC_MODE0_INTFLAG_OVF (_U_(0x1) << RTC_MODE0_INTFLAG_OVF_Pos)
1131 #define RTC_MODE0_INTFLAG_MASK _U_(0xC3FF)
1133 /* -------- RTC_MODE1_INTFLAG : (RTC Offset: 0x0C) (R/W 16) MODE1 MODE1 Interrupt Flag Status and Clear -------- */
1134 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1135 typedef union { // __I to avoid read-modify-write on write-to-clear register
1136  struct {
1137  __I uint16_t PER0:1;
1138  __I uint16_t PER1:1;
1139  __I uint16_t PER2:1;
1140  __I uint16_t PER3:1;
1141  __I uint16_t PER4:1;
1142  __I uint16_t PER5:1;
1143  __I uint16_t PER6:1;
1144  __I uint16_t PER7:1;
1145  __I uint16_t CMP0:1;
1146  __I uint16_t CMP1:1;
1147  __I uint16_t CMP2:1;
1148  __I uint16_t CMP3:1;
1149  __I uint16_t :2;
1150  __I uint16_t TAMPER:1;
1151  __I uint16_t OVF:1;
1152  } bit;
1153  struct {
1154  __I uint16_t PER:8;
1155  __I uint16_t CMP:4;
1156  __I uint16_t :4;
1157  } vec;
1158  uint16_t reg;
1160 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
1161 
1162 #define RTC_MODE1_INTFLAG_OFFSET 0x0C
1163 #define RTC_MODE1_INTFLAG_RESETVALUE _U_(0x0000)
1165 #define RTC_MODE1_INTFLAG_PER0_Pos 0
1166 #define RTC_MODE1_INTFLAG_PER0 (_U_(1) << RTC_MODE1_INTFLAG_PER0_Pos)
1167 #define RTC_MODE1_INTFLAG_PER1_Pos 1
1168 #define RTC_MODE1_INTFLAG_PER1 (_U_(1) << RTC_MODE1_INTFLAG_PER1_Pos)
1169 #define RTC_MODE1_INTFLAG_PER2_Pos 2
1170 #define RTC_MODE1_INTFLAG_PER2 (_U_(1) << RTC_MODE1_INTFLAG_PER2_Pos)
1171 #define RTC_MODE1_INTFLAG_PER3_Pos 3
1172 #define RTC_MODE1_INTFLAG_PER3 (_U_(1) << RTC_MODE1_INTFLAG_PER3_Pos)
1173 #define RTC_MODE1_INTFLAG_PER4_Pos 4
1174 #define RTC_MODE1_INTFLAG_PER4 (_U_(1) << RTC_MODE1_INTFLAG_PER4_Pos)
1175 #define RTC_MODE1_INTFLAG_PER5_Pos 5
1176 #define RTC_MODE1_INTFLAG_PER5 (_U_(1) << RTC_MODE1_INTFLAG_PER5_Pos)
1177 #define RTC_MODE1_INTFLAG_PER6_Pos 6
1178 #define RTC_MODE1_INTFLAG_PER6 (_U_(1) << RTC_MODE1_INTFLAG_PER6_Pos)
1179 #define RTC_MODE1_INTFLAG_PER7_Pos 7
1180 #define RTC_MODE1_INTFLAG_PER7 (_U_(1) << RTC_MODE1_INTFLAG_PER7_Pos)
1181 #define RTC_MODE1_INTFLAG_PER_Pos 0
1182 #define RTC_MODE1_INTFLAG_PER_Msk (_U_(0xFF) << RTC_MODE1_INTFLAG_PER_Pos)
1183 #define RTC_MODE1_INTFLAG_PER(value) (RTC_MODE1_INTFLAG_PER_Msk & ((value) << RTC_MODE1_INTFLAG_PER_Pos))
1184 #define RTC_MODE1_INTFLAG_CMP0_Pos 8
1185 #define RTC_MODE1_INTFLAG_CMP0 (_U_(1) << RTC_MODE1_INTFLAG_CMP0_Pos)
1186 #define RTC_MODE1_INTFLAG_CMP1_Pos 9
1187 #define RTC_MODE1_INTFLAG_CMP1 (_U_(1) << RTC_MODE1_INTFLAG_CMP1_Pos)
1188 #define RTC_MODE1_INTFLAG_CMP2_Pos 10
1189 #define RTC_MODE1_INTFLAG_CMP2 (_U_(1) << RTC_MODE1_INTFLAG_CMP2_Pos)
1190 #define RTC_MODE1_INTFLAG_CMP3_Pos 11
1191 #define RTC_MODE1_INTFLAG_CMP3 (_U_(1) << RTC_MODE1_INTFLAG_CMP3_Pos)
1192 #define RTC_MODE1_INTFLAG_CMP_Pos 8
1193 #define RTC_MODE1_INTFLAG_CMP_Msk (_U_(0xF) << RTC_MODE1_INTFLAG_CMP_Pos)
1194 #define RTC_MODE1_INTFLAG_CMP(value) (RTC_MODE1_INTFLAG_CMP_Msk & ((value) << RTC_MODE1_INTFLAG_CMP_Pos))
1195 #define RTC_MODE1_INTFLAG_TAMPER_Pos 14
1196 #define RTC_MODE1_INTFLAG_TAMPER (_U_(0x1) << RTC_MODE1_INTFLAG_TAMPER_Pos)
1197 #define RTC_MODE1_INTFLAG_OVF_Pos 15
1198 #define RTC_MODE1_INTFLAG_OVF (_U_(0x1) << RTC_MODE1_INTFLAG_OVF_Pos)
1199 #define RTC_MODE1_INTFLAG_MASK _U_(0xCFFF)
1201 /* -------- RTC_MODE2_INTFLAG : (RTC Offset: 0x0C) (R/W 16) MODE2 MODE2 Interrupt Flag Status and Clear -------- */
1202 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1203 typedef union { // __I to avoid read-modify-write on write-to-clear register
1204  struct {
1205  __I uint16_t PER0:1;
1206  __I uint16_t PER1:1;
1207  __I uint16_t PER2:1;
1208  __I uint16_t PER3:1;
1209  __I uint16_t PER4:1;
1210  __I uint16_t PER5:1;
1211  __I uint16_t PER6:1;
1212  __I uint16_t PER7:1;
1213  __I uint16_t ALARM0:1;
1214  __I uint16_t ALARM1:1;
1215  __I uint16_t :4;
1216  __I uint16_t TAMPER:1;
1217  __I uint16_t OVF:1;
1218  } bit;
1219  struct {
1220  __I uint16_t PER:8;
1221  __I uint16_t ALARM:2;
1222  __I uint16_t :6;
1223  } vec;
1224  uint16_t reg;
1226 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
1227 
1228 #define RTC_MODE2_INTFLAG_OFFSET 0x0C
1229 #define RTC_MODE2_INTFLAG_RESETVALUE _U_(0x0000)
1231 #define RTC_MODE2_INTFLAG_PER0_Pos 0
1232 #define RTC_MODE2_INTFLAG_PER0 (_U_(1) << RTC_MODE2_INTFLAG_PER0_Pos)
1233 #define RTC_MODE2_INTFLAG_PER1_Pos 1
1234 #define RTC_MODE2_INTFLAG_PER1 (_U_(1) << RTC_MODE2_INTFLAG_PER1_Pos)
1235 #define RTC_MODE2_INTFLAG_PER2_Pos 2
1236 #define RTC_MODE2_INTFLAG_PER2 (_U_(1) << RTC_MODE2_INTFLAG_PER2_Pos)
1237 #define RTC_MODE2_INTFLAG_PER3_Pos 3
1238 #define RTC_MODE2_INTFLAG_PER3 (_U_(1) << RTC_MODE2_INTFLAG_PER3_Pos)
1239 #define RTC_MODE2_INTFLAG_PER4_Pos 4
1240 #define RTC_MODE2_INTFLAG_PER4 (_U_(1) << RTC_MODE2_INTFLAG_PER4_Pos)
1241 #define RTC_MODE2_INTFLAG_PER5_Pos 5
1242 #define RTC_MODE2_INTFLAG_PER5 (_U_(1) << RTC_MODE2_INTFLAG_PER5_Pos)
1243 #define RTC_MODE2_INTFLAG_PER6_Pos 6
1244 #define RTC_MODE2_INTFLAG_PER6 (_U_(1) << RTC_MODE2_INTFLAG_PER6_Pos)
1245 #define RTC_MODE2_INTFLAG_PER7_Pos 7
1246 #define RTC_MODE2_INTFLAG_PER7 (_U_(1) << RTC_MODE2_INTFLAG_PER7_Pos)
1247 #define RTC_MODE2_INTFLAG_PER_Pos 0
1248 #define RTC_MODE2_INTFLAG_PER_Msk (_U_(0xFF) << RTC_MODE2_INTFLAG_PER_Pos)
1249 #define RTC_MODE2_INTFLAG_PER(value) (RTC_MODE2_INTFLAG_PER_Msk & ((value) << RTC_MODE2_INTFLAG_PER_Pos))
1250 #define RTC_MODE2_INTFLAG_ALARM0_Pos 8
1251 #define RTC_MODE2_INTFLAG_ALARM0 (_U_(1) << RTC_MODE2_INTFLAG_ALARM0_Pos)
1252 #define RTC_MODE2_INTFLAG_ALARM1_Pos 9
1253 #define RTC_MODE2_INTFLAG_ALARM1 (_U_(1) << RTC_MODE2_INTFLAG_ALARM1_Pos)
1254 #define RTC_MODE2_INTFLAG_ALARM_Pos 8
1255 #define RTC_MODE2_INTFLAG_ALARM_Msk (_U_(0x3) << RTC_MODE2_INTFLAG_ALARM_Pos)
1256 #define RTC_MODE2_INTFLAG_ALARM(value) (RTC_MODE2_INTFLAG_ALARM_Msk & ((value) << RTC_MODE2_INTFLAG_ALARM_Pos))
1257 #define RTC_MODE2_INTFLAG_TAMPER_Pos 14
1258 #define RTC_MODE2_INTFLAG_TAMPER (_U_(0x1) << RTC_MODE2_INTFLAG_TAMPER_Pos)
1259 #define RTC_MODE2_INTFLAG_OVF_Pos 15
1260 #define RTC_MODE2_INTFLAG_OVF (_U_(0x1) << RTC_MODE2_INTFLAG_OVF_Pos)
1261 #define RTC_MODE2_INTFLAG_MASK _U_(0xC3FF)
1263 /* -------- RTC_DBGCTRL : (RTC Offset: 0x0E) (R/W 8) Debug Control -------- */
1264 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1265 typedef union {
1266  struct {
1267  uint8_t DBGRUN:1;
1268  uint8_t :7;
1269  } bit;
1270  uint8_t reg;
1272 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
1273 
1274 #define RTC_DBGCTRL_OFFSET 0x0E
1275 #define RTC_DBGCTRL_RESETVALUE _U_(0x00)
1277 #define RTC_DBGCTRL_DBGRUN_Pos 0
1278 #define RTC_DBGCTRL_DBGRUN (_U_(0x1) << RTC_DBGCTRL_DBGRUN_Pos)
1279 #define RTC_DBGCTRL_MASK _U_(0x01)
1281 /* -------- RTC_MODE0_SYNCBUSY : (RTC Offset: 0x10) (R/ 32) MODE0 MODE0 Synchronization Busy Status -------- */
1282 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1283 typedef union {
1284  struct {
1285  uint32_t SWRST:1;
1286  uint32_t ENABLE:1;
1287  uint32_t FREQCORR:1;
1288  uint32_t COUNT:1;
1289  uint32_t :1;
1290  uint32_t COMP0:1;
1291  uint32_t COMP1:1;
1292  uint32_t :8;
1293  uint32_t COUNTSYNC:1;
1294  uint32_t GP0:1;
1295  uint32_t GP1:1;
1296  uint32_t GP2:1;
1297  uint32_t GP3:1;
1298  uint32_t :12;
1299  } bit;
1300  struct {
1301  uint32_t :5;
1302  uint32_t COMP:2;
1303  uint32_t :9;
1304  uint32_t GP:4;
1305  uint32_t :12;
1306  } vec;
1307  uint32_t reg;
1309 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
1310 
1311 #define RTC_MODE0_SYNCBUSY_OFFSET 0x10
1312 #define RTC_MODE0_SYNCBUSY_RESETVALUE _U_(0x00000000)
1314 #define RTC_MODE0_SYNCBUSY_SWRST_Pos 0
1315 #define RTC_MODE0_SYNCBUSY_SWRST (_U_(0x1) << RTC_MODE0_SYNCBUSY_SWRST_Pos)
1316 #define RTC_MODE0_SYNCBUSY_ENABLE_Pos 1
1317 #define RTC_MODE0_SYNCBUSY_ENABLE (_U_(0x1) << RTC_MODE0_SYNCBUSY_ENABLE_Pos)
1318 #define RTC_MODE0_SYNCBUSY_FREQCORR_Pos 2
1319 #define RTC_MODE0_SYNCBUSY_FREQCORR (_U_(0x1) << RTC_MODE0_SYNCBUSY_FREQCORR_Pos)
1320 #define RTC_MODE0_SYNCBUSY_COUNT_Pos 3
1321 #define RTC_MODE0_SYNCBUSY_COUNT (_U_(0x1) << RTC_MODE0_SYNCBUSY_COUNT_Pos)
1322 #define RTC_MODE0_SYNCBUSY_COMP0_Pos 5
1323 #define RTC_MODE0_SYNCBUSY_COMP0 (_U_(1) << RTC_MODE0_SYNCBUSY_COMP0_Pos)
1324 #define RTC_MODE0_SYNCBUSY_COMP1_Pos 6
1325 #define RTC_MODE0_SYNCBUSY_COMP1 (_U_(1) << RTC_MODE0_SYNCBUSY_COMP1_Pos)
1326 #define RTC_MODE0_SYNCBUSY_COMP_Pos 5
1327 #define RTC_MODE0_SYNCBUSY_COMP_Msk (_U_(0x3) << RTC_MODE0_SYNCBUSY_COMP_Pos)
1328 #define RTC_MODE0_SYNCBUSY_COMP(value) (RTC_MODE0_SYNCBUSY_COMP_Msk & ((value) << RTC_MODE0_SYNCBUSY_COMP_Pos))
1329 #define RTC_MODE0_SYNCBUSY_COUNTSYNC_Pos 15
1330 #define RTC_MODE0_SYNCBUSY_COUNTSYNC (_U_(0x1) << RTC_MODE0_SYNCBUSY_COUNTSYNC_Pos)
1331 #define RTC_MODE0_SYNCBUSY_GP0_Pos 16
1332 #define RTC_MODE0_SYNCBUSY_GP0 (_U_(1) << RTC_MODE0_SYNCBUSY_GP0_Pos)
1333 #define RTC_MODE0_SYNCBUSY_GP1_Pos 17
1334 #define RTC_MODE0_SYNCBUSY_GP1 (_U_(1) << RTC_MODE0_SYNCBUSY_GP1_Pos)
1335 #define RTC_MODE0_SYNCBUSY_GP2_Pos 18
1336 #define RTC_MODE0_SYNCBUSY_GP2 (_U_(1) << RTC_MODE0_SYNCBUSY_GP2_Pos)
1337 #define RTC_MODE0_SYNCBUSY_GP3_Pos 19
1338 #define RTC_MODE0_SYNCBUSY_GP3 (_U_(1) << RTC_MODE0_SYNCBUSY_GP3_Pos)
1339 #define RTC_MODE0_SYNCBUSY_GP_Pos 16
1340 #define RTC_MODE0_SYNCBUSY_GP_Msk (_U_(0xF) << RTC_MODE0_SYNCBUSY_GP_Pos)
1341 #define RTC_MODE0_SYNCBUSY_GP(value) (RTC_MODE0_SYNCBUSY_GP_Msk & ((value) << RTC_MODE0_SYNCBUSY_GP_Pos))
1342 #define RTC_MODE0_SYNCBUSY_MASK _U_(0x000F806F)
1344 /* -------- RTC_MODE1_SYNCBUSY : (RTC Offset: 0x10) (R/ 32) MODE1 MODE1 Synchronization Busy Status -------- */
1345 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1346 typedef union {
1347  struct {
1348  uint32_t SWRST:1;
1349  uint32_t ENABLE:1;
1350  uint32_t FREQCORR:1;
1351  uint32_t COUNT:1;
1352  uint32_t PER:1;
1353  uint32_t COMP0:1;
1354  uint32_t COMP1:1;
1355  uint32_t COMP2:1;
1356  uint32_t COMP3:1;
1357  uint32_t :6;
1358  uint32_t COUNTSYNC:1;
1359  uint32_t GP0:1;
1360  uint32_t GP1:1;
1361  uint32_t GP2:1;
1362  uint32_t GP3:1;
1363  uint32_t :12;
1364  } bit;
1365  struct {
1366  uint32_t :5;
1367  uint32_t COMP:4;
1368  uint32_t :7;
1369  uint32_t GP:4;
1370  uint32_t :12;
1371  } vec;
1372  uint32_t reg;
1374 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
1375 
1376 #define RTC_MODE1_SYNCBUSY_OFFSET 0x10
1377 #define RTC_MODE1_SYNCBUSY_RESETVALUE _U_(0x00000000)
1379 #define RTC_MODE1_SYNCBUSY_SWRST_Pos 0
1380 #define RTC_MODE1_SYNCBUSY_SWRST (_U_(0x1) << RTC_MODE1_SYNCBUSY_SWRST_Pos)
1381 #define RTC_MODE1_SYNCBUSY_ENABLE_Pos 1
1382 #define RTC_MODE1_SYNCBUSY_ENABLE (_U_(0x1) << RTC_MODE1_SYNCBUSY_ENABLE_Pos)
1383 #define RTC_MODE1_SYNCBUSY_FREQCORR_Pos 2
1384 #define RTC_MODE1_SYNCBUSY_FREQCORR (_U_(0x1) << RTC_MODE1_SYNCBUSY_FREQCORR_Pos)
1385 #define RTC_MODE1_SYNCBUSY_COUNT_Pos 3
1386 #define RTC_MODE1_SYNCBUSY_COUNT (_U_(0x1) << RTC_MODE1_SYNCBUSY_COUNT_Pos)
1387 #define RTC_MODE1_SYNCBUSY_PER_Pos 4
1388 #define RTC_MODE1_SYNCBUSY_PER (_U_(0x1) << RTC_MODE1_SYNCBUSY_PER_Pos)
1389 #define RTC_MODE1_SYNCBUSY_COMP0_Pos 5
1390 #define RTC_MODE1_SYNCBUSY_COMP0 (_U_(1) << RTC_MODE1_SYNCBUSY_COMP0_Pos)
1391 #define RTC_MODE1_SYNCBUSY_COMP1_Pos 6
1392 #define RTC_MODE1_SYNCBUSY_COMP1 (_U_(1) << RTC_MODE1_SYNCBUSY_COMP1_Pos)
1393 #define RTC_MODE1_SYNCBUSY_COMP2_Pos 7
1394 #define RTC_MODE1_SYNCBUSY_COMP2 (_U_(1) << RTC_MODE1_SYNCBUSY_COMP2_Pos)
1395 #define RTC_MODE1_SYNCBUSY_COMP3_Pos 8
1396 #define RTC_MODE1_SYNCBUSY_COMP3 (_U_(1) << RTC_MODE1_SYNCBUSY_COMP3_Pos)
1397 #define RTC_MODE1_SYNCBUSY_COMP_Pos 5
1398 #define RTC_MODE1_SYNCBUSY_COMP_Msk (_U_(0xF) << RTC_MODE1_SYNCBUSY_COMP_Pos)
1399 #define RTC_MODE1_SYNCBUSY_COMP(value) (RTC_MODE1_SYNCBUSY_COMP_Msk & ((value) << RTC_MODE1_SYNCBUSY_COMP_Pos))
1400 #define RTC_MODE1_SYNCBUSY_COUNTSYNC_Pos 15
1401 #define RTC_MODE1_SYNCBUSY_COUNTSYNC (_U_(0x1) << RTC_MODE1_SYNCBUSY_COUNTSYNC_Pos)
1402 #define RTC_MODE1_SYNCBUSY_GP0_Pos 16
1403 #define RTC_MODE1_SYNCBUSY_GP0 (_U_(1) << RTC_MODE1_SYNCBUSY_GP0_Pos)
1404 #define RTC_MODE1_SYNCBUSY_GP1_Pos 17
1405 #define RTC_MODE1_SYNCBUSY_GP1 (_U_(1) << RTC_MODE1_SYNCBUSY_GP1_Pos)
1406 #define RTC_MODE1_SYNCBUSY_GP2_Pos 18
1407 #define RTC_MODE1_SYNCBUSY_GP2 (_U_(1) << RTC_MODE1_SYNCBUSY_GP2_Pos)
1408 #define RTC_MODE1_SYNCBUSY_GP3_Pos 19
1409 #define RTC_MODE1_SYNCBUSY_GP3 (_U_(1) << RTC_MODE1_SYNCBUSY_GP3_Pos)
1410 #define RTC_MODE1_SYNCBUSY_GP_Pos 16
1411 #define RTC_MODE1_SYNCBUSY_GP_Msk (_U_(0xF) << RTC_MODE1_SYNCBUSY_GP_Pos)
1412 #define RTC_MODE1_SYNCBUSY_GP(value) (RTC_MODE1_SYNCBUSY_GP_Msk & ((value) << RTC_MODE1_SYNCBUSY_GP_Pos))
1413 #define RTC_MODE1_SYNCBUSY_MASK _U_(0x000F81FF)
1415 /* -------- RTC_MODE2_SYNCBUSY : (RTC Offset: 0x10) (R/ 32) MODE2 MODE2 Synchronization Busy Status -------- */
1416 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1417 typedef union {
1418  struct {
1419  uint32_t SWRST:1;
1420  uint32_t ENABLE:1;
1421  uint32_t FREQCORR:1;
1422  uint32_t CLOCK:1;
1423  uint32_t :1;
1424  uint32_t ALARM0:1;
1425  uint32_t ALARM1:1;
1426  uint32_t :4;
1427  uint32_t MASK0:1;
1428  uint32_t MASK1:1;
1429  uint32_t :2;
1430  uint32_t CLOCKSYNC:1;
1431  uint32_t GP0:1;
1432  uint32_t GP1:1;
1433  uint32_t GP2:1;
1434  uint32_t GP3:1;
1435  uint32_t :12;
1436  } bit;
1437  struct {
1438  uint32_t :5;
1439  uint32_t ALARM:2;
1440  uint32_t :4;
1441  uint32_t MASK:2;
1442  uint32_t :3;
1443  uint32_t GP:4;
1444  uint32_t :12;
1445  } vec;
1446  uint32_t reg;
1448 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
1449 
1450 #define RTC_MODE2_SYNCBUSY_OFFSET 0x10
1451 #define RTC_MODE2_SYNCBUSY_RESETVALUE _U_(0x00000000)
1453 #define RTC_MODE2_SYNCBUSY_SWRST_Pos 0
1454 #define RTC_MODE2_SYNCBUSY_SWRST (_U_(0x1) << RTC_MODE2_SYNCBUSY_SWRST_Pos)
1455 #define RTC_MODE2_SYNCBUSY_ENABLE_Pos 1
1456 #define RTC_MODE2_SYNCBUSY_ENABLE (_U_(0x1) << RTC_MODE2_SYNCBUSY_ENABLE_Pos)
1457 #define RTC_MODE2_SYNCBUSY_FREQCORR_Pos 2
1458 #define RTC_MODE2_SYNCBUSY_FREQCORR (_U_(0x1) << RTC_MODE2_SYNCBUSY_FREQCORR_Pos)
1459 #define RTC_MODE2_SYNCBUSY_CLOCK_Pos 3
1460 #define RTC_MODE2_SYNCBUSY_CLOCK (_U_(0x1) << RTC_MODE2_SYNCBUSY_CLOCK_Pos)
1461 #define RTC_MODE2_SYNCBUSY_ALARM0_Pos 5
1462 #define RTC_MODE2_SYNCBUSY_ALARM0 (_U_(1) << RTC_MODE2_SYNCBUSY_ALARM0_Pos)
1463 #define RTC_MODE2_SYNCBUSY_ALARM1_Pos 6
1464 #define RTC_MODE2_SYNCBUSY_ALARM1 (_U_(1) << RTC_MODE2_SYNCBUSY_ALARM1_Pos)
1465 #define RTC_MODE2_SYNCBUSY_ALARM_Pos 5
1466 #define RTC_MODE2_SYNCBUSY_ALARM_Msk (_U_(0x3) << RTC_MODE2_SYNCBUSY_ALARM_Pos)
1467 #define RTC_MODE2_SYNCBUSY_ALARM(value) (RTC_MODE2_SYNCBUSY_ALARM_Msk & ((value) << RTC_MODE2_SYNCBUSY_ALARM_Pos))
1468 #define RTC_MODE2_SYNCBUSY_MASK0_Pos 11
1469 #define RTC_MODE2_SYNCBUSY_MASK0 (_U_(1) << RTC_MODE2_SYNCBUSY_MASK0_Pos)
1470 #define RTC_MODE2_SYNCBUSY_MASK1_Pos 12
1471 #define RTC_MODE2_SYNCBUSY_MASK1 (_U_(1) << RTC_MODE2_SYNCBUSY_MASK1_Pos)
1472 #define RTC_MODE2_SYNCBUSY_MASK_Pos 11
1473 #define RTC_MODE2_SYNCBUSY_MASK_Msk (_U_(0x3) << RTC_MODE2_SYNCBUSY_MASK_Pos)
1474 #define RTC_MODE2_SYNCBUSY_MASK(value) (RTC_MODE2_SYNCBUSY_MASK_Msk & ((value) << RTC_MODE2_SYNCBUSY_MASK_Pos))
1475 #define RTC_MODE2_SYNCBUSY_CLOCKSYNC_Pos 15
1476 #define RTC_MODE2_SYNCBUSY_CLOCKSYNC (_U_(0x1) << RTC_MODE2_SYNCBUSY_CLOCKSYNC_Pos)
1477 #define RTC_MODE2_SYNCBUSY_GP0_Pos 16
1478 #define RTC_MODE2_SYNCBUSY_GP0 (_U_(1) << RTC_MODE2_SYNCBUSY_GP0_Pos)
1479 #define RTC_MODE2_SYNCBUSY_GP1_Pos 17
1480 #define RTC_MODE2_SYNCBUSY_GP1 (_U_(1) << RTC_MODE2_SYNCBUSY_GP1_Pos)
1481 #define RTC_MODE2_SYNCBUSY_GP2_Pos 18
1482 #define RTC_MODE2_SYNCBUSY_GP2 (_U_(1) << RTC_MODE2_SYNCBUSY_GP2_Pos)
1483 #define RTC_MODE2_SYNCBUSY_GP3_Pos 19
1484 #define RTC_MODE2_SYNCBUSY_GP3 (_U_(1) << RTC_MODE2_SYNCBUSY_GP3_Pos)
1485 #define RTC_MODE2_SYNCBUSY_GP_Pos 16
1486 #define RTC_MODE2_SYNCBUSY_GP_Msk (_U_(0xF) << RTC_MODE2_SYNCBUSY_GP_Pos)
1487 #define RTC_MODE2_SYNCBUSY_GP(value) (RTC_MODE2_SYNCBUSY_GP_Msk & ((value) << RTC_MODE2_SYNCBUSY_GP_Pos))
1488 #define RTC_MODE2_SYNCBUSY_MASK_ _U_(0x000F986F)
1490 /* -------- RTC_FREQCORR : (RTC Offset: 0x14) (R/W 8) Frequency Correction -------- */
1491 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1492 typedef union {
1493  struct {
1494  uint8_t VALUE:7;
1495  uint8_t SIGN:1;
1496  } bit;
1497  uint8_t reg;
1499 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
1500 
1501 #define RTC_FREQCORR_OFFSET 0x14
1502 #define RTC_FREQCORR_RESETVALUE _U_(0x00)
1504 #define RTC_FREQCORR_VALUE_Pos 0
1505 #define RTC_FREQCORR_VALUE_Msk (_U_(0x7F) << RTC_FREQCORR_VALUE_Pos)
1506 #define RTC_FREQCORR_VALUE(value) (RTC_FREQCORR_VALUE_Msk & ((value) << RTC_FREQCORR_VALUE_Pos))
1507 #define RTC_FREQCORR_SIGN_Pos 7
1508 #define RTC_FREQCORR_SIGN (_U_(0x1) << RTC_FREQCORR_SIGN_Pos)
1509 #define RTC_FREQCORR_MASK _U_(0xFF)
1511 /* -------- RTC_MODE0_COUNT : (RTC Offset: 0x18) (R/W 32) MODE0 MODE0 Counter Value -------- */
1512 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1513 typedef union {
1514  struct {
1515  uint32_t COUNT:32;
1516  } bit;
1517  uint32_t reg;
1519 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
1520 
1521 #define RTC_MODE0_COUNT_OFFSET 0x18
1522 #define RTC_MODE0_COUNT_RESETVALUE _U_(0x00000000)
1524 #define RTC_MODE0_COUNT_COUNT_Pos 0
1525 #define RTC_MODE0_COUNT_COUNT_Msk (_U_(0xFFFFFFFF) << RTC_MODE0_COUNT_COUNT_Pos)
1526 #define RTC_MODE0_COUNT_COUNT(value) (RTC_MODE0_COUNT_COUNT_Msk & ((value) << RTC_MODE0_COUNT_COUNT_Pos))
1527 #define RTC_MODE0_COUNT_MASK _U_(0xFFFFFFFF)
1529 /* -------- RTC_MODE1_COUNT : (RTC Offset: 0x18) (R/W 16) MODE1 MODE1 Counter Value -------- */
1530 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1531 typedef union {
1532  struct {
1533  uint16_t COUNT:16;
1534  } bit;
1535  uint16_t reg;
1537 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
1538 
1539 #define RTC_MODE1_COUNT_OFFSET 0x18
1540 #define RTC_MODE1_COUNT_RESETVALUE _U_(0x0000)
1542 #define RTC_MODE1_COUNT_COUNT_Pos 0
1543 #define RTC_MODE1_COUNT_COUNT_Msk (_U_(0xFFFF) << RTC_MODE1_COUNT_COUNT_Pos)
1544 #define RTC_MODE1_COUNT_COUNT(value) (RTC_MODE1_COUNT_COUNT_Msk & ((value) << RTC_MODE1_COUNT_COUNT_Pos))
1545 #define RTC_MODE1_COUNT_MASK _U_(0xFFFF)
1547 /* -------- RTC_MODE2_CLOCK : (RTC Offset: 0x18) (R/W 32) MODE2 MODE2 Clock Value -------- */
1548 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1549 typedef union {
1550  struct {
1551  uint32_t SECOND:6;
1552  uint32_t MINUTE:6;
1553  uint32_t HOUR:5;
1554  uint32_t DAY:5;
1555  uint32_t MONTH:4;
1556  uint32_t YEAR:6;
1557  } bit;
1558  uint32_t reg;
1560 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
1561 
1562 #define RTC_MODE2_CLOCK_OFFSET 0x18
1563 #define RTC_MODE2_CLOCK_RESETVALUE _U_(0x00000000)
1565 #define RTC_MODE2_CLOCK_SECOND_Pos 0
1566 #define RTC_MODE2_CLOCK_SECOND_Msk (_U_(0x3F) << RTC_MODE2_CLOCK_SECOND_Pos)
1567 #define RTC_MODE2_CLOCK_SECOND(value) (RTC_MODE2_CLOCK_SECOND_Msk & ((value) << RTC_MODE2_CLOCK_SECOND_Pos))
1568 #define RTC_MODE2_CLOCK_MINUTE_Pos 6
1569 #define RTC_MODE2_CLOCK_MINUTE_Msk (_U_(0x3F) << RTC_MODE2_CLOCK_MINUTE_Pos)
1570 #define RTC_MODE2_CLOCK_MINUTE(value) (RTC_MODE2_CLOCK_MINUTE_Msk & ((value) << RTC_MODE2_CLOCK_MINUTE_Pos))
1571 #define RTC_MODE2_CLOCK_HOUR_Pos 12
1572 #define RTC_MODE2_CLOCK_HOUR_Msk (_U_(0x1F) << RTC_MODE2_CLOCK_HOUR_Pos)
1573 #define RTC_MODE2_CLOCK_HOUR(value) (RTC_MODE2_CLOCK_HOUR_Msk & ((value) << RTC_MODE2_CLOCK_HOUR_Pos))
1574 #define RTC_MODE2_CLOCK_HOUR_AM_Val _U_(0x0)
1575 #define RTC_MODE2_CLOCK_HOUR_PM_Val _U_(0x10)
1576 #define RTC_MODE2_CLOCK_HOUR_AM (RTC_MODE2_CLOCK_HOUR_AM_Val << RTC_MODE2_CLOCK_HOUR_Pos)
1577 #define RTC_MODE2_CLOCK_HOUR_PM (RTC_MODE2_CLOCK_HOUR_PM_Val << RTC_MODE2_CLOCK_HOUR_Pos)
1578 #define RTC_MODE2_CLOCK_DAY_Pos 17
1579 #define RTC_MODE2_CLOCK_DAY_Msk (_U_(0x1F) << RTC_MODE2_CLOCK_DAY_Pos)
1580 #define RTC_MODE2_CLOCK_DAY(value) (RTC_MODE2_CLOCK_DAY_Msk & ((value) << RTC_MODE2_CLOCK_DAY_Pos))
1581 #define RTC_MODE2_CLOCK_MONTH_Pos 22
1582 #define RTC_MODE2_CLOCK_MONTH_Msk (_U_(0xF) << RTC_MODE2_CLOCK_MONTH_Pos)
1583 #define RTC_MODE2_CLOCK_MONTH(value) (RTC_MODE2_CLOCK_MONTH_Msk & ((value) << RTC_MODE2_CLOCK_MONTH_Pos))
1584 #define RTC_MODE2_CLOCK_YEAR_Pos 26
1585 #define RTC_MODE2_CLOCK_YEAR_Msk (_U_(0x3F) << RTC_MODE2_CLOCK_YEAR_Pos)
1586 #define RTC_MODE2_CLOCK_YEAR(value) (RTC_MODE2_CLOCK_YEAR_Msk & ((value) << RTC_MODE2_CLOCK_YEAR_Pos))
1587 #define RTC_MODE2_CLOCK_MASK _U_(0xFFFFFFFF)
1589 /* -------- RTC_MODE1_PER : (RTC Offset: 0x1C) (R/W 16) MODE1 MODE1 Counter Period -------- */
1590 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1591 typedef union {
1592  struct {
1593  uint16_t PER:16;
1594  } bit;
1595  uint16_t reg;
1597 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
1598 
1599 #define RTC_MODE1_PER_OFFSET 0x1C
1600 #define RTC_MODE1_PER_RESETVALUE _U_(0x0000)
1602 #define RTC_MODE1_PER_PER_Pos 0
1603 #define RTC_MODE1_PER_PER_Msk (_U_(0xFFFF) << RTC_MODE1_PER_PER_Pos)
1604 #define RTC_MODE1_PER_PER(value) (RTC_MODE1_PER_PER_Msk & ((value) << RTC_MODE1_PER_PER_Pos))
1605 #define RTC_MODE1_PER_MASK _U_(0xFFFF)
1607 /* -------- RTC_MODE0_COMP : (RTC Offset: 0x20) (R/W 32) MODE0 MODE0 Compare n Value -------- */
1608 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1609 typedef union {
1610  struct {
1611  uint32_t COMP:32;
1612  } bit;
1613  uint32_t reg;
1615 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
1616 
1617 #define RTC_MODE0_COMP_OFFSET 0x20
1618 #define RTC_MODE0_COMP_RESETVALUE _U_(0x00000000)
1620 #define RTC_MODE0_COMP_COMP_Pos 0
1621 #define RTC_MODE0_COMP_COMP_Msk (_U_(0xFFFFFFFF) << RTC_MODE0_COMP_COMP_Pos)
1622 #define RTC_MODE0_COMP_COMP(value) (RTC_MODE0_COMP_COMP_Msk & ((value) << RTC_MODE0_COMP_COMP_Pos))
1623 #define RTC_MODE0_COMP_MASK _U_(0xFFFFFFFF)
1625 /* -------- RTC_MODE1_COMP : (RTC Offset: 0x20) (R/W 16) MODE1 MODE1 Compare n Value -------- */
1626 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1627 typedef union {
1628  struct {
1629  uint16_t COMP:16;
1630  } bit;
1631  uint16_t reg;
1633 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
1634 
1635 #define RTC_MODE1_COMP_OFFSET 0x20
1636 #define RTC_MODE1_COMP_RESETVALUE _U_(0x0000)
1638 #define RTC_MODE1_COMP_COMP_Pos 0
1639 #define RTC_MODE1_COMP_COMP_Msk (_U_(0xFFFF) << RTC_MODE1_COMP_COMP_Pos)
1640 #define RTC_MODE1_COMP_COMP(value) (RTC_MODE1_COMP_COMP_Msk & ((value) << RTC_MODE1_COMP_COMP_Pos))
1641 #define RTC_MODE1_COMP_MASK _U_(0xFFFF)
1643 /* -------- RTC_MODE2_ALARM : (RTC Offset: 0x20) (R/W 32) MODE2 MODE2_ALARM Alarm n Value -------- */
1644 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1645 typedef union {
1646  struct {
1647  uint32_t SECOND:6;
1648  uint32_t MINUTE:6;
1649  uint32_t HOUR:5;
1650  uint32_t DAY:5;
1651  uint32_t MONTH:4;
1652  uint32_t YEAR:6;
1653  } bit;
1654  uint32_t reg;
1656 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
1657 
1658 #define RTC_MODE2_ALARM_OFFSET 0x20
1659 #define RTC_MODE2_ALARM_RESETVALUE _U_(0x00000000)
1661 #define RTC_MODE2_ALARM_SECOND_Pos 0
1662 #define RTC_MODE2_ALARM_SECOND_Msk (_U_(0x3F) << RTC_MODE2_ALARM_SECOND_Pos)
1663 #define RTC_MODE2_ALARM_SECOND(value) (RTC_MODE2_ALARM_SECOND_Msk & ((value) << RTC_MODE2_ALARM_SECOND_Pos))
1664 #define RTC_MODE2_ALARM_MINUTE_Pos 6
1665 #define RTC_MODE2_ALARM_MINUTE_Msk (_U_(0x3F) << RTC_MODE2_ALARM_MINUTE_Pos)
1666 #define RTC_MODE2_ALARM_MINUTE(value) (RTC_MODE2_ALARM_MINUTE_Msk & ((value) << RTC_MODE2_ALARM_MINUTE_Pos))
1667 #define RTC_MODE2_ALARM_HOUR_Pos 12
1668 #define RTC_MODE2_ALARM_HOUR_Msk (_U_(0x1F) << RTC_MODE2_ALARM_HOUR_Pos)
1669 #define RTC_MODE2_ALARM_HOUR(value) (RTC_MODE2_ALARM_HOUR_Msk & ((value) << RTC_MODE2_ALARM_HOUR_Pos))
1670 #define RTC_MODE2_ALARM_HOUR_AM_Val _U_(0x0)
1671 #define RTC_MODE2_ALARM_HOUR_PM_Val _U_(0x10)
1672 #define RTC_MODE2_ALARM_HOUR_AM (RTC_MODE2_ALARM_HOUR_AM_Val << RTC_MODE2_ALARM_HOUR_Pos)
1673 #define RTC_MODE2_ALARM_HOUR_PM (RTC_MODE2_ALARM_HOUR_PM_Val << RTC_MODE2_ALARM_HOUR_Pos)
1674 #define RTC_MODE2_ALARM_DAY_Pos 17
1675 #define RTC_MODE2_ALARM_DAY_Msk (_U_(0x1F) << RTC_MODE2_ALARM_DAY_Pos)
1676 #define RTC_MODE2_ALARM_DAY(value) (RTC_MODE2_ALARM_DAY_Msk & ((value) << RTC_MODE2_ALARM_DAY_Pos))
1677 #define RTC_MODE2_ALARM_MONTH_Pos 22
1678 #define RTC_MODE2_ALARM_MONTH_Msk (_U_(0xF) << RTC_MODE2_ALARM_MONTH_Pos)
1679 #define RTC_MODE2_ALARM_MONTH(value) (RTC_MODE2_ALARM_MONTH_Msk & ((value) << RTC_MODE2_ALARM_MONTH_Pos))
1680 #define RTC_MODE2_ALARM_YEAR_Pos 26
1681 #define RTC_MODE2_ALARM_YEAR_Msk (_U_(0x3F) << RTC_MODE2_ALARM_YEAR_Pos)
1682 #define RTC_MODE2_ALARM_YEAR(value) (RTC_MODE2_ALARM_YEAR_Msk & ((value) << RTC_MODE2_ALARM_YEAR_Pos))
1683 #define RTC_MODE2_ALARM_MASK _U_(0xFFFFFFFF)
1685 /* -------- RTC_MODE2_MASK : (RTC Offset: 0x24) (R/W 8) MODE2 MODE2_ALARM Alarm n Mask -------- */
1686 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1687 typedef union {
1688  struct {
1689  uint8_t SEL:3;
1690  uint8_t :5;
1691  } bit;
1692  uint8_t reg;
1694 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
1695 
1696 #define RTC_MODE2_MASK_OFFSET 0x24
1697 #define RTC_MODE2_MASK_RESETVALUE _U_(0x00)
1699 #define RTC_MODE2_MASK_SEL_Pos 0
1700 #define RTC_MODE2_MASK_SEL_Msk (_U_(0x7) << RTC_MODE2_MASK_SEL_Pos)
1701 #define RTC_MODE2_MASK_SEL(value) (RTC_MODE2_MASK_SEL_Msk & ((value) << RTC_MODE2_MASK_SEL_Pos))
1702 #define RTC_MODE2_MASK_SEL_OFF_Val _U_(0x0)
1703 #define RTC_MODE2_MASK_SEL_SS_Val _U_(0x1)
1704 #define RTC_MODE2_MASK_SEL_MMSS_Val _U_(0x2)
1705 #define RTC_MODE2_MASK_SEL_HHMMSS_Val _U_(0x3)
1706 #define RTC_MODE2_MASK_SEL_DDHHMMSS_Val _U_(0x4)
1707 #define RTC_MODE2_MASK_SEL_MMDDHHMMSS_Val _U_(0x5)
1708 #define RTC_MODE2_MASK_SEL_YYMMDDHHMMSS_Val _U_(0x6)
1709 #define RTC_MODE2_MASK_SEL_OFF (RTC_MODE2_MASK_SEL_OFF_Val << RTC_MODE2_MASK_SEL_Pos)
1710 #define RTC_MODE2_MASK_SEL_SS (RTC_MODE2_MASK_SEL_SS_Val << RTC_MODE2_MASK_SEL_Pos)
1711 #define RTC_MODE2_MASK_SEL_MMSS (RTC_MODE2_MASK_SEL_MMSS_Val << RTC_MODE2_MASK_SEL_Pos)
1712 #define RTC_MODE2_MASK_SEL_HHMMSS (RTC_MODE2_MASK_SEL_HHMMSS_Val << RTC_MODE2_MASK_SEL_Pos)
1713 #define RTC_MODE2_MASK_SEL_DDHHMMSS (RTC_MODE2_MASK_SEL_DDHHMMSS_Val << RTC_MODE2_MASK_SEL_Pos)
1714 #define RTC_MODE2_MASK_SEL_MMDDHHMMSS (RTC_MODE2_MASK_SEL_MMDDHHMMSS_Val << RTC_MODE2_MASK_SEL_Pos)
1715 #define RTC_MODE2_MASK_SEL_YYMMDDHHMMSS (RTC_MODE2_MASK_SEL_YYMMDDHHMMSS_Val << RTC_MODE2_MASK_SEL_Pos)
1716 #define RTC_MODE2_MASK_MASK _U_(0x07)
1718 /* -------- RTC_GP : (RTC Offset: 0x40) (R/W 32) General Purpose -------- */
1719 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1720 typedef union {
1721  struct {
1722  uint32_t GP:32;
1723  } bit;
1724  uint32_t reg;
1725 } RTC_GP_Type;
1726 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
1727 
1728 #define RTC_GP_OFFSET 0x40
1729 #define RTC_GP_RESETVALUE _U_(0x00000000)
1731 #define RTC_GP_GP_Pos 0
1732 #define RTC_GP_GP_Msk (_U_(0xFFFFFFFF) << RTC_GP_GP_Pos)
1733 #define RTC_GP_GP(value) (RTC_GP_GP_Msk & ((value) << RTC_GP_GP_Pos))
1734 #define RTC_GP_MASK _U_(0xFFFFFFFF)
1736 /* -------- RTC_TAMPCTRL : (RTC Offset: 0x60) (R/W 32) Tamper Control -------- */
1737 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1738 typedef union {
1739  struct {
1740  uint32_t IN0ACT:2;
1741  uint32_t IN1ACT:2;
1742  uint32_t IN2ACT:2;
1743  uint32_t IN3ACT:2;
1744  uint32_t IN4ACT:2;
1745  uint32_t :6;
1746  uint32_t TAMLVL0:1;
1747  uint32_t TAMLVL1:1;
1748  uint32_t TAMLVL2:1;
1749  uint32_t TAMLVL3:1;
1750  uint32_t TAMLVL4:1;
1751  uint32_t :3;
1752  uint32_t DEBNC0:1;
1753  uint32_t DEBNC1:1;
1754  uint32_t DEBNC2:1;
1755  uint32_t DEBNC3:1;
1756  uint32_t DEBNC4:1;
1757  uint32_t :3;
1758  } bit;
1759  struct {
1760  uint32_t :16;
1761  uint32_t TAMLVL:5;
1762  uint32_t :3;
1763  uint32_t DEBNC:5;
1764  uint32_t :3;
1765  } vec;
1766  uint32_t reg;
1768 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
1769 
1770 #define RTC_TAMPCTRL_OFFSET 0x60
1771 #define RTC_TAMPCTRL_RESETVALUE _U_(0x00000000)
1773 #define RTC_TAMPCTRL_IN0ACT_Pos 0
1774 #define RTC_TAMPCTRL_IN0ACT_Msk (_U_(0x3) << RTC_TAMPCTRL_IN0ACT_Pos)
1775 #define RTC_TAMPCTRL_IN0ACT(value) (RTC_TAMPCTRL_IN0ACT_Msk & ((value) << RTC_TAMPCTRL_IN0ACT_Pos))
1776 #define RTC_TAMPCTRL_IN0ACT_OFF_Val _U_(0x0)
1777 #define RTC_TAMPCTRL_IN0ACT_WAKE_Val _U_(0x1)
1778 #define RTC_TAMPCTRL_IN0ACT_CAPTURE_Val _U_(0x2)
1779 #define RTC_TAMPCTRL_IN0ACT_ACTL_Val _U_(0x3)
1780 #define RTC_TAMPCTRL_IN0ACT_OFF (RTC_TAMPCTRL_IN0ACT_OFF_Val << RTC_TAMPCTRL_IN0ACT_Pos)
1781 #define RTC_TAMPCTRL_IN0ACT_WAKE (RTC_TAMPCTRL_IN0ACT_WAKE_Val << RTC_TAMPCTRL_IN0ACT_Pos)
1782 #define RTC_TAMPCTRL_IN0ACT_CAPTURE (RTC_TAMPCTRL_IN0ACT_CAPTURE_Val << RTC_TAMPCTRL_IN0ACT_Pos)
1783 #define RTC_TAMPCTRL_IN0ACT_ACTL (RTC_TAMPCTRL_IN0ACT_ACTL_Val << RTC_TAMPCTRL_IN0ACT_Pos)
1784 #define RTC_TAMPCTRL_IN1ACT_Pos 2
1785 #define RTC_TAMPCTRL_IN1ACT_Msk (_U_(0x3) << RTC_TAMPCTRL_IN1ACT_Pos)
1786 #define RTC_TAMPCTRL_IN1ACT(value) (RTC_TAMPCTRL_IN1ACT_Msk & ((value) << RTC_TAMPCTRL_IN1ACT_Pos))
1787 #define RTC_TAMPCTRL_IN1ACT_OFF_Val _U_(0x0)
1788 #define RTC_TAMPCTRL_IN1ACT_WAKE_Val _U_(0x1)
1789 #define RTC_TAMPCTRL_IN1ACT_CAPTURE_Val _U_(0x2)
1790 #define RTC_TAMPCTRL_IN1ACT_ACTL_Val _U_(0x3)
1791 #define RTC_TAMPCTRL_IN1ACT_OFF (RTC_TAMPCTRL_IN1ACT_OFF_Val << RTC_TAMPCTRL_IN1ACT_Pos)
1792 #define RTC_TAMPCTRL_IN1ACT_WAKE (RTC_TAMPCTRL_IN1ACT_WAKE_Val << RTC_TAMPCTRL_IN1ACT_Pos)
1793 #define RTC_TAMPCTRL_IN1ACT_CAPTURE (RTC_TAMPCTRL_IN1ACT_CAPTURE_Val << RTC_TAMPCTRL_IN1ACT_Pos)
1794 #define RTC_TAMPCTRL_IN1ACT_ACTL (RTC_TAMPCTRL_IN1ACT_ACTL_Val << RTC_TAMPCTRL_IN1ACT_Pos)
1795 #define RTC_TAMPCTRL_IN2ACT_Pos 4
1796 #define RTC_TAMPCTRL_IN2ACT_Msk (_U_(0x3) << RTC_TAMPCTRL_IN2ACT_Pos)
1797 #define RTC_TAMPCTRL_IN2ACT(value) (RTC_TAMPCTRL_IN2ACT_Msk & ((value) << RTC_TAMPCTRL_IN2ACT_Pos))
1798 #define RTC_TAMPCTRL_IN2ACT_OFF_Val _U_(0x0)
1799 #define RTC_TAMPCTRL_IN2ACT_WAKE_Val _U_(0x1)
1800 #define RTC_TAMPCTRL_IN2ACT_CAPTURE_Val _U_(0x2)
1801 #define RTC_TAMPCTRL_IN2ACT_ACTL_Val _U_(0x3)
1802 #define RTC_TAMPCTRL_IN2ACT_OFF (RTC_TAMPCTRL_IN2ACT_OFF_Val << RTC_TAMPCTRL_IN2ACT_Pos)
1803 #define RTC_TAMPCTRL_IN2ACT_WAKE (RTC_TAMPCTRL_IN2ACT_WAKE_Val << RTC_TAMPCTRL_IN2ACT_Pos)
1804 #define RTC_TAMPCTRL_IN2ACT_CAPTURE (RTC_TAMPCTRL_IN2ACT_CAPTURE_Val << RTC_TAMPCTRL_IN2ACT_Pos)
1805 #define RTC_TAMPCTRL_IN2ACT_ACTL (RTC_TAMPCTRL_IN2ACT_ACTL_Val << RTC_TAMPCTRL_IN2ACT_Pos)
1806 #define RTC_TAMPCTRL_IN3ACT_Pos 6
1807 #define RTC_TAMPCTRL_IN3ACT_Msk (_U_(0x3) << RTC_TAMPCTRL_IN3ACT_Pos)
1808 #define RTC_TAMPCTRL_IN3ACT(value) (RTC_TAMPCTRL_IN3ACT_Msk & ((value) << RTC_TAMPCTRL_IN3ACT_Pos))
1809 #define RTC_TAMPCTRL_IN3ACT_OFF_Val _U_(0x0)
1810 #define RTC_TAMPCTRL_IN3ACT_WAKE_Val _U_(0x1)
1811 #define RTC_TAMPCTRL_IN3ACT_CAPTURE_Val _U_(0x2)
1812 #define RTC_TAMPCTRL_IN3ACT_ACTL_Val _U_(0x3)
1813 #define RTC_TAMPCTRL_IN3ACT_OFF (RTC_TAMPCTRL_IN3ACT_OFF_Val << RTC_TAMPCTRL_IN3ACT_Pos)
1814 #define RTC_TAMPCTRL_IN3ACT_WAKE (RTC_TAMPCTRL_IN3ACT_WAKE_Val << RTC_TAMPCTRL_IN3ACT_Pos)
1815 #define RTC_TAMPCTRL_IN3ACT_CAPTURE (RTC_TAMPCTRL_IN3ACT_CAPTURE_Val << RTC_TAMPCTRL_IN3ACT_Pos)
1816 #define RTC_TAMPCTRL_IN3ACT_ACTL (RTC_TAMPCTRL_IN3ACT_ACTL_Val << RTC_TAMPCTRL_IN3ACT_Pos)
1817 #define RTC_TAMPCTRL_IN4ACT_Pos 8
1818 #define RTC_TAMPCTRL_IN4ACT_Msk (_U_(0x3) << RTC_TAMPCTRL_IN4ACT_Pos)
1819 #define RTC_TAMPCTRL_IN4ACT(value) (RTC_TAMPCTRL_IN4ACT_Msk & ((value) << RTC_TAMPCTRL_IN4ACT_Pos))
1820 #define RTC_TAMPCTRL_IN4ACT_OFF_Val _U_(0x0)
1821 #define RTC_TAMPCTRL_IN4ACT_WAKE_Val _U_(0x1)
1822 #define RTC_TAMPCTRL_IN4ACT_CAPTURE_Val _U_(0x2)
1823 #define RTC_TAMPCTRL_IN4ACT_ACTL_Val _U_(0x3)
1824 #define RTC_TAMPCTRL_IN4ACT_OFF (RTC_TAMPCTRL_IN4ACT_OFF_Val << RTC_TAMPCTRL_IN4ACT_Pos)
1825 #define RTC_TAMPCTRL_IN4ACT_WAKE (RTC_TAMPCTRL_IN4ACT_WAKE_Val << RTC_TAMPCTRL_IN4ACT_Pos)
1826 #define RTC_TAMPCTRL_IN4ACT_CAPTURE (RTC_TAMPCTRL_IN4ACT_CAPTURE_Val << RTC_TAMPCTRL_IN4ACT_Pos)
1827 #define RTC_TAMPCTRL_IN4ACT_ACTL (RTC_TAMPCTRL_IN4ACT_ACTL_Val << RTC_TAMPCTRL_IN4ACT_Pos)
1828 #define RTC_TAMPCTRL_TAMLVL0_Pos 16
1829 #define RTC_TAMPCTRL_TAMLVL0 (_U_(1) << RTC_TAMPCTRL_TAMLVL0_Pos)
1830 #define RTC_TAMPCTRL_TAMLVL1_Pos 17
1831 #define RTC_TAMPCTRL_TAMLVL1 (_U_(1) << RTC_TAMPCTRL_TAMLVL1_Pos)
1832 #define RTC_TAMPCTRL_TAMLVL2_Pos 18
1833 #define RTC_TAMPCTRL_TAMLVL2 (_U_(1) << RTC_TAMPCTRL_TAMLVL2_Pos)
1834 #define RTC_TAMPCTRL_TAMLVL3_Pos 19
1835 #define RTC_TAMPCTRL_TAMLVL3 (_U_(1) << RTC_TAMPCTRL_TAMLVL3_Pos)
1836 #define RTC_TAMPCTRL_TAMLVL4_Pos 20
1837 #define RTC_TAMPCTRL_TAMLVL4 (_U_(1) << RTC_TAMPCTRL_TAMLVL4_Pos)
1838 #define RTC_TAMPCTRL_TAMLVL_Pos 16
1839 #define RTC_TAMPCTRL_TAMLVL_Msk (_U_(0x1F) << RTC_TAMPCTRL_TAMLVL_Pos)
1840 #define RTC_TAMPCTRL_TAMLVL(value) (RTC_TAMPCTRL_TAMLVL_Msk & ((value) << RTC_TAMPCTRL_TAMLVL_Pos))
1841 #define RTC_TAMPCTRL_DEBNC0_Pos 24
1842 #define RTC_TAMPCTRL_DEBNC0 (_U_(1) << RTC_TAMPCTRL_DEBNC0_Pos)
1843 #define RTC_TAMPCTRL_DEBNC1_Pos 25
1844 #define RTC_TAMPCTRL_DEBNC1 (_U_(1) << RTC_TAMPCTRL_DEBNC1_Pos)
1845 #define RTC_TAMPCTRL_DEBNC2_Pos 26
1846 #define RTC_TAMPCTRL_DEBNC2 (_U_(1) << RTC_TAMPCTRL_DEBNC2_Pos)
1847 #define RTC_TAMPCTRL_DEBNC3_Pos 27
1848 #define RTC_TAMPCTRL_DEBNC3 (_U_(1) << RTC_TAMPCTRL_DEBNC3_Pos)
1849 #define RTC_TAMPCTRL_DEBNC4_Pos 28
1850 #define RTC_TAMPCTRL_DEBNC4 (_U_(1) << RTC_TAMPCTRL_DEBNC4_Pos)
1851 #define RTC_TAMPCTRL_DEBNC_Pos 24
1852 #define RTC_TAMPCTRL_DEBNC_Msk (_U_(0x1F) << RTC_TAMPCTRL_DEBNC_Pos)
1853 #define RTC_TAMPCTRL_DEBNC(value) (RTC_TAMPCTRL_DEBNC_Msk & ((value) << RTC_TAMPCTRL_DEBNC_Pos))
1854 #define RTC_TAMPCTRL_MASK _U_(0x1F1F03FF)
1856 /* -------- RTC_MODE0_TIMESTAMP : (RTC Offset: 0x64) (R/ 32) MODE0 MODE0 Timestamp -------- */
1857 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1858 typedef union {
1859  struct {
1860  uint32_t COUNT:32;
1861  } bit;
1862  uint32_t reg;
1864 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
1865 
1866 #define RTC_MODE0_TIMESTAMP_OFFSET 0x64
1867 #define RTC_MODE0_TIMESTAMP_RESETVALUE _U_(0x00000000)
1869 #define RTC_MODE0_TIMESTAMP_COUNT_Pos 0
1870 #define RTC_MODE0_TIMESTAMP_COUNT_Msk (_U_(0xFFFFFFFF) << RTC_MODE0_TIMESTAMP_COUNT_Pos)
1871 #define RTC_MODE0_TIMESTAMP_COUNT(value) (RTC_MODE0_TIMESTAMP_COUNT_Msk & ((value) << RTC_MODE0_TIMESTAMP_COUNT_Pos))
1872 #define RTC_MODE0_TIMESTAMP_MASK _U_(0xFFFFFFFF)
1874 /* -------- RTC_MODE1_TIMESTAMP : (RTC Offset: 0x64) (R/ 32) MODE1 MODE1 Timestamp -------- */
1875 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1876 typedef union {
1877  struct {
1878  uint32_t COUNT:16;
1879  uint32_t :16;
1880  } bit;
1881  uint32_t reg;
1883 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
1884 
1885 #define RTC_MODE1_TIMESTAMP_OFFSET 0x64
1886 #define RTC_MODE1_TIMESTAMP_RESETVALUE _U_(0x00000000)
1888 #define RTC_MODE1_TIMESTAMP_COUNT_Pos 0
1889 #define RTC_MODE1_TIMESTAMP_COUNT_Msk (_U_(0xFFFF) << RTC_MODE1_TIMESTAMP_COUNT_Pos)
1890 #define RTC_MODE1_TIMESTAMP_COUNT(value) (RTC_MODE1_TIMESTAMP_COUNT_Msk & ((value) << RTC_MODE1_TIMESTAMP_COUNT_Pos))
1891 #define RTC_MODE1_TIMESTAMP_MASK _U_(0x0000FFFF)
1893 /* -------- RTC_MODE2_TIMESTAMP : (RTC Offset: 0x64) (R/ 32) MODE2 MODE2 Timestamp -------- */
1894 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1895 typedef union {
1896  struct {
1897  uint32_t SECOND:6;
1898  uint32_t MINUTE:6;
1899  uint32_t HOUR:5;
1900  uint32_t DAY:5;
1901  uint32_t MONTH:4;
1902  uint32_t YEAR:6;
1903  } bit;
1904  uint32_t reg;
1906 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
1907 
1908 #define RTC_MODE2_TIMESTAMP_OFFSET 0x64
1909 #define RTC_MODE2_TIMESTAMP_RESETVALUE _U_(0x00000000)
1911 #define RTC_MODE2_TIMESTAMP_SECOND_Pos 0
1912 #define RTC_MODE2_TIMESTAMP_SECOND_Msk (_U_(0x3F) << RTC_MODE2_TIMESTAMP_SECOND_Pos)
1913 #define RTC_MODE2_TIMESTAMP_SECOND(value) (RTC_MODE2_TIMESTAMP_SECOND_Msk & ((value) << RTC_MODE2_TIMESTAMP_SECOND_Pos))
1914 #define RTC_MODE2_TIMESTAMP_MINUTE_Pos 6
1915 #define RTC_MODE2_TIMESTAMP_MINUTE_Msk (_U_(0x3F) << RTC_MODE2_TIMESTAMP_MINUTE_Pos)
1916 #define RTC_MODE2_TIMESTAMP_MINUTE(value) (RTC_MODE2_TIMESTAMP_MINUTE_Msk & ((value) << RTC_MODE2_TIMESTAMP_MINUTE_Pos))
1917 #define RTC_MODE2_TIMESTAMP_HOUR_Pos 12
1918 #define RTC_MODE2_TIMESTAMP_HOUR_Msk (_U_(0x1F) << RTC_MODE2_TIMESTAMP_HOUR_Pos)
1919 #define RTC_MODE2_TIMESTAMP_HOUR(value) (RTC_MODE2_TIMESTAMP_HOUR_Msk & ((value) << RTC_MODE2_TIMESTAMP_HOUR_Pos))
1920 #define RTC_MODE2_TIMESTAMP_HOUR_AM_Val _U_(0x0)
1921 #define RTC_MODE2_TIMESTAMP_HOUR_PM_Val _U_(0x10)
1922 #define RTC_MODE2_TIMESTAMP_HOUR_AM (RTC_MODE2_TIMESTAMP_HOUR_AM_Val << RTC_MODE2_TIMESTAMP_HOUR_Pos)
1923 #define RTC_MODE2_TIMESTAMP_HOUR_PM (RTC_MODE2_TIMESTAMP_HOUR_PM_Val << RTC_MODE2_TIMESTAMP_HOUR_Pos)
1924 #define RTC_MODE2_TIMESTAMP_DAY_Pos 17
1925 #define RTC_MODE2_TIMESTAMP_DAY_Msk (_U_(0x1F) << RTC_MODE2_TIMESTAMP_DAY_Pos)
1926 #define RTC_MODE2_TIMESTAMP_DAY(value) (RTC_MODE2_TIMESTAMP_DAY_Msk & ((value) << RTC_MODE2_TIMESTAMP_DAY_Pos))
1927 #define RTC_MODE2_TIMESTAMP_MONTH_Pos 22
1928 #define RTC_MODE2_TIMESTAMP_MONTH_Msk (_U_(0xF) << RTC_MODE2_TIMESTAMP_MONTH_Pos)
1929 #define RTC_MODE2_TIMESTAMP_MONTH(value) (RTC_MODE2_TIMESTAMP_MONTH_Msk & ((value) << RTC_MODE2_TIMESTAMP_MONTH_Pos))
1930 #define RTC_MODE2_TIMESTAMP_YEAR_Pos 26
1931 #define RTC_MODE2_TIMESTAMP_YEAR_Msk (_U_(0x3F) << RTC_MODE2_TIMESTAMP_YEAR_Pos)
1932 #define RTC_MODE2_TIMESTAMP_YEAR(value) (RTC_MODE2_TIMESTAMP_YEAR_Msk & ((value) << RTC_MODE2_TIMESTAMP_YEAR_Pos))
1933 #define RTC_MODE2_TIMESTAMP_MASK _U_(0xFFFFFFFF)
1935 /* -------- RTC_TAMPID : (RTC Offset: 0x68) (R/W 32) Tamper ID -------- */
1936 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1937 typedef union {
1938  struct {
1939  uint32_t TAMPID0:1;
1940  uint32_t TAMPID1:1;
1941  uint32_t TAMPID2:1;
1942  uint32_t TAMPID3:1;
1943  uint32_t TAMPID4:1;
1944  uint32_t :26;
1945  uint32_t TAMPEVT:1;
1946  } bit;
1947  struct {
1948  uint32_t TAMPID:5;
1949  uint32_t :27;
1950  } vec;
1951  uint32_t reg;
1952 } RTC_TAMPID_Type;
1953 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
1954 
1955 #define RTC_TAMPID_OFFSET 0x68
1956 #define RTC_TAMPID_RESETVALUE _U_(0x00000000)
1958 #define RTC_TAMPID_TAMPID0_Pos 0
1959 #define RTC_TAMPID_TAMPID0 (_U_(1) << RTC_TAMPID_TAMPID0_Pos)
1960 #define RTC_TAMPID_TAMPID1_Pos 1
1961 #define RTC_TAMPID_TAMPID1 (_U_(1) << RTC_TAMPID_TAMPID1_Pos)
1962 #define RTC_TAMPID_TAMPID2_Pos 2
1963 #define RTC_TAMPID_TAMPID2 (_U_(1) << RTC_TAMPID_TAMPID2_Pos)
1964 #define RTC_TAMPID_TAMPID3_Pos 3
1965 #define RTC_TAMPID_TAMPID3 (_U_(1) << RTC_TAMPID_TAMPID3_Pos)
1966 #define RTC_TAMPID_TAMPID4_Pos 4
1967 #define RTC_TAMPID_TAMPID4 (_U_(1) << RTC_TAMPID_TAMPID4_Pos)
1968 #define RTC_TAMPID_TAMPID_Pos 0
1969 #define RTC_TAMPID_TAMPID_Msk (_U_(0x1F) << RTC_TAMPID_TAMPID_Pos)
1970 #define RTC_TAMPID_TAMPID(value) (RTC_TAMPID_TAMPID_Msk & ((value) << RTC_TAMPID_TAMPID_Pos))
1971 #define RTC_TAMPID_TAMPEVT_Pos 31
1972 #define RTC_TAMPID_TAMPEVT (_U_(0x1) << RTC_TAMPID_TAMPEVT_Pos)
1973 #define RTC_TAMPID_MASK _U_(0x8000001F)
1975 /* -------- RTC_BKUP : (RTC Offset: 0x80) (R/W 32) Backup -------- */
1976 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1977 typedef union {
1978  struct {
1979  uint32_t BKUP:32;
1980  } bit;
1981  uint32_t reg;
1982 } RTC_BKUP_Type;
1983 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
1984 
1985 #define RTC_BKUP_OFFSET 0x80
1986 #define RTC_BKUP_RESETVALUE _U_(0x00000000)
1988 #define RTC_BKUP_BKUP_Pos 0
1989 #define RTC_BKUP_BKUP_Msk (_U_(0xFFFFFFFF) << RTC_BKUP_BKUP_Pos)
1990 #define RTC_BKUP_BKUP(value) (RTC_BKUP_BKUP_Msk & ((value) << RTC_BKUP_BKUP_Pos))
1991 #define RTC_BKUP_MASK _U_(0xFFFFFFFF)
1994 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1995 typedef struct {
1998  RoReg8 Reserved1[0x3];
1999 } RtcMode2Alarm;
2000 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
2001 
2003 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
2004 typedef struct { /* 32-bit Counter with Single 32-bit Compare */
2012  RoReg8 Reserved1[0x1];
2015  RoReg8 Reserved2[0x3];
2017  RoReg8 Reserved3[0x4];
2018  __IO RTC_MODE0_COMP_Type COMP[2];
2019  RoReg8 Reserved4[0x18];
2020  __IO RTC_GP_Type GP[4];
2021  RoReg8 Reserved5[0x10];
2025  RoReg8 Reserved6[0x14];
2026  __IO RTC_BKUP_Type BKUP[8];
2027 } RtcMode0;
2028 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
2029 
2031 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
2032 typedef struct { /* 16-bit Counter with Two 16-bit Compares */
2040  RoReg8 Reserved1[0x1];
2043  RoReg8 Reserved2[0x3];
2045  RoReg8 Reserved3[0x2];
2047  RoReg8 Reserved4[0x2];
2048  __IO RTC_MODE1_COMP_Type COMP[4];
2049  RoReg8 Reserved5[0x18];
2050  __IO RTC_GP_Type GP[4];
2051  RoReg8 Reserved6[0x10];
2055  RoReg8 Reserved7[0x14];
2056  __IO RTC_BKUP_Type BKUP[8];
2057 } RtcMode1;
2058 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
2059 
2061 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
2062 typedef struct { /* Clock/Calendar with Alarm */
2070  RoReg8 Reserved1[0x1];
2073  RoReg8 Reserved2[0x3];
2075  RoReg8 Reserved3[0x4];
2076  RtcMode2Alarm Mode2Alarm[2];
2077  RoReg8 Reserved4[0x10];
2078  __IO RTC_GP_Type GP[4];
2079  RoReg8 Reserved5[0x10];
2083  RoReg8 Reserved6[0x14];
2084  __IO RTC_BKUP_Type BKUP[8];
2085 } RtcMode2;
2086 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
2087 
2088 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
2089 typedef union {
2093 } Rtc;
2094 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
2095 
2098 #endif /* _SAME54_RTC_COMPONENT_ */
RTC_MODE0_CTRLA_Type::GPTRST
uint16_t GPTRST
Definition: rtc.h:54
RTC_MODE1_EVCTRL_Type::CMPEO0
uint32_t CMPEO0
Definition: rtc.h:561
RTC_MODE2_INTENCLR_Type::ALARM
uint16_t ALARM
Definition: rtc.h:837
RtcMode1::INTENCLR
__IO RTC_MODE1_INTENCLR_Type INTENCLR
Offset: 0x08 (R/W 16) MODE1 Interrupt Enable Clear.
Definition: rtc.h:2036
RtcMode0
RTC_MODE0 hardware registers.
Definition: rtc.h:2004
RTC_MODE0_INTFLAG_Type::CMP
__I uint16_t CMP
Definition: rtc.h:1091
RTC_MODE1_CTRLB_Type::GP2EN
uint16_t GP2EN
Definition: rtc.h:338
RTC_MODE1_INTENCLR_Type::PER6
uint16_t PER6
Definition: rtc.h:759
RTC_MODE0_SYNCBUSY_Type::SWRST
uint32_t SWRST
Definition: rtc.h:1285
RTC_MODE1_INTENSET_Type::OVF
uint16_t OVF
Definition: rtc.h:959
RTC_MODE1_INTFLAG_Type::PER2
__I uint16_t PER2
Definition: rtc.h:1139
RTC_MODE0_CTRLB_Type::GP0EN
uint16_t GP0EN
Definition: rtc.h:262
RTC_MODE2_CTRLA_Type::CLKREP
uint16_t CLKREP
Definition: rtc.h:191
RTC_MODE2_INTENCLR_Type::reg
uint16_t reg
Definition: rtc.h:840
RtcMode0::CTRLA
__IO RTC_MODE0_CTRLA_Type CTRLA
Offset: 0x00 (R/W 16) MODE0 Control A.
Definition: rtc.h:2005
RTC_MODE1_CTRLB_Type::DEBMAJ
uint16_t DEBMAJ
Definition: rtc.h:340
RTC_TAMPCTRL_Type::IN4ACT
uint32_t IN4ACT
Definition: rtc.h:1744
RTC_MODE1_INTENSET_Type::TAMPER
uint16_t TAMPER
Definition: rtc.h:958
RTC_MODE1_SYNCBUSY_Type::reg
uint32_t reg
Definition: rtc.h:1372
RTC_MODE2_EVCTRL_Type::PEREO4
uint32_t PEREO4
Definition: rtc.h:629
RTC_MODE1_CTRLA_Type::SWRST
uint16_t SWRST
Definition: rtc.h:118
RTC_MODE0_TIMESTAMP_Type
Definition: rtc.h:1858
RTC_MODE0_SYNCBUSY_Type::GP2
uint32_t GP2
Definition: rtc.h:1296
RtcMode1::COUNT
__IO RTC_MODE1_COUNT_Type COUNT
Offset: 0x18 (R/W 16) MODE1 Counter Value.
Definition: rtc.h:2044
RTC_TAMPID_Type::TAMPID1
uint32_t TAMPID1
Definition: rtc.h:1940
RTC_TAMPCTRL_Type::IN0ACT
uint32_t IN0ACT
Definition: rtc.h:1740
RTC_MODE1_CTRLA_Type::MODE
uint16_t MODE
Definition: rtc.h:120
RTC_MODE2_SYNCBUSY_Type::ALARM0
uint32_t ALARM0
Definition: rtc.h:1424
RTC_MODE1_TIMESTAMP_Type
Definition: rtc.h:1876
RTC_MODE1_EVCTRL_Type::CMPEO1
uint32_t CMPEO1
Definition: rtc.h:562
RTC_MODE2_SYNCBUSY_Type::reg
uint32_t reg
Definition: rtc.h:1446
RTC_MODE1_COUNT_Type::reg
uint16_t reg
Definition: rtc.h:1535
RtcMode0::TAMPCTRL
__IO RTC_TAMPCTRL_Type TAMPCTRL
Offset: 0x60 (R/W 32) Tamper Control.
Definition: rtc.h:2022
RTC_TAMPCTRL_Type::TAMLVL4
uint32_t TAMLVL4
Definition: rtc.h:1750
RtcMode2::INTENCLR
__IO RTC_MODE2_INTENCLR_Type INTENCLR
Offset: 0x08 (R/W 16) MODE2 Interrupt Enable Clear.
Definition: rtc.h:2066
RTC_MODE1_INTFLAG_Type::TAMPER
__I uint16_t TAMPER
Definition: rtc.h:1150
RTC_TAMPCTRL_Type::DEBNC
uint32_t DEBNC
Definition: rtc.h:1763
RTC_MODE0_CTRLA_Type::reg
uint16_t reg
Definition: rtc.h:57
RTC_TAMPCTRL_Type::DEBNC1
uint32_t DEBNC1
Definition: rtc.h:1753
RTC_MODE2_INTENCLR_Type::PER0
uint16_t PER0
Definition: rtc.h:821
RTC_TAMPID_Type::TAMPID4
uint32_t TAMPID4
Definition: rtc.h:1943
RTC_MODE1_INTENCLR_Type::CMP1
uint16_t CMP1
Definition: rtc.h:762
RTC_MODE0_INTENSET_Type::PER1
uint16_t PER1
Definition: rtc.h:884
RtcMode1::INTFLAG
__IO RTC_MODE1_INTFLAG_Type INTFLAG
Offset: 0x0C (R/W 16) MODE1 Interrupt Flag Status and Clear.
Definition: rtc.h:2038
RTC_MODE1_SYNCBUSY_Type::COMP0
uint32_t COMP0
Definition: rtc.h:1353
RTC_MODE2_TIMESTAMP_Type::HOUR
uint32_t HOUR
Definition: rtc.h:1899
Rtc
Definition: rtc.h:2089
RTC_MODE1_SYNCBUSY_Type
Definition: rtc.h:1346
RTC_MODE1_INTFLAG_Type::PER6
__I uint16_t PER6
Definition: rtc.h:1143
RTC_MODE1_INTENCLR_Type::PER5
uint16_t PER5
Definition: rtc.h:758
RTC_MODE2_CTRLA_Type::reg
uint16_t reg
Definition: rtc.h:199
RTC_MODE2_CTRLA_Type::MODE
uint16_t MODE
Definition: rtc.h:189
RTC_MODE2_INTENSET_Type::ALARM
uint16_t ALARM
Definition: rtc.h:1029
RTC_MODE0_COUNT_Type::COUNT
uint32_t COUNT
Definition: rtc.h:1515
RTC_TAMPCTRL_Type
Definition: rtc.h:1738
RTC_MODE2_SYNCBUSY_Type::ALARM1
uint32_t ALARM1
Definition: rtc.h:1425
RTC_MODE2_EVCTRL_Type::PEREO3
uint32_t PEREO3
Definition: rtc.h:628
RTC_MODE2_TIMESTAMP_Type::reg
uint32_t reg
Definition: rtc.h:1904
RtcMode2::TAMPCTRL
__IO RTC_TAMPCTRL_Type TAMPCTRL
Offset: 0x60 (R/W 32) Tamper Control.
Definition: rtc.h:2080
RTC_MODE1_SYNCBUSY_Type::GP
uint32_t GP
Definition: rtc.h:1369
RtcMode0::TAMPID
__IO RTC_TAMPID_Type TAMPID
Offset: 0x68 (R/W 32) Tamper ID.
Definition: rtc.h:2024
RTC_DBGCTRL_Type::DBGRUN
uint8_t DBGRUN
Definition: rtc.h:1267
RTC_MODE0_SYNCBUSY_Type
Definition: rtc.h:1283
RTC_MODE0_CTRLA_Type::MODE
uint16_t MODE
Definition: rtc.h:48
RTC_MODE0_EVCTRL_Type::PEREO3
uint32_t PEREO3
Definition: rtc.h:490
RTC_MODE0_INTENSET_Type::CMP1
uint16_t CMP1
Definition: rtc.h:892
RTC_MODE1_INTENCLR_Type::PER7
uint16_t PER7
Definition: rtc.h:760
RtcMode2::EVCTRL
__IO RTC_MODE2_EVCTRL_Type EVCTRL
Offset: 0x04 (R/W 32) MODE2 Event Control.
Definition: rtc.h:2065
RTC_MODE0_INTFLAG_Type::PER3
__I uint16_t PER3
Definition: rtc.h:1078
RtcMode2Alarm::ALARM
__IO RTC_MODE2_ALARM_Type ALARM
Offset: 0x00 (R/W 32) MODE2_ALARM Alarm n Value.
Definition: rtc.h:1996
RTC_MODE2_SYNCBUSY_Type::GP
uint32_t GP
Definition: rtc.h:1443
RTC_MODE0_COUNT_Type
Definition: rtc.h:1513
RTC_MODE1_INTFLAG_Type::CMP2
__I uint16_t CMP2
Definition: rtc.h:1147
RTC_MODE0_INTENCLR_Type::PER6
uint16_t PER6
Definition: rtc.h:697
RTC_MODE1_INTENCLR_Type::OVF
uint16_t OVF
Definition: rtc.h:767
RTC_MODE1_EVCTRL_Type::TAMPEREO
uint32_t TAMPEREO
Definition: rtc.h:566
RTC_MODE0_CTRLA_Type::SWRST
uint16_t SWRST
Definition: rtc.h:46
RTC_TAMPCTRL_Type::TAMLVL
uint32_t TAMLVL
Definition: rtc.h:1761
RTC_MODE2_EVCTRL_Type::ALARMEO0
uint32_t ALARMEO0
Definition: rtc.h:633
RTC_MODE1_INTENSET_Type::PER2
uint16_t PER2
Definition: rtc.h:947
RTC_GP_Type
Definition: rtc.h:1720
RTC_MODE2_TIMESTAMP_Type::MONTH
uint32_t MONTH
Definition: rtc.h:1901
RTC_MODE1_INTFLAG_Type::PER1
__I uint16_t PER1
Definition: rtc.h:1138
RTC_MODE1_SYNCBUSY_Type::GP1
uint32_t GP1
Definition: rtc.h:1360
RTC_MODE2_SYNCBUSY_Type::MASK0
uint32_t MASK0
Definition: rtc.h:1427
RTC_DBGCTRL_Type
Definition: rtc.h:1265
RTC_MODE1_SYNCBUSY_Type::COMP1
uint32_t COMP1
Definition: rtc.h:1354
RTC_MODE2_SYNCBUSY_Type::MASK
uint32_t MASK
Definition: rtc.h:1441
RTC_MODE2_SYNCBUSY_Type::FREQCORR
uint32_t FREQCORR
Definition: rtc.h:1421
RTC_MODE1_INTFLAG_Type::CMP1
__I uint16_t CMP1
Definition: rtc.h:1146
RTC_MODE0_INTENCLR_Type::PER7
uint16_t PER7
Definition: rtc.h:698
RTC_MODE0_INTENCLR_Type::PER0
uint16_t PER0
Definition: rtc.h:691
RTC_MODE0_EVCTRL_Type::CMPEO0
uint32_t CMPEO0
Definition: rtc.h:495
RTC_MODE2_INTENSET_Type::reg
uint16_t reg
Definition: rtc.h:1032
RTC_MODE2_CTRLA_Type::GPTRST
uint16_t GPTRST
Definition: rtc.h:196
RtcMode1::DBGCTRL
__IO RTC_DBGCTRL_Type DBGCTRL
Offset: 0x0E (R/W 8) Debug Control.
Definition: rtc.h:2039
RTC_MODE2_SYNCBUSY_Type::GP2
uint32_t GP2
Definition: rtc.h:1433
RTC_MODE2_INTFLAG_Type::TAMPER
__I uint16_t TAMPER
Definition: rtc.h:1216
RTC_GP_Type::GP
uint32_t GP
Definition: rtc.h:1722
RTC_MODE0_COMP_Type::reg
uint32_t reg
Definition: rtc.h:1613
RtcMode1::PER
__IO RTC_MODE1_PER_Type PER
Offset: 0x1C (R/W 16) MODE1 Counter Period.
Definition: rtc.h:2046
RTC_MODE2_SYNCBUSY_Type::GP1
uint32_t GP1
Definition: rtc.h:1432
RTC_MODE1_INTENCLR_Type::CMP0
uint16_t CMP0
Definition: rtc.h:761
RTC_MODE0_INTENCLR_Type::OVF
uint16_t OVF
Definition: rtc.h:703
RTC_MODE1_CTRLB_Type
Definition: rtc.h:335
RTC_MODE2_SYNCBUSY_Type::CLOCKSYNC
uint32_t CLOCKSYNC
Definition: rtc.h:1430
RTC_MODE2_TIMESTAMP_Type::YEAR
uint32_t YEAR
Definition: rtc.h:1902
RTC_MODE0_INTFLAG_Type::PER2
__I uint16_t PER2
Definition: rtc.h:1077
RTC_MODE1_CTRLB_Type::RTCOUT
uint16_t RTCOUT
Definition: rtc.h:342
RTC_MODE2_EVCTRL_Type::reg
uint32_t reg
Definition: rtc.h:646
RTC_MODE2_INTENCLR_Type::OVF
uint16_t OVF
Definition: rtc.h:833
RTC_MODE0_INTFLAG_Type::PER1
__I uint16_t PER1
Definition: rtc.h:1076
RTC_MODE1_INTENSET_Type::PER
uint16_t PER
Definition: rtc.h:962
RTC_MODE1_SYNCBUSY_Type::COMP
uint32_t COMP
Definition: rtc.h:1367
RTC_MODE0_COMP_Type::COMP
uint32_t COMP
Definition: rtc.h:1611
RTC_MODE2_INTFLAG_Type::PER5
__I uint16_t PER5
Definition: rtc.h:1210
RTC_MODE2_CTRLA_Type::PRESCALER
uint16_t PRESCALER
Definition: rtc.h:193
RTC_TAMPCTRL_Type::IN2ACT
uint32_t IN2ACT
Definition: rtc.h:1742
RTC_MODE1_INTENCLR_Type::CMP3
uint16_t CMP3
Definition: rtc.h:764
RTC_MODE2_CTRLA_Type::ENABLE
uint16_t ENABLE
Definition: rtc.h:188
RTC_MODE1_SYNCBUSY_Type::PER
uint32_t PER
Definition: rtc.h:1352
RTC_MODE2_CTRLB_Type::reg
uint16_t reg
Definition: rtc.h:424
RTC_MODE1_INTENSET_Type::CMP
uint16_t CMP
Definition: rtc.h:963
RTC_MODE2_TIMESTAMP_Type::DAY
uint32_t DAY
Definition: rtc.h:1900
RTC_MODE2_ALARM_Type::HOUR
uint32_t HOUR
Definition: rtc.h:1649
RTC_MODE1_INTFLAG_Type::CMP3
__I uint16_t CMP3
Definition: rtc.h:1148
RTC_MODE2_INTENCLR_Type::ALARM1
uint16_t ALARM1
Definition: rtc.h:830
RtcMode0::INTENSET
__IO RTC_MODE0_INTENSET_Type INTENSET
Offset: 0x0A (R/W 16) MODE0 Interrupt Enable Set.
Definition: rtc.h:2009
RtcMode1::CTRLB
__IO RTC_MODE1_CTRLB_Type CTRLB
Offset: 0x02 (R/W 16) MODE1 Control B.
Definition: rtc.h:2034
RTC_TAMPCTRL_Type::reg
uint32_t reg
Definition: rtc.h:1766
RTC_MODE2_CTRLB_Type::DEBF
uint16_t DEBF
Definition: rtc.h:419
RTC_MODE2_INTFLAG_Type::ALARM0
__I uint16_t ALARM0
Definition: rtc.h:1213
RtcMode0::CTRLB
__IO RTC_MODE0_CTRLB_Type CTRLB
Offset: 0x02 (R/W 16) MODE0 Control B.
Definition: rtc.h:2006
RtcMode0::FREQCORR
__IO RTC_FREQCORR_Type FREQCORR
Offset: 0x14 (R/W 8) Frequency Correction.
Definition: rtc.h:2014
RTC_MODE2_INTENSET_Type::TAMPER
uint16_t TAMPER
Definition: rtc.h:1024
RTC_MODE1_CTRLB_Type::GP0EN
uint16_t GP0EN
Definition: rtc.h:337
RTC_MODE0_INTENCLR_Type::PER1
uint16_t PER1
Definition: rtc.h:692
RTC_MODE0_INTFLAG_Type::reg
uint16_t reg
Definition: rtc.h:1094
RTC_MODE0_INTFLAG_Type::PER7
__I uint16_t PER7
Definition: rtc.h:1082
RTC_MODE2_EVCTRL_Type
Definition: rtc.h:623
RTC_MODE2_INTENCLR_Type::PER6
uint16_t PER6
Definition: rtc.h:827
RTC_MODE0_CTRLB_Type::reg
uint16_t reg
Definition: rtc.h:274
RTC_MODE0_EVCTRL_Type
Definition: rtc.h:485
RTC_MODE1_EVCTRL_Type::OVFEO
uint32_t OVFEO
Definition: rtc.h:567
RtcMode2::DBGCTRL
__IO RTC_DBGCTRL_Type DBGCTRL
Offset: 0x0E (R/W 8) Debug Control.
Definition: rtc.h:2069
RTC_MODE1_EVCTRL_Type
Definition: rtc.h:551
RtcMode2::TIMESTAMP
__I RTC_MODE2_TIMESTAMP_Type TIMESTAMP
Offset: 0x64 (R/ 32) MODE2 Timestamp.
Definition: rtc.h:2081
RTC_MODE1_INTENCLR_Type::CMP2
uint16_t CMP2
Definition: rtc.h:763
RTC_MODE0_INTENCLR_Type::TAMPER
uint16_t TAMPER
Definition: rtc.h:702
RTC_MODE0_EVCTRL_Type::PEREO0
uint32_t PEREO0
Definition: rtc.h:487
RtcMode2::CTRLB
__IO RTC_MODE2_CTRLB_Type CTRLB
Offset: 0x02 (R/W 16) MODE2 Control B.
Definition: rtc.h:2064
RTC_MODE0_INTENSET_Type::PER6
uint16_t PER6
Definition: rtc.h:889
RTC_MODE1_CTRLA_Type::GPTRST
uint16_t GPTRST
Definition: rtc.h:125
RTC_MODE1_COMP_Type::COMP
uint16_t COMP
Definition: rtc.h:1629
RTC_MODE0_INTFLAG_Type::PER0
__I uint16_t PER0
Definition: rtc.h:1075
RTC_BKUP_Type
Definition: rtc.h:1977
RTC_MODE0_INTENSET_Type
Definition: rtc.h:881
RTC_MODE2_INTENCLR_Type::PER1
uint16_t PER1
Definition: rtc.h:822
RtcMode1::SYNCBUSY
__I RTC_MODE1_SYNCBUSY_Type SYNCBUSY
Offset: 0x10 (R/ 32) MODE1 Synchronization Busy Status.
Definition: rtc.h:2041
RTC_TAMPID_Type::TAMPID
uint32_t TAMPID
Definition: rtc.h:1948
RTC_MODE0_INTENSET_Type::reg
uint16_t reg
Definition: rtc.h:902
RTC_MODE0_INTENCLR_Type::PER5
uint16_t PER5
Definition: rtc.h:696
RTC_MODE1_INTENSET_Type::CMP3
uint16_t CMP3
Definition: rtc.h:956
RTC_MODE0_EVCTRL_Type::PEREO1
uint32_t PEREO1
Definition: rtc.h:488
RTC_MODE2_INTFLAG_Type::ALARM
__I uint16_t ALARM
Definition: rtc.h:1221
RTC_TAMPCTRL_Type::DEBNC0
uint32_t DEBNC0
Definition: rtc.h:1752
RTC_MODE2_INTENCLR_Type::PER2
uint16_t PER2
Definition: rtc.h:823
RtcMode1
RTC_MODE1 hardware registers.
Definition: rtc.h:2032
RTC_MODE0_CTRLB_Type::DEBASYNC
uint16_t DEBASYNC
Definition: rtc.h:266
RTC_MODE1_TIMESTAMP_Type::COUNT
uint32_t COUNT
Definition: rtc.h:1878
RTC_MODE1_SYNCBUSY_Type::GP3
uint32_t GP3
Definition: rtc.h:1362
RTC_MODE1_INTENCLR_Type::PER2
uint16_t PER2
Definition: rtc.h:755
RTC_MODE1_SYNCBUSY_Type::GP2
uint32_t GP2
Definition: rtc.h:1361
RTC_MODE1_INTENSET_Type::reg
uint16_t reg
Definition: rtc.h:966
RTC_MODE1_EVCTRL_Type::CMPEO3
uint32_t CMPEO3
Definition: rtc.h:564
RTC_MODE1_INTENSET_Type::PER7
uint16_t PER7
Definition: rtc.h:952
RTC_MODE2_INTENCLR_Type::PER3
uint16_t PER3
Definition: rtc.h:824
RTC_MODE2_MASK_Type
Definition: rtc.h:1687
RTC_TAMPID_Type::TAMPEVT
uint32_t TAMPEVT
Definition: rtc.h:1945
RTC_MODE1_SYNCBUSY_Type::COMP3
uint32_t COMP3
Definition: rtc.h:1356
RTC_MODE2_SYNCBUSY_Type::GP3
uint32_t GP3
Definition: rtc.h:1434
RTC_MODE0_INTFLAG_Type::PER
__I uint16_t PER
Definition: rtc.h:1090
RTC_MODE1_SYNCBUSY_Type::COMP2
uint32_t COMP2
Definition: rtc.h:1355
RTC_MODE2_INTFLAG_Type::reg
uint16_t reg
Definition: rtc.h:1224
RTC_MODE0_SYNCBUSY_Type::GP1
uint32_t GP1
Definition: rtc.h:1295
RTC_MODE2_INTENSET_Type::PER2
uint16_t PER2
Definition: rtc.h:1015
RtcMode0::INTFLAG
__IO RTC_MODE0_INTFLAG_Type INTFLAG
Offset: 0x0C (R/W 16) MODE0 Interrupt Flag Status and Clear.
Definition: rtc.h:2010
RTC_MODE0_SYNCBUSY_Type::COMP
uint32_t COMP
Definition: rtc.h:1302
RTC_MODE0_INTENCLR_Type::PER4
uint16_t PER4
Definition: rtc.h:695
RtcMode1::TAMPID
__IO RTC_TAMPID_Type TAMPID
Offset: 0x68 (R/W 32) Tamper ID.
Definition: rtc.h:2054
RTC_MODE0_EVCTRL_Type::TAMPEVEI
uint32_t TAMPEVEI
Definition: rtc.h:500
RTC_MODE1_INTFLAG_Type::CMP
__I uint16_t CMP
Definition: rtc.h:1155
RTC_MODE0_INTENSET_Type::CMP0
uint16_t CMP0
Definition: rtc.h:891
RTC_TAMPCTRL_Type::TAMLVL3
uint32_t TAMLVL3
Definition: rtc.h:1749
RTC_MODE0_CTRLB_Type::GP2EN
uint16_t GP2EN
Definition: rtc.h:263
RTC_MODE0_SYNCBUSY_Type::COUNT
uint32_t COUNT
Definition: rtc.h:1288
RTC_MODE0_COUNT_Type::reg
uint32_t reg
Definition: rtc.h:1517
RTC_MODE0_SYNCBUSY_Type::GP
uint32_t GP
Definition: rtc.h:1304
RTC_MODE2_INTENSET_Type::PER1
uint16_t PER1
Definition: rtc.h:1014
RTC_MODE2_TIMESTAMP_Type
Definition: rtc.h:1895
RTC_MODE0_INTENSET_Type::TAMPER
uint16_t TAMPER
Definition: rtc.h:894
RTC_MODE0_INTFLAG_Type::PER6
__I uint16_t PER6
Definition: rtc.h:1081
RTC_MODE0_TIMESTAMP_Type::reg
uint32_t reg
Definition: rtc.h:1862
RTC_MODE2_EVCTRL_Type::ALARMEO
uint32_t ALARMEO
Definition: rtc.h:643
RTC_MODE0_INTENCLR_Type
Definition: rtc.h:689
RTC_MODE0_CTRLB_Type::RTCOUT
uint16_t RTCOUT
Definition: rtc.h:267
RTC_MODE1_CTRLB_Type::DEBASYNC
uint16_t DEBASYNC
Definition: rtc.h:341
RTC_MODE2_ALARM_Type::MINUTE
uint32_t MINUTE
Definition: rtc.h:1648
RTC_MODE0_INTENSET_Type::PER
uint16_t PER
Definition: rtc.h:898
RTC_MODE0_INTFLAG_Type::CMP0
__I uint16_t CMP0
Definition: rtc.h:1083
RtcMode2::TAMPID
__IO RTC_TAMPID_Type TAMPID
Offset: 0x68 (R/W 32) Tamper ID.
Definition: rtc.h:2082
RTC_MODE2_INTENSET_Type::PER6
uint16_t PER6
Definition: rtc.h:1019
RTC_MODE0_CTRLA_Type::BKTRST
uint16_t BKTRST
Definition: rtc.h:53
RTC_TAMPID_Type::TAMPID2
uint32_t TAMPID2
Definition: rtc.h:1941
RTC_MODE1_INTFLAG_Type::PER5
__I uint16_t PER5
Definition: rtc.h:1142
RTC_MODE0_SYNCBUSY_Type::COUNTSYNC
uint32_t COUNTSYNC
Definition: rtc.h:1293
RTC_MODE1_INTFLAG_Type::uint16_t
__I uint16_t
Definition: rtc.h:1149
RTC_MODE0_EVCTRL_Type::PEREO7
uint32_t PEREO7
Definition: rtc.h:494
RTC_MODE1_INTFLAG_Type::OVF
__I uint16_t OVF
Definition: rtc.h:1151
RTC_MODE1_EVCTRL_Type::PEREO2
uint32_t PEREO2
Definition: rtc.h:555
RTC_MODE2_SYNCBUSY_Type::ENABLE
uint32_t ENABLE
Definition: rtc.h:1420
RTC_MODE0_COMP_Type
Definition: rtc.h:1609
RTC_MODE1_INTENSET_Type::CMP2
uint16_t CMP2
Definition: rtc.h:955
RTC_MODE0_SYNCBUSY_Type::GP3
uint32_t GP3
Definition: rtc.h:1297
RTC_MODE2_INTENSET_Type::PER5
uint16_t PER5
Definition: rtc.h:1018
RTC_MODE2_TIMESTAMP_Type::MINUTE
uint32_t MINUTE
Definition: rtc.h:1898
RTC_TAMPCTRL_Type::IN3ACT
uint32_t IN3ACT
Definition: rtc.h:1743
RTC_MODE1_INTFLAG_Type::CMP0
__I uint16_t CMP0
Definition: rtc.h:1145
RTC_TAMPCTRL_Type::TAMLVL1
uint32_t TAMLVL1
Definition: rtc.h:1747
RTC_MODE2_ALARM_Type::MONTH
uint32_t MONTH
Definition: rtc.h:1651
RTC_MODE2_CLOCK_Type::reg
uint32_t reg
Definition: rtc.h:1558
RTC_TAMPID_Type::TAMPID0
uint32_t TAMPID0
Definition: rtc.h:1939
RTC_MODE0_EVCTRL_Type::reg
uint32_t reg
Definition: rtc.h:508
RtcMode2::INTENSET
__IO RTC_MODE2_INTENSET_Type INTENSET
Offset: 0x0A (R/W 16) MODE2 Interrupt Enable Set.
Definition: rtc.h:2067
RTC_MODE1_PER_Type::PER
uint16_t PER
Definition: rtc.h:1593
RTC_MODE2_INTENCLR_Type::ALARM0
uint16_t ALARM0
Definition: rtc.h:829
RTC_MODE1_PER_Type::reg
uint16_t reg
Definition: rtc.h:1595
RTC_MODE2_CTRLB_Type::ACTF
uint16_t ACTF
Definition: rtc.h:421
RTC_MODE2_SYNCBUSY_Type::ALARM
uint32_t ALARM
Definition: rtc.h:1439
RTC_MODE1_INTENSET_Type::PER3
uint16_t PER3
Definition: rtc.h:948
RTC_MODE0_INTFLAG_Type
Definition: rtc.h:1073
RTC_MODE2_SYNCBUSY_Type::MASK1
uint32_t MASK1
Definition: rtc.h:1428
RtcMode2::CLOCK
__IO RTC_MODE2_CLOCK_Type CLOCK
Offset: 0x18 (R/W 32) MODE2 Clock Value.
Definition: rtc.h:2074
RTC_MODE1_INTENCLR_Type::PER1
uint16_t PER1
Definition: rtc.h:754
RTC_MODE2_INTENSET_Type
Definition: rtc.h:1011
RTC_FREQCORR_Type::VALUE
uint8_t VALUE
Definition: rtc.h:1494
RTC_MODE2_CTRLA_Type
Definition: rtc.h:185
RTC_MODE0_CTRLB_Type::ACTF
uint16_t ACTF
Definition: rtc.h:271
RTC_MODE1_INTENCLR_Type::PER3
uint16_t PER3
Definition: rtc.h:756
RTC_MODE0_INTENSET_Type::CMP
uint16_t CMP
Definition: rtc.h:899
RTC_MODE1_SYNCBUSY_Type::COUNT
uint32_t COUNT
Definition: rtc.h:1351
RTC_MODE1_COUNT_Type
Definition: rtc.h:1531
RTC_MODE1_CTRLB_Type::DEBF
uint16_t DEBF
Definition: rtc.h:344
RTC_TAMPID_Type
Definition: rtc.h:1937
RTC_MODE2_TIMESTAMP_Type::SECOND
uint32_t SECOND
Definition: rtc.h:1897
RTC_MODE2_CLOCK_Type::SECOND
uint32_t SECOND
Definition: rtc.h:1551
RTC_MODE2_EVCTRL_Type::TAMPEREO
uint32_t TAMPEREO
Definition: rtc.h:636
RtcMode0::SYNCBUSY
__I RTC_MODE0_SYNCBUSY_Type SYNCBUSY
Offset: 0x10 (R/ 32) MODE0 Synchronization Busy Status.
Definition: rtc.h:2013
RTC_MODE1_EVCTRL_Type::TAMPEVEI
uint32_t TAMPEVEI
Definition: rtc.h:568
RTC_MODE2_CTRLA_Type::CLOCKSYNC
uint16_t CLOCKSYNC
Definition: rtc.h:197
RTC_MODE0_EVCTRL_Type::TAMPEREO
uint32_t TAMPEREO
Definition: rtc.h:498
RTC_MODE0_INTENSET_Type::PER2
uint16_t PER2
Definition: rtc.h:885
RTC_TAMPCTRL_Type::TAMLVL2
uint32_t TAMLVL2
Definition: rtc.h:1748
RTC_MODE0_CTRLA_Type::COUNTSYNC
uint16_t COUNTSYNC
Definition: rtc.h:55
RTC_MODE1_CTRLA_Type::ENABLE
uint16_t ENABLE
Definition: rtc.h:119
RTC_MODE1_INTENSET_Type
Definition: rtc.h:943
RtcMode1::FREQCORR
__IO RTC_FREQCORR_Type FREQCORR
Offset: 0x14 (R/W 8) Frequency Correction.
Definition: rtc.h:2042
RtcMode2::SYNCBUSY
__I RTC_MODE2_SYNCBUSY_Type SYNCBUSY
Offset: 0x10 (R/ 32) MODE2 Synchronization Busy Status.
Definition: rtc.h:2071
Rtc::MODE0
RtcMode0 MODE0
Offset: 0x00 32-bit Counter with Single 32-bit Compare.
Definition: rtc.h:2090
RTC_MODE1_INTFLAG_Type::PER
__I uint16_t PER
Definition: rtc.h:1154
RTC_MODE0_EVCTRL_Type::PEREO4
uint32_t PEREO4
Definition: rtc.h:491
RtcMode2
RTC_MODE2 hardware registers.
Definition: rtc.h:2062
RTC_MODE0_SYNCBUSY_Type::FREQCORR
uint32_t FREQCORR
Definition: rtc.h:1287
RTC_MODE1_CTRLA_Type::PRESCALER
uint16_t PRESCALER
Definition: rtc.h:122
RTC_MODE1_COMP_Type::reg
uint16_t reg
Definition: rtc.h:1631
RTC_TAMPCTRL_Type::DEBNC4
uint32_t DEBNC4
Definition: rtc.h:1756
RTC_DBGCTRL_Type::reg
uint8_t reg
Definition: rtc.h:1270
RTC_MODE0_INTFLAG_Type::TAMPER
__I uint16_t TAMPER
Definition: rtc.h:1086
RTC_MODE1_EVCTRL_Type::PEREO0
uint32_t PEREO0
Definition: rtc.h:553
RTC_MODE2_EVCTRL_Type::PEREO7
uint32_t PEREO7
Definition: rtc.h:632
RtcMode2::FREQCORR
__IO RTC_FREQCORR_Type FREQCORR
Offset: 0x14 (R/W 8) Frequency Correction.
Definition: rtc.h:2072
RTC_MODE0_INTENCLR_Type::PER2
uint16_t PER2
Definition: rtc.h:693
RTC_MODE1_PER_Type
Definition: rtc.h:1591
RTC_GP_Type::reg
uint32_t reg
Definition: rtc.h:1724
RTC_MODE1_INTFLAG_Type::PER0
__I uint16_t PER0
Definition: rtc.h:1137
RTC_MODE2_EVCTRL_Type::PEREO1
uint32_t PEREO1
Definition: rtc.h:626
RTC_MODE2_INTENSET_Type::ALARM0
uint16_t ALARM0
Definition: rtc.h:1021
RTC_MODE2_INTENCLR_Type
Definition: rtc.h:819
RTC_MODE0_INTENCLR_Type::CMP0
uint16_t CMP0
Definition: rtc.h:699
RTC_MODE1_CTRLB_Type::reg
uint16_t reg
Definition: rtc.h:349
RTC_MODE2_EVCTRL_Type::OVFEO
uint32_t OVFEO
Definition: rtc.h:637
RTC_MODE2_CLOCK_Type::DAY
uint32_t DAY
Definition: rtc.h:1554
RTC_MODE0_CTRLA_Type
Definition: rtc.h:44
RTC_MODE2_CTRLB_Type::DMAEN
uint16_t DMAEN
Definition: rtc.h:418
RTC_MODE2_INTFLAG_Type::PER2
__I uint16_t PER2
Definition: rtc.h:1207
RTC_MODE1_INTENSET_Type::PER1
uint16_t PER1
Definition: rtc.h:946
RTC_MODE1_INTENCLR_Type::CMP
uint16_t CMP
Definition: rtc.h:771
RTC_MODE2_CTRLA_Type::MATCHCLR
uint16_t MATCHCLR
Definition: rtc.h:192
RTC_MODE2_INTENSET_Type::PER0
uint16_t PER0
Definition: rtc.h:1013
RTC_TAMPCTRL_Type::TAMLVL0
uint32_t TAMLVL0
Definition: rtc.h:1746
RtcMode2Alarm
RtcMode2Alarm hardware registers.
Definition: rtc.h:1995
RTC_MODE2_INTFLAG_Type::uint16_t
__I uint16_t
Definition: rtc.h:1215
RTC_TAMPID_Type::TAMPID3
uint32_t TAMPID3
Definition: rtc.h:1942
RTC_MODE1_INTENSET_Type::PER4
uint16_t PER4
Definition: rtc.h:949
RTC_MODE2_EVCTRL_Type::PEREO5
uint32_t PEREO5
Definition: rtc.h:630
RTC_MODE2_CTRLA_Type::BKTRST
uint16_t BKTRST
Definition: rtc.h:195
RTC_TAMPCTRL_Type::IN1ACT
uint32_t IN1ACT
Definition: rtc.h:1741
RTC_MODE2_INTFLAG_Type::PER4
__I uint16_t PER4
Definition: rtc.h:1209
RTC_MODE1_INTENCLR_Type
Definition: rtc.h:751
RTC_MODE2_INTFLAG_Type
Definition: rtc.h:1203
RTC_MODE2_EVCTRL_Type::PEREO0
uint32_t PEREO0
Definition: rtc.h:625
RTC_MODE2_INTFLAG_Type::ALARM1
__I uint16_t ALARM1
Definition: rtc.h:1214
RTC_MODE2_SYNCBUSY_Type::SWRST
uint32_t SWRST
Definition: rtc.h:1419
RTC_MODE2_INTENCLR_Type::PER7
uint16_t PER7
Definition: rtc.h:828
RTC_MODE0_INTFLAG_Type::PER4
__I uint16_t PER4
Definition: rtc.h:1079
RTC_MODE0_INTENCLR_Type::PER
uint16_t PER
Definition: rtc.h:706
RTC_MODE2_EVCTRL_Type::TAMPEVEI
uint32_t TAMPEVEI
Definition: rtc.h:638
RTC_MODE0_SYNCBUSY_Type::COMP0
uint32_t COMP0
Definition: rtc.h:1290
RTC_MODE2_ALARM_Type::reg
uint32_t reg
Definition: rtc.h:1654
RTC_MODE2_INTENSET_Type::PER3
uint16_t PER3
Definition: rtc.h:1016
RtcMode2Alarm::MASK
__IO RTC_MODE2_MASK_Type MASK
Offset: 0x04 (R/W 8) MODE2_ALARM Alarm n Mask.
Definition: rtc.h:1997
RTC_MODE0_SYNCBUSY_Type::COMP1
uint32_t COMP1
Definition: rtc.h:1291
RTC_MODE0_EVCTRL_Type::CMPEO1
uint32_t CMPEO1
Definition: rtc.h:496
RTC_MODE2_CLOCK_Type::MONTH
uint32_t MONTH
Definition: rtc.h:1555
RTC_MODE2_ALARM_Type::DAY
uint32_t DAY
Definition: rtc.h:1650
RTC_MODE0_EVCTRL_Type::PEREO6
uint32_t PEREO6
Definition: rtc.h:493
RTC_TAMPCTRL_Type::DEBNC3
uint32_t DEBNC3
Definition: rtc.h:1755
RTC_MODE1_INTENCLR_Type::PER4
uint16_t PER4
Definition: rtc.h:757
RTC_FREQCORR_Type::SIGN
uint8_t SIGN
Definition: rtc.h:1495
RTC_MODE2_INTENCLR_Type::TAMPER
uint16_t TAMPER
Definition: rtc.h:832
RTC_MODE1_INTENSET_Type::PER5
uint16_t PER5
Definition: rtc.h:950
RTC_MODE2_EVCTRL_Type::ALARMEO1
uint32_t ALARMEO1
Definition: rtc.h:634
RTC_MODE1_INTFLAG_Type::reg
uint16_t reg
Definition: rtc.h:1158
RTC_FREQCORR_Type
Definition: rtc.h:1492
RTC_MODE0_SYNCBUSY_Type::reg
uint32_t reg
Definition: rtc.h:1307
RTC_MODE2_INTENCLR_Type::PER
uint16_t PER
Definition: rtc.h:836
RTC_MODE0_INTENSET_Type::PER4
uint16_t PER4
Definition: rtc.h:887
RTC_MODE0_EVCTRL_Type::PEREO
uint32_t PEREO
Definition: rtc.h:504
RTC_MODE2_CTRLB_Type::DEBASYNC
uint16_t DEBASYNC
Definition: rtc.h:416
RTC_MODE1_SYNCBUSY_Type::FREQCORR
uint32_t FREQCORR
Definition: rtc.h:1350
RtcMode0::COUNT
__IO RTC_MODE0_COUNT_Type COUNT
Offset: 0x18 (R/W 32) MODE0 Counter Value.
Definition: rtc.h:2016
RTC_MODE2_INTFLAG_Type::OVF
__I uint16_t OVF
Definition: rtc.h:1217
RTC_MODE0_EVCTRL_Type::CMPEO
uint32_t CMPEO
Definition: rtc.h:505
Rtc::MODE2
RtcMode2 MODE2
Offset: 0x00 Clock/Calendar with Alarm.
Definition: rtc.h:2092
RTC_MODE1_EVCTRL_Type::PEREO7
uint32_t PEREO7
Definition: rtc.h:560
RTC_MODE0_INTFLAG_Type::uint16_t
__I uint16_t
Definition: rtc.h:1085
RTC_MODE0_INTFLAG_Type::CMP1
__I uint16_t CMP1
Definition: rtc.h:1084
RTC_TAMPCTRL_Type::DEBNC2
uint32_t DEBNC2
Definition: rtc.h:1754
RTC_MODE2_INTENSET_Type::PER7
uint16_t PER7
Definition: rtc.h:1020
RTC_MODE0_EVCTRL_Type::OVFEO
uint32_t OVFEO
Definition: rtc.h:499
RtcMode2::INTFLAG
__IO RTC_MODE2_INTFLAG_Type INTFLAG
Offset: 0x0C (R/W 16) MODE2 Interrupt Flag Status and Clear.
Definition: rtc.h:2068
RTC_MODE2_INTFLAG_Type::PER7
__I uint16_t PER7
Definition: rtc.h:1212
RTC_MODE2_INTFLAG_Type::PER1
__I uint16_t PER1
Definition: rtc.h:1206
RTC_MODE2_INTENSET_Type::PER4
uint16_t PER4
Definition: rtc.h:1017
RtcMode1::INTENSET
__IO RTC_MODE1_INTENSET_Type INTENSET
Offset: 0x0A (R/W 16) MODE1 Interrupt Enable Set.
Definition: rtc.h:2037
RTC_MODE1_EVCTRL_Type::CMPEO
uint32_t CMPEO
Definition: rtc.h:573
RTC_MODE2_SYNCBUSY_Type::GP0
uint32_t GP0
Definition: rtc.h:1431
RTC_MODE1_INTENCLR_Type::PER
uint16_t PER
Definition: rtc.h:770
RTC_MODE0_CTRLB_Type::DMAEN
uint16_t DMAEN
Definition: rtc.h:268
RTC_MODE0_INTFLAG_Type::PER5
__I uint16_t PER5
Definition: rtc.h:1080
RTC_MODE2_INTENCLR_Type::PER4
uint16_t PER4
Definition: rtc.h:825
RtcMode0::TIMESTAMP
__I RTC_MODE0_TIMESTAMP_Type TIMESTAMP
Offset: 0x64 (R/ 32) MODE0 Timestamp.
Definition: rtc.h:2023
RtcMode1::EVCTRL
__IO RTC_MODE1_EVCTRL_Type EVCTRL
Offset: 0x04 (R/W 32) MODE1 Event Control.
Definition: rtc.h:2035
RTC_MODE0_CTRLA_Type::PRESCALER
uint16_t PRESCALER
Definition: rtc.h:51
RTC_MODE1_CTRLB_Type::DMAEN
uint16_t DMAEN
Definition: rtc.h:343
RTC_MODE1_SYNCBUSY_Type::COUNTSYNC
uint32_t COUNTSYNC
Definition: rtc.h:1358
RTC_MODE0_INTENSET_Type::PER3
uint16_t PER3
Definition: rtc.h:886
RTC_MODE2_CTRLB_Type::GP0EN
uint16_t GP0EN
Definition: rtc.h:412
RTC_MODE1_EVCTRL_Type::PEREO4
uint32_t PEREO4
Definition: rtc.h:557
RTC_MODE2_MASK_Type::reg
uint8_t reg
Definition: rtc.h:1692
RtcMode1::TIMESTAMP
__I RTC_MODE1_TIMESTAMP_Type TIMESTAMP
Offset: 0x64 (R/ 32) MODE1 Timestamp.
Definition: rtc.h:2053
RTC_MODE2_CLOCK_Type::YEAR
uint32_t YEAR
Definition: rtc.h:1556
RTC_MODE2_ALARM_Type::YEAR
uint32_t YEAR
Definition: rtc.h:1652
RTC_MODE2_INTENSET_Type::OVF
uint16_t OVF
Definition: rtc.h:1025
RTC_MODE0_EVCTRL_Type::PEREO5
uint32_t PEREO5
Definition: rtc.h:492
RTC_MODE1_INTENCLR_Type::PER0
uint16_t PER0
Definition: rtc.h:753
RTC_MODE0_INTENCLR_Type::CMP1
uint16_t CMP1
Definition: rtc.h:700
RoReg8
volatile const uint8_t RoReg8
Definition: same54n19a.h:53
RTC_MODE1_EVCTRL_Type::CMPEO2
uint32_t CMPEO2
Definition: rtc.h:563
RTC_MODE1_INTENSET_Type::PER6
uint16_t PER6
Definition: rtc.h:951
RTC_MODE1_INTFLAG_Type
Definition: rtc.h:1135
RTC_MODE2_ALARM_Type
Definition: rtc.h:1645
RtcMode1::CTRLA
__IO RTC_MODE1_CTRLA_Type CTRLA
Offset: 0x00 (R/W 16) MODE1 Control A.
Definition: rtc.h:2033
RTC_MODE2_CTRLB_Type::GP2EN
uint16_t GP2EN
Definition: rtc.h:413
RTC_MODE1_SYNCBUSY_Type::GP0
uint32_t GP0
Definition: rtc.h:1359
RTC_MODE0_INTENCLR_Type::CMP
uint16_t CMP
Definition: rtc.h:707
RTC_MODE1_INTFLAG_Type::PER3
__I uint16_t PER3
Definition: rtc.h:1140
RTC_MODE2_INTFLAG_Type::PER
__I uint16_t PER
Definition: rtc.h:1220
RTC_MODE2_CTRLB_Type::RTCOUT
uint16_t RTCOUT
Definition: rtc.h:417
RTC_MODE1_EVCTRL_Type::PEREO6
uint32_t PEREO6
Definition: rtc.h:559
RTC_MODE1_EVCTRL_Type::PEREO3
uint32_t PEREO3
Definition: rtc.h:556
RTC_MODE1_INTENCLR_Type::TAMPER
uint16_t TAMPER
Definition: rtc.h:766
RTC_MODE2_EVCTRL_Type::PEREO6
uint32_t PEREO6
Definition: rtc.h:631
RTC_MODE1_CTRLA_Type::COUNTSYNC
uint16_t COUNTSYNC
Definition: rtc.h:126
RtcMode0::EVCTRL
__IO RTC_MODE0_EVCTRL_Type EVCTRL
Offset: 0x04 (R/W 32) MODE0 Event Control.
Definition: rtc.h:2007
RTC_MODE2_CLOCK_Type::HOUR
uint32_t HOUR
Definition: rtc.h:1553
RTC_MODE1_EVCTRL_Type::PEREO1
uint32_t PEREO1
Definition: rtc.h:554
RTC_MODE1_EVCTRL_Type::reg
uint32_t reg
Definition: rtc.h:576
RTC_MODE0_INTENSET_Type::PER5
uint16_t PER5
Definition: rtc.h:888
RTC_MODE0_SYNCBUSY_Type::GP0
uint32_t GP0
Definition: rtc.h:1294
RTC_MODE0_CTRLB_Type::DEBF
uint16_t DEBF
Definition: rtc.h:269
RTC_MODE1_SYNCBUSY_Type::ENABLE
uint32_t ENABLE
Definition: rtc.h:1349
RTC_TAMPID_Type::reg
uint32_t reg
Definition: rtc.h:1951
RTC_MODE2_ALARM_Type::SECOND
uint32_t SECOND
Definition: rtc.h:1647
RTC_MODE2_CTRLB_Type::DEBMAJ
uint16_t DEBMAJ
Definition: rtc.h:415
RTC_MODE2_CTRLB_Type
Definition: rtc.h:410
RTC_MODE1_CTRLA_Type
Definition: rtc.h:116
RTC_MODE1_CTRLA_Type::reg
uint16_t reg
Definition: rtc.h:128
RTC_MODE1_INTENSET_Type::PER0
uint16_t PER0
Definition: rtc.h:945
RTC_MODE2_INTFLAG_Type::PER6
__I uint16_t PER6
Definition: rtc.h:1211
RTC_MODE1_CTRLA_Type::BKTRST
uint16_t BKTRST
Definition: rtc.h:124
RTC_MODE2_CTRLA_Type::SWRST
uint16_t SWRST
Definition: rtc.h:187
RTC_MODE1_INTFLAG_Type::PER7
__I uint16_t PER7
Definition: rtc.h:1144
RTC_BKUP_Type::BKUP
uint32_t BKUP
Definition: rtc.h:1979
RTC_FREQCORR_Type::reg
uint8_t reg
Definition: rtc.h:1497
RtcMode1::TAMPCTRL
__IO RTC_TAMPCTRL_Type TAMPCTRL
Offset: 0x60 (R/W 32) Tamper Control.
Definition: rtc.h:2052
RTC_MODE0_CTRLA_Type::ENABLE
uint16_t ENABLE
Definition: rtc.h:47
RTC_MODE1_TIMESTAMP_Type::reg
uint32_t reg
Definition: rtc.h:1881
RTC_MODE1_COUNT_Type::COUNT
uint16_t COUNT
Definition: rtc.h:1533
RTC_MODE2_INTFLAG_Type::PER3
__I uint16_t PER3
Definition: rtc.h:1208
RTC_MODE2_INTENSET_Type::ALARM1
uint16_t ALARM1
Definition: rtc.h:1022
RTC_MODE0_INTENSET_Type::PER7
uint16_t PER7
Definition: rtc.h:890
RTC_MODE0_INTENCLR_Type::reg
uint16_t reg
Definition: rtc.h:710
RTC_MODE1_INTENCLR_Type::reg
uint16_t reg
Definition: rtc.h:774
RTC_MODE0_INTENCLR_Type::PER3
uint16_t PER3
Definition: rtc.h:694
RTC_MODE1_EVCTRL_Type::PEREO
uint32_t PEREO
Definition: rtc.h:572
RTC_MODE0_EVCTRL_Type::PEREO2
uint32_t PEREO2
Definition: rtc.h:489
RTC_MODE2_INTFLAG_Type::PER0
__I uint16_t PER0
Definition: rtc.h:1205
RTC_MODE2_CLOCK_Type
Definition: rtc.h:1549
RTC_MODE1_INTENSET_Type::CMP0
uint16_t CMP0
Definition: rtc.h:953
RTC_MODE2_INTENCLR_Type::PER5
uint16_t PER5
Definition: rtc.h:826
RTC_MODE0_CTRLA_Type::MATCHCLR
uint16_t MATCHCLR
Definition: rtc.h:50
RTC_MODE1_INTFLAG_Type::PER4
__I uint16_t PER4
Definition: rtc.h:1141
RTC_MODE2_EVCTRL_Type::PEREO2
uint32_t PEREO2
Definition: rtc.h:627
RtcMode0::INTENCLR
__IO RTC_MODE0_INTENCLR_Type INTENCLR
Offset: 0x08 (R/W 16) MODE0 Interrupt Enable Clear.
Definition: rtc.h:2008
RtcMode0::DBGCTRL
__IO RTC_DBGCTRL_Type DBGCTRL
Offset: 0x0E (R/W 8) Debug Control.
Definition: rtc.h:2011
RTC_MODE2_SYNCBUSY_Type::CLOCK
uint32_t CLOCK
Definition: rtc.h:1422
RtcMode2::CTRLA
__IO RTC_MODE2_CTRLA_Type CTRLA
Offset: 0x00 (R/W 16) MODE2 Control A.
Definition: rtc.h:2063
RTC_MODE1_CTRLB_Type::ACTF
uint16_t ACTF
Definition: rtc.h:346
RTC_MODE1_INTENSET_Type::CMP1
uint16_t CMP1
Definition: rtc.h:954
RTC_MODE2_EVCTRL_Type::PEREO
uint32_t PEREO
Definition: rtc.h:642
RTC_BKUP_Type::reg
uint32_t reg
Definition: rtc.h:1981
RTC_MODE0_INTENSET_Type::OVF
uint16_t OVF
Definition: rtc.h:895
RTC_MODE2_INTENSET_Type::PER
uint16_t PER
Definition: rtc.h:1028
RTC_MODE2_MASK_Type::SEL
uint8_t SEL
Definition: rtc.h:1689
RTC_MODE0_CTRLB_Type
Definition: rtc.h:260
RTC_MODE2_SYNCBUSY_Type
Definition: rtc.h:1417
RTC_MODE1_COMP_Type
Definition: rtc.h:1627
RTC_MODE0_SYNCBUSY_Type::ENABLE
uint32_t ENABLE
Definition: rtc.h:1286
RTC_MODE0_INTFLAG_Type::OVF
__I uint16_t OVF
Definition: rtc.h:1087
RTC_MODE0_TIMESTAMP_Type::COUNT
uint32_t COUNT
Definition: rtc.h:1860
RTC_MODE0_INTENSET_Type::PER0
uint16_t PER0
Definition: rtc.h:883
RTC_MODE0_CTRLB_Type::DEBMAJ
uint16_t DEBMAJ
Definition: rtc.h:265
RTC_MODE1_EVCTRL_Type::PEREO5
uint32_t PEREO5
Definition: rtc.h:558
Rtc::MODE1
RtcMode1 MODE1
Offset: 0x00 16-bit Counter with Two 16-bit Compares.
Definition: rtc.h:2091
RTC_MODE2_CLOCK_Type::MINUTE
uint32_t MINUTE
Definition: rtc.h:1552
RTC_MODE1_SYNCBUSY_Type::SWRST
uint32_t SWRST
Definition: rtc.h:1348