SAME54P20A Test Project
supc.h
Go to the documentation of this file.
1 
30 #ifndef _SAME54_SUPC_COMPONENT_
31 #define _SAME54_SUPC_COMPONENT_
32 
33 /* ========================================================================== */
35 /* ========================================================================== */
38 
39 #define SUPC_U2407
40 #define REV_SUPC 0x110
41 
42 /* -------- SUPC_INTENCLR : (SUPC Offset: 0x00) (R/W 32) Interrupt Enable Clear -------- */
43 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
44 typedef union {
45  struct {
46  uint32_t BOD33RDY:1;
47  uint32_t BOD33DET:1;
48  uint32_t B33SRDY:1;
49  uint32_t :5;
50  uint32_t VREGRDY:1;
51  uint32_t :1;
52  uint32_t VCORERDY:1;
53  uint32_t :21;
54  } bit;
55  uint32_t reg;
57 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
58 
59 #define SUPC_INTENCLR_OFFSET 0x00
60 #define SUPC_INTENCLR_RESETVALUE _U_(0x00000000)
62 #define SUPC_INTENCLR_BOD33RDY_Pos 0
63 #define SUPC_INTENCLR_BOD33RDY (_U_(0x1) << SUPC_INTENCLR_BOD33RDY_Pos)
64 #define SUPC_INTENCLR_BOD33DET_Pos 1
65 #define SUPC_INTENCLR_BOD33DET (_U_(0x1) << SUPC_INTENCLR_BOD33DET_Pos)
66 #define SUPC_INTENCLR_B33SRDY_Pos 2
67 #define SUPC_INTENCLR_B33SRDY (_U_(0x1) << SUPC_INTENCLR_B33SRDY_Pos)
68 #define SUPC_INTENCLR_VREGRDY_Pos 8
69 #define SUPC_INTENCLR_VREGRDY (_U_(0x1) << SUPC_INTENCLR_VREGRDY_Pos)
70 #define SUPC_INTENCLR_VCORERDY_Pos 10
71 #define SUPC_INTENCLR_VCORERDY (_U_(0x1) << SUPC_INTENCLR_VCORERDY_Pos)
72 #define SUPC_INTENCLR_MASK _U_(0x00000507)
74 /* -------- SUPC_INTENSET : (SUPC Offset: 0x04) (R/W 32) Interrupt Enable Set -------- */
75 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
76 typedef union {
77  struct {
78  uint32_t BOD33RDY:1;
79  uint32_t BOD33DET:1;
80  uint32_t B33SRDY:1;
81  uint32_t :5;
82  uint32_t VREGRDY:1;
83  uint32_t :1;
84  uint32_t VCORERDY:1;
85  uint32_t :21;
86  } bit;
87  uint32_t reg;
89 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
90 
91 #define SUPC_INTENSET_OFFSET 0x04
92 #define SUPC_INTENSET_RESETVALUE _U_(0x00000000)
94 #define SUPC_INTENSET_BOD33RDY_Pos 0
95 #define SUPC_INTENSET_BOD33RDY (_U_(0x1) << SUPC_INTENSET_BOD33RDY_Pos)
96 #define SUPC_INTENSET_BOD33DET_Pos 1
97 #define SUPC_INTENSET_BOD33DET (_U_(0x1) << SUPC_INTENSET_BOD33DET_Pos)
98 #define SUPC_INTENSET_B33SRDY_Pos 2
99 #define SUPC_INTENSET_B33SRDY (_U_(0x1) << SUPC_INTENSET_B33SRDY_Pos)
100 #define SUPC_INTENSET_VREGRDY_Pos 8
101 #define SUPC_INTENSET_VREGRDY (_U_(0x1) << SUPC_INTENSET_VREGRDY_Pos)
102 #define SUPC_INTENSET_VCORERDY_Pos 10
103 #define SUPC_INTENSET_VCORERDY (_U_(0x1) << SUPC_INTENSET_VCORERDY_Pos)
104 #define SUPC_INTENSET_MASK _U_(0x00000507)
106 /* -------- SUPC_INTFLAG : (SUPC Offset: 0x08) (R/W 32) Interrupt Flag Status and Clear -------- */
107 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
108 typedef union { // __I to avoid read-modify-write on write-to-clear register
109  struct {
110  __I uint32_t BOD33RDY:1;
111  __I uint32_t BOD33DET:1;
112  __I uint32_t B33SRDY:1;
113  __I uint32_t :5;
114  __I uint32_t VREGRDY:1;
115  __I uint32_t :1;
116  __I uint32_t VCORERDY:1;
117  __I uint32_t :21;
118  } bit;
119  uint32_t reg;
121 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
122 
123 #define SUPC_INTFLAG_OFFSET 0x08
124 #define SUPC_INTFLAG_RESETVALUE _U_(0x00000000)
126 #define SUPC_INTFLAG_BOD33RDY_Pos 0
127 #define SUPC_INTFLAG_BOD33RDY (_U_(0x1) << SUPC_INTFLAG_BOD33RDY_Pos)
128 #define SUPC_INTFLAG_BOD33DET_Pos 1
129 #define SUPC_INTFLAG_BOD33DET (_U_(0x1) << SUPC_INTFLAG_BOD33DET_Pos)
130 #define SUPC_INTFLAG_B33SRDY_Pos 2
131 #define SUPC_INTFLAG_B33SRDY (_U_(0x1) << SUPC_INTFLAG_B33SRDY_Pos)
132 #define SUPC_INTFLAG_VREGRDY_Pos 8
133 #define SUPC_INTFLAG_VREGRDY (_U_(0x1) << SUPC_INTFLAG_VREGRDY_Pos)
134 #define SUPC_INTFLAG_VCORERDY_Pos 10
135 #define SUPC_INTFLAG_VCORERDY (_U_(0x1) << SUPC_INTFLAG_VCORERDY_Pos)
136 #define SUPC_INTFLAG_MASK _U_(0x00000507)
138 /* -------- SUPC_STATUS : (SUPC Offset: 0x0C) (R/ 32) Power and Clocks Status -------- */
139 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
140 typedef union {
141  struct {
142  uint32_t BOD33RDY:1;
143  uint32_t BOD33DET:1;
144  uint32_t B33SRDY:1;
145  uint32_t :5;
146  uint32_t VREGRDY:1;
147  uint32_t :1;
148  uint32_t VCORERDY:1;
149  uint32_t :21;
150  } bit;
151  uint32_t reg;
153 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
154 
155 #define SUPC_STATUS_OFFSET 0x0C
156 #define SUPC_STATUS_RESETVALUE _U_(0x00000000)
158 #define SUPC_STATUS_BOD33RDY_Pos 0
159 #define SUPC_STATUS_BOD33RDY (_U_(0x1) << SUPC_STATUS_BOD33RDY_Pos)
160 #define SUPC_STATUS_BOD33DET_Pos 1
161 #define SUPC_STATUS_BOD33DET (_U_(0x1) << SUPC_STATUS_BOD33DET_Pos)
162 #define SUPC_STATUS_B33SRDY_Pos 2
163 #define SUPC_STATUS_B33SRDY (_U_(0x1) << SUPC_STATUS_B33SRDY_Pos)
164 #define SUPC_STATUS_VREGRDY_Pos 8
165 #define SUPC_STATUS_VREGRDY (_U_(0x1) << SUPC_STATUS_VREGRDY_Pos)
166 #define SUPC_STATUS_VCORERDY_Pos 10
167 #define SUPC_STATUS_VCORERDY (_U_(0x1) << SUPC_STATUS_VCORERDY_Pos)
168 #define SUPC_STATUS_MASK _U_(0x00000507)
170 /* -------- SUPC_BOD33 : (SUPC Offset: 0x10) (R/W 32) BOD33 Control -------- */
171 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
172 typedef union {
173  struct {
174  uint32_t :1;
175  uint32_t ENABLE:1;
176  uint32_t ACTION:2;
177  uint32_t STDBYCFG:1;
178  uint32_t RUNSTDBY:1;
179  uint32_t RUNHIB:1;
180  uint32_t RUNBKUP:1;
181  uint32_t HYST:4;
182  uint32_t PSEL:3;
183  uint32_t :1;
184  uint32_t LEVEL:8;
185  uint32_t VBATLEVEL:8;
186  } bit;
187  uint32_t reg;
189 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
190 
191 #define SUPC_BOD33_OFFSET 0x10
192 #define SUPC_BOD33_RESETVALUE _U_(0x00000000)
194 #define SUPC_BOD33_ENABLE_Pos 1
195 #define SUPC_BOD33_ENABLE (_U_(0x1) << SUPC_BOD33_ENABLE_Pos)
196 #define SUPC_BOD33_ACTION_Pos 2
197 #define SUPC_BOD33_ACTION_Msk (_U_(0x3) << SUPC_BOD33_ACTION_Pos)
198 #define SUPC_BOD33_ACTION(value) (SUPC_BOD33_ACTION_Msk & ((value) << SUPC_BOD33_ACTION_Pos))
199 #define SUPC_BOD33_ACTION_NONE_Val _U_(0x0)
200 #define SUPC_BOD33_ACTION_RESET_Val _U_(0x1)
201 #define SUPC_BOD33_ACTION_INT_Val _U_(0x2)
202 #define SUPC_BOD33_ACTION_BKUP_Val _U_(0x3)
203 #define SUPC_BOD33_ACTION_NONE (SUPC_BOD33_ACTION_NONE_Val << SUPC_BOD33_ACTION_Pos)
204 #define SUPC_BOD33_ACTION_RESET (SUPC_BOD33_ACTION_RESET_Val << SUPC_BOD33_ACTION_Pos)
205 #define SUPC_BOD33_ACTION_INT (SUPC_BOD33_ACTION_INT_Val << SUPC_BOD33_ACTION_Pos)
206 #define SUPC_BOD33_ACTION_BKUP (SUPC_BOD33_ACTION_BKUP_Val << SUPC_BOD33_ACTION_Pos)
207 #define SUPC_BOD33_STDBYCFG_Pos 4
208 #define SUPC_BOD33_STDBYCFG (_U_(0x1) << SUPC_BOD33_STDBYCFG_Pos)
209 #define SUPC_BOD33_RUNSTDBY_Pos 5
210 #define SUPC_BOD33_RUNSTDBY (_U_(0x1) << SUPC_BOD33_RUNSTDBY_Pos)
211 #define SUPC_BOD33_RUNHIB_Pos 6
212 #define SUPC_BOD33_RUNHIB (_U_(0x1) << SUPC_BOD33_RUNHIB_Pos)
213 #define SUPC_BOD33_RUNBKUP_Pos 7
214 #define SUPC_BOD33_RUNBKUP (_U_(0x1) << SUPC_BOD33_RUNBKUP_Pos)
215 #define SUPC_BOD33_HYST_Pos 8
216 #define SUPC_BOD33_HYST_Msk (_U_(0xF) << SUPC_BOD33_HYST_Pos)
217 #define SUPC_BOD33_HYST(value) (SUPC_BOD33_HYST_Msk & ((value) << SUPC_BOD33_HYST_Pos))
218 #define SUPC_BOD33_PSEL_Pos 12
219 #define SUPC_BOD33_PSEL_Msk (_U_(0x7) << SUPC_BOD33_PSEL_Pos)
220 #define SUPC_BOD33_PSEL(value) (SUPC_BOD33_PSEL_Msk & ((value) << SUPC_BOD33_PSEL_Pos))
221 #define SUPC_BOD33_PSEL_NODIV_Val _U_(0x0)
222 #define SUPC_BOD33_PSEL_DIV4_Val _U_(0x1)
223 #define SUPC_BOD33_PSEL_DIV8_Val _U_(0x2)
224 #define SUPC_BOD33_PSEL_DIV16_Val _U_(0x3)
225 #define SUPC_BOD33_PSEL_DIV32_Val _U_(0x4)
226 #define SUPC_BOD33_PSEL_DIV64_Val _U_(0x5)
227 #define SUPC_BOD33_PSEL_DIV128_Val _U_(0x6)
228 #define SUPC_BOD33_PSEL_DIV256_Val _U_(0x7)
229 #define SUPC_BOD33_PSEL_NODIV (SUPC_BOD33_PSEL_NODIV_Val << SUPC_BOD33_PSEL_Pos)
230 #define SUPC_BOD33_PSEL_DIV4 (SUPC_BOD33_PSEL_DIV4_Val << SUPC_BOD33_PSEL_Pos)
231 #define SUPC_BOD33_PSEL_DIV8 (SUPC_BOD33_PSEL_DIV8_Val << SUPC_BOD33_PSEL_Pos)
232 #define SUPC_BOD33_PSEL_DIV16 (SUPC_BOD33_PSEL_DIV16_Val << SUPC_BOD33_PSEL_Pos)
233 #define SUPC_BOD33_PSEL_DIV32 (SUPC_BOD33_PSEL_DIV32_Val << SUPC_BOD33_PSEL_Pos)
234 #define SUPC_BOD33_PSEL_DIV64 (SUPC_BOD33_PSEL_DIV64_Val << SUPC_BOD33_PSEL_Pos)
235 #define SUPC_BOD33_PSEL_DIV128 (SUPC_BOD33_PSEL_DIV128_Val << SUPC_BOD33_PSEL_Pos)
236 #define SUPC_BOD33_PSEL_DIV256 (SUPC_BOD33_PSEL_DIV256_Val << SUPC_BOD33_PSEL_Pos)
237 #define SUPC_BOD33_LEVEL_Pos 16
238 #define SUPC_BOD33_LEVEL_Msk (_U_(0xFF) << SUPC_BOD33_LEVEL_Pos)
239 #define SUPC_BOD33_LEVEL(value) (SUPC_BOD33_LEVEL_Msk & ((value) << SUPC_BOD33_LEVEL_Pos))
240 #define SUPC_BOD33_VBATLEVEL_Pos 24
241 #define SUPC_BOD33_VBATLEVEL_Msk (_U_(0xFF) << SUPC_BOD33_VBATLEVEL_Pos)
242 #define SUPC_BOD33_VBATLEVEL(value) (SUPC_BOD33_VBATLEVEL_Msk & ((value) << SUPC_BOD33_VBATLEVEL_Pos))
243 #define SUPC_BOD33_MASK _U_(0xFFFF7FFE)
245 /* -------- SUPC_VREG : (SUPC Offset: 0x18) (R/W 32) VREG Control -------- */
246 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
247 typedef union {
248  struct {
249  uint32_t :1;
250  uint32_t ENABLE:1;
251  uint32_t SEL:1;
252  uint32_t :4;
253  uint32_t RUNBKUP:1;
254  uint32_t :8;
255  uint32_t VSEN:1;
256  uint32_t :7;
257  uint32_t VSPER:3;
258  uint32_t :5;
259  } bit;
260  uint32_t reg;
262 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
263 
264 #define SUPC_VREG_OFFSET 0x18
265 #define SUPC_VREG_RESETVALUE _U_(0x00000002)
267 #define SUPC_VREG_ENABLE_Pos 1
268 #define SUPC_VREG_ENABLE (_U_(0x1) << SUPC_VREG_ENABLE_Pos)
269 #define SUPC_VREG_SEL_Pos 2
270 #define SUPC_VREG_SEL (_U_(0x1) << SUPC_VREG_SEL_Pos)
271 #define SUPC_VREG_SEL_LDO_Val _U_(0x0)
272 #define SUPC_VREG_SEL_BUCK_Val _U_(0x1)
273 #define SUPC_VREG_SEL_LDO (SUPC_VREG_SEL_LDO_Val << SUPC_VREG_SEL_Pos)
274 #define SUPC_VREG_SEL_BUCK (SUPC_VREG_SEL_BUCK_Val << SUPC_VREG_SEL_Pos)
275 #define SUPC_VREG_RUNBKUP_Pos 7
276 #define SUPC_VREG_RUNBKUP (_U_(0x1) << SUPC_VREG_RUNBKUP_Pos)
277 #define SUPC_VREG_VSEN_Pos 16
278 #define SUPC_VREG_VSEN (_U_(0x1) << SUPC_VREG_VSEN_Pos)
279 #define SUPC_VREG_VSPER_Pos 24
280 #define SUPC_VREG_VSPER_Msk (_U_(0x7) << SUPC_VREG_VSPER_Pos)
281 #define SUPC_VREG_VSPER(value) (SUPC_VREG_VSPER_Msk & ((value) << SUPC_VREG_VSPER_Pos))
282 #define SUPC_VREG_MASK _U_(0x07010086)
284 /* -------- SUPC_VREF : (SUPC Offset: 0x1C) (R/W 32) VREF Control -------- */
285 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
286 typedef union {
287  struct {
288  uint32_t :1;
289  uint32_t TSEN:1;
290  uint32_t VREFOE:1;
291  uint32_t TSSEL:1;
292  uint32_t :2;
293  uint32_t RUNSTDBY:1;
294  uint32_t ONDEMAND:1;
295  uint32_t :8;
296  uint32_t SEL:4;
297  uint32_t :12;
298  } bit;
299  uint32_t reg;
301 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
302 
303 #define SUPC_VREF_OFFSET 0x1C
304 #define SUPC_VREF_RESETVALUE _U_(0x00000000)
306 #define SUPC_VREF_TSEN_Pos 1
307 #define SUPC_VREF_TSEN (_U_(0x1) << SUPC_VREF_TSEN_Pos)
308 #define SUPC_VREF_VREFOE_Pos 2
309 #define SUPC_VREF_VREFOE (_U_(0x1) << SUPC_VREF_VREFOE_Pos)
310 #define SUPC_VREF_TSSEL_Pos 3
311 #define SUPC_VREF_TSSEL (_U_(0x1) << SUPC_VREF_TSSEL_Pos)
312 #define SUPC_VREF_RUNSTDBY_Pos 6
313 #define SUPC_VREF_RUNSTDBY (_U_(0x1) << SUPC_VREF_RUNSTDBY_Pos)
314 #define SUPC_VREF_ONDEMAND_Pos 7
315 #define SUPC_VREF_ONDEMAND (_U_(0x1) << SUPC_VREF_ONDEMAND_Pos)
316 #define SUPC_VREF_SEL_Pos 16
317 #define SUPC_VREF_SEL_Msk (_U_(0xF) << SUPC_VREF_SEL_Pos)
318 #define SUPC_VREF_SEL(value) (SUPC_VREF_SEL_Msk & ((value) << SUPC_VREF_SEL_Pos))
319 #define SUPC_VREF_SEL_1V0_Val _U_(0x0)
320 #define SUPC_VREF_SEL_1V1_Val _U_(0x1)
321 #define SUPC_VREF_SEL_1V2_Val _U_(0x2)
322 #define SUPC_VREF_SEL_1V25_Val _U_(0x3)
323 #define SUPC_VREF_SEL_2V0_Val _U_(0x4)
324 #define SUPC_VREF_SEL_2V2_Val _U_(0x5)
325 #define SUPC_VREF_SEL_2V4_Val _U_(0x6)
326 #define SUPC_VREF_SEL_2V5_Val _U_(0x7)
327 #define SUPC_VREF_SEL_1V0 (SUPC_VREF_SEL_1V0_Val << SUPC_VREF_SEL_Pos)
328 #define SUPC_VREF_SEL_1V1 (SUPC_VREF_SEL_1V1_Val << SUPC_VREF_SEL_Pos)
329 #define SUPC_VREF_SEL_1V2 (SUPC_VREF_SEL_1V2_Val << SUPC_VREF_SEL_Pos)
330 #define SUPC_VREF_SEL_1V25 (SUPC_VREF_SEL_1V25_Val << SUPC_VREF_SEL_Pos)
331 #define SUPC_VREF_SEL_2V0 (SUPC_VREF_SEL_2V0_Val << SUPC_VREF_SEL_Pos)
332 #define SUPC_VREF_SEL_2V2 (SUPC_VREF_SEL_2V2_Val << SUPC_VREF_SEL_Pos)
333 #define SUPC_VREF_SEL_2V4 (SUPC_VREF_SEL_2V4_Val << SUPC_VREF_SEL_Pos)
334 #define SUPC_VREF_SEL_2V5 (SUPC_VREF_SEL_2V5_Val << SUPC_VREF_SEL_Pos)
335 #define SUPC_VREF_MASK _U_(0x000F00CE)
337 /* -------- SUPC_BBPS : (SUPC Offset: 0x20) (R/W 32) Battery Backup Power Switch -------- */
338 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
339 typedef union {
340  struct {
341  uint32_t CONF:1;
342  uint32_t :1;
343  uint32_t WAKEEN:1;
344  uint32_t :29;
345  } bit;
346  uint32_t reg;
348 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
349 
350 #define SUPC_BBPS_OFFSET 0x20
351 #define SUPC_BBPS_RESETVALUE _U_(0x00000000)
353 #define SUPC_BBPS_CONF_Pos 0
354 #define SUPC_BBPS_CONF (_U_(0x1) << SUPC_BBPS_CONF_Pos)
355 #define SUPC_BBPS_CONF_BOD33_Val _U_(0x0)
356 #define SUPC_BBPS_CONF_FORCED_Val _U_(0x1)
357 #define SUPC_BBPS_CONF_BOD33 (SUPC_BBPS_CONF_BOD33_Val << SUPC_BBPS_CONF_Pos)
358 #define SUPC_BBPS_CONF_FORCED (SUPC_BBPS_CONF_FORCED_Val << SUPC_BBPS_CONF_Pos)
359 #define SUPC_BBPS_WAKEEN_Pos 2
360 #define SUPC_BBPS_WAKEEN (_U_(0x1) << SUPC_BBPS_WAKEEN_Pos)
361 #define SUPC_BBPS_MASK _U_(0x00000005)
363 /* -------- SUPC_BKOUT : (SUPC Offset: 0x24) (R/W 32) Backup Output Control -------- */
364 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
365 typedef union {
366  struct {
367  uint32_t EN:2;
368  uint32_t :6;
369  uint32_t CLR:2;
370  uint32_t :6;
371  uint32_t SET:2;
372  uint32_t :6;
373  uint32_t RTCTGL:2;
374  uint32_t :6;
375  } bit;
376  uint32_t reg;
378 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
379 
380 #define SUPC_BKOUT_OFFSET 0x24
381 #define SUPC_BKOUT_RESETVALUE _U_(0x00000000)
383 #define SUPC_BKOUT_EN_Pos 0
384 #define SUPC_BKOUT_EN_Msk (_U_(0x3) << SUPC_BKOUT_EN_Pos)
385 #define SUPC_BKOUT_EN(value) (SUPC_BKOUT_EN_Msk & ((value) << SUPC_BKOUT_EN_Pos))
386 #define SUPC_BKOUT_CLR_Pos 8
387 #define SUPC_BKOUT_CLR_Msk (_U_(0x3) << SUPC_BKOUT_CLR_Pos)
388 #define SUPC_BKOUT_CLR(value) (SUPC_BKOUT_CLR_Msk & ((value) << SUPC_BKOUT_CLR_Pos))
389 #define SUPC_BKOUT_SET_Pos 16
390 #define SUPC_BKOUT_SET_Msk (_U_(0x3) << SUPC_BKOUT_SET_Pos)
391 #define SUPC_BKOUT_SET(value) (SUPC_BKOUT_SET_Msk & ((value) << SUPC_BKOUT_SET_Pos))
392 #define SUPC_BKOUT_RTCTGL_Pos 24
393 #define SUPC_BKOUT_RTCTGL_Msk (_U_(0x3) << SUPC_BKOUT_RTCTGL_Pos)
394 #define SUPC_BKOUT_RTCTGL(value) (SUPC_BKOUT_RTCTGL_Msk & ((value) << SUPC_BKOUT_RTCTGL_Pos))
395 #define SUPC_BKOUT_MASK _U_(0x03030303)
397 /* -------- SUPC_BKIN : (SUPC Offset: 0x28) (R/ 32) Backup Input Control -------- */
398 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
399 typedef union {
400  struct {
401  uint32_t BKIN:8;
402  uint32_t :24;
403  } bit;
404  uint32_t reg;
406 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
407 
408 #define SUPC_BKIN_OFFSET 0x28
409 #define SUPC_BKIN_RESETVALUE _U_(0x00000000)
411 #define SUPC_BKIN_BKIN_Pos 0
412 #define SUPC_BKIN_BKIN_Msk (_U_(0xFF) << SUPC_BKIN_BKIN_Pos)
413 #define SUPC_BKIN_BKIN(value) (SUPC_BKIN_BKIN_Msk & ((value) << SUPC_BKIN_BKIN_Pos))
414 #define SUPC_BKIN_MASK _U_(0x000000FF)
417 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
418 typedef struct {
424  RoReg8 Reserved1[0x4];
430 } Supc;
431 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
432 
435 #endif /* _SAME54_SUPC_COMPONENT_ */
SUPC_INTENSET_Type::VCORERDY
uint32_t VCORERDY
Definition: supc.h:84
SUPC_INTENCLR_Type::reg
uint32_t reg
Definition: supc.h:55
SUPC_INTENSET_Type::reg
uint32_t reg
Definition: supc.h:87
Supc::BOD33
__IO SUPC_BOD33_Type BOD33
Offset: 0x10 (R/W 32) BOD33 Control.
Definition: supc.h:423
SUPC_VREF_Type
Definition: supc.h:286
SUPC_BOD33_Type::RUNHIB
uint32_t RUNHIB
Definition: supc.h:179
SUPC_STATUS_Type::B33SRDY
uint32_t B33SRDY
Definition: supc.h:144
SUPC_BKOUT_Type::SET
uint32_t SET
Definition: supc.h:371
Supc::INTENSET
__IO SUPC_INTENSET_Type INTENSET
Offset: 0x04 (R/W 32) Interrupt Enable Set.
Definition: supc.h:420
SUPC_INTENCLR_Type::VCORERDY
uint32_t VCORERDY
Definition: supc.h:52
SUPC_VREG_Type::VSEN
uint32_t VSEN
Definition: supc.h:255
SUPC_BOD33_Type::PSEL
uint32_t PSEL
Definition: supc.h:182
SUPC_BOD33_Type::RUNSTDBY
uint32_t RUNSTDBY
Definition: supc.h:178
SUPC_INTFLAG_Type
Definition: supc.h:108
SUPC_VREG_Type::SEL
uint32_t SEL
Definition: supc.h:251
SUPC_BOD33_Type::LEVEL
uint32_t LEVEL
Definition: supc.h:184
SUPC_BKOUT_Type
Definition: supc.h:365
SUPC_INTFLAG_Type::VCORERDY
__I uint32_t VCORERDY
Definition: supc.h:116
SUPC_BOD33_Type::ENABLE
uint32_t ENABLE
Definition: supc.h:175
SUPC_BKIN_Type
Definition: supc.h:399
SUPC_INTFLAG_Type::uint32_t
__I uint32_t
Definition: supc.h:113
Supc::BKIN
__I SUPC_BKIN_Type BKIN
Offset: 0x28 (R/ 32) Backup Input Control.
Definition: supc.h:429
SUPC_BKOUT_Type::reg
uint32_t reg
Definition: supc.h:376
Supc::STATUS
__I SUPC_STATUS_Type STATUS
Offset: 0x0C (R/ 32) Power and Clocks Status.
Definition: supc.h:422
Supc::VREG
__IO SUPC_VREG_Type VREG
Offset: 0x18 (R/W 32) VREG Control.
Definition: supc.h:425
SUPC_VREF_Type::ONDEMAND
uint32_t ONDEMAND
Definition: supc.h:294
SUPC_BKIN_Type::reg
uint32_t reg
Definition: supc.h:404
Supc
SUPC hardware registers.
Definition: supc.h:418
SUPC_VREG_Type::RUNBKUP
uint32_t RUNBKUP
Definition: supc.h:253
SUPC_VREG_Type::reg
uint32_t reg
Definition: supc.h:260
SUPC_VREF_Type::TSEN
uint32_t TSEN
Definition: supc.h:289
SUPC_BOD33_Type::VBATLEVEL
uint32_t VBATLEVEL
Definition: supc.h:185
SUPC_VREF_Type::reg
uint32_t reg
Definition: supc.h:299
SUPC_STATUS_Type::BOD33RDY
uint32_t BOD33RDY
Definition: supc.h:142
SUPC_BOD33_Type::RUNBKUP
uint32_t RUNBKUP
Definition: supc.h:180
SUPC_VREG_Type::ENABLE
uint32_t ENABLE
Definition: supc.h:250
SUPC_VREG_Type
Definition: supc.h:247
SUPC_VREF_Type::RUNSTDBY
uint32_t RUNSTDBY
Definition: supc.h:293
SUPC_INTENCLR_Type::VREGRDY
uint32_t VREGRDY
Definition: supc.h:50
SUPC_BBPS_Type::CONF
uint32_t CONF
Definition: supc.h:341
SUPC_BKIN_Type::BKIN
uint32_t BKIN
Definition: supc.h:401
SUPC_BKOUT_Type::CLR
uint32_t CLR
Definition: supc.h:369
Supc::VREF
__IO SUPC_VREF_Type VREF
Offset: 0x1C (R/W 32) VREF Control.
Definition: supc.h:426
SUPC_INTFLAG_Type::BOD33RDY
__I uint32_t BOD33RDY
Definition: supc.h:110
SUPC_BOD33_Type::STDBYCFG
uint32_t STDBYCFG
Definition: supc.h:177
SUPC_INTENCLR_Type::BOD33RDY
uint32_t BOD33RDY
Definition: supc.h:46
SUPC_BOD33_Type::ACTION
uint32_t ACTION
Definition: supc.h:176
SUPC_BBPS_Type::reg
uint32_t reg
Definition: supc.h:346
SUPC_INTENSET_Type::BOD33DET
uint32_t BOD33DET
Definition: supc.h:79
Supc::INTFLAG
__IO SUPC_INTFLAG_Type INTFLAG
Offset: 0x08 (R/W 32) Interrupt Flag Status and Clear.
Definition: supc.h:421
SUPC_BKOUT_Type::EN
uint32_t EN
Definition: supc.h:367
SUPC_INTFLAG_Type::reg
uint32_t reg
Definition: supc.h:119
SUPC_STATUS_Type
Definition: supc.h:140
Supc::BBPS
__IO SUPC_BBPS_Type BBPS
Offset: 0x20 (R/W 32) Battery Backup Power Switch.
Definition: supc.h:427
SUPC_INTFLAG_Type::B33SRDY
__I uint32_t B33SRDY
Definition: supc.h:112
SUPC_INTENSET_Type
Definition: supc.h:76
SUPC_BBPS_Type::WAKEEN
uint32_t WAKEEN
Definition: supc.h:343
SUPC_INTENSET_Type::B33SRDY
uint32_t B33SRDY
Definition: supc.h:80
SUPC_BOD33_Type::reg
uint32_t reg
Definition: supc.h:187
SUPC_BBPS_Type
Definition: supc.h:339
SUPC_BKOUT_Type::RTCTGL
uint32_t RTCTGL
Definition: supc.h:373
SUPC_VREF_Type::VREFOE
uint32_t VREFOE
Definition: supc.h:290
Supc::INTENCLR
__IO SUPC_INTENCLR_Type INTENCLR
Offset: 0x00 (R/W 32) Interrupt Enable Clear.
Definition: supc.h:419
SUPC_VREG_Type::VSPER
uint32_t VSPER
Definition: supc.h:257
SUPC_BOD33_Type
Definition: supc.h:172
SUPC_STATUS_Type::VCORERDY
uint32_t VCORERDY
Definition: supc.h:148
SUPC_INTENCLR_Type::B33SRDY
uint32_t B33SRDY
Definition: supc.h:48
SUPC_INTFLAG_Type::BOD33DET
__I uint32_t BOD33DET
Definition: supc.h:111
SUPC_STATUS_Type::VREGRDY
uint32_t VREGRDY
Definition: supc.h:146
SUPC_STATUS_Type::reg
uint32_t reg
Definition: supc.h:151
RoReg8
volatile const uint8_t RoReg8
Definition: same54n19a.h:53
SUPC_INTENSET_Type::VREGRDY
uint32_t VREGRDY
Definition: supc.h:82
SUPC_INTFLAG_Type::VREGRDY
__I uint32_t VREGRDY
Definition: supc.h:114
SUPC_BOD33_Type::HYST
uint32_t HYST
Definition: supc.h:181
Supc::BKOUT
__IO SUPC_BKOUT_Type BKOUT
Offset: 0x24 (R/W 32) Backup Output Control.
Definition: supc.h:428
SUPC_VREF_Type::SEL
uint32_t SEL
Definition: supc.h:296
SUPC_INTENCLR_Type::BOD33DET
uint32_t BOD33DET
Definition: supc.h:47
SUPC_VREF_Type::TSSEL
uint32_t TSSEL
Definition: supc.h:291
SUPC_INTENSET_Type::BOD33RDY
uint32_t BOD33RDY
Definition: supc.h:78
SUPC_INTENCLR_Type
Definition: supc.h:44
SUPC_STATUS_Type::BOD33DET
uint32_t BOD33DET
Definition: supc.h:143