Robobo
component_pmc.h
1 /* ----------------------------------------------------------------------------
2  * SAM Software Package License
3  * ----------------------------------------------------------------------------
4  * Copyright (c) 2012, Atmel Corporation
5  *
6  * All rights reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following condition is met:
10  *
11  * - Redistributions of source code must retain the above copyright notice,
12  * this list of conditions and the disclaimer below.
13  *
14  * Atmel's name may not be used to endorse or promote products derived from
15  * this software without specific prior written permission.
16  *
17  * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
18  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
20  * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
21  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
23  * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  * ----------------------------------------------------------------------------
28  */
29 
30 #ifndef _SAM3XA_PMC_COMPONENT_
31 #define _SAM3XA_PMC_COMPONENT_
32 
33 /* ============================================================================= */
35 /* ============================================================================= */
38 
39 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
40 
41 typedef struct {
42  WoReg PMC_SCER;
43  WoReg PMC_SCDR;
44  RoReg PMC_SCSR;
45  RoReg Reserved1[1];
46  WoReg PMC_PCER0;
47  WoReg PMC_PCDR0;
48  RoReg PMC_PCSR0;
49  RwReg CKGR_UCKR;
50  RwReg CKGR_MOR;
51  RoReg CKGR_MCFR;
52  RwReg CKGR_PLLAR;
53  RoReg Reserved2[1];
54  RwReg PMC_MCKR;
55  RoReg Reserved3[1];
56  RwReg PMC_USB;
57  RoReg Reserved4[1];
58  RwReg PMC_PCK[3];
59  RoReg Reserved5[5];
60  WoReg PMC_IER;
61  WoReg PMC_IDR;
62  RoReg PMC_SR;
63  RoReg PMC_IMR;
64  RwReg PMC_FSMR;
65  RwReg PMC_FSPR;
66  WoReg PMC_FOCR;
67  RoReg Reserved6[26];
68  RwReg PMC_WPMR;
69  RoReg PMC_WPSR;
70  RoReg Reserved7[5];
71  WoReg PMC_PCER1;
72  WoReg PMC_PCDR1;
73  RoReg PMC_PCSR1;
75 } Pmc;
76 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
77 /* -------- PMC_SCER : (PMC Offset: 0x0000) System Clock Enable Register -------- */
78 #define PMC_SCER_UOTGCLK (0x1u << 5)
79 #define PMC_SCER_PCK0 (0x1u << 8)
80 #define PMC_SCER_PCK1 (0x1u << 9)
81 #define PMC_SCER_PCK2 (0x1u << 10)
82 /* -------- PMC_SCDR : (PMC Offset: 0x0004) System Clock Disable Register -------- */
83 #define PMC_SCDR_UOTGCLK (0x1u << 5)
84 #define PMC_SCDR_PCK0 (0x1u << 8)
85 #define PMC_SCDR_PCK1 (0x1u << 9)
86 #define PMC_SCDR_PCK2 (0x1u << 10)
87 /* -------- PMC_SCSR : (PMC Offset: 0x0008) System Clock Status Register -------- */
88 #define PMC_SCSR_UOTGCLK (0x1u << 5)
89 #define PMC_SCSR_PCK0 (0x1u << 8)
90 #define PMC_SCSR_PCK1 (0x1u << 9)
91 #define PMC_SCSR_PCK2 (0x1u << 10)
92 /* -------- PMC_PCER0 : (PMC Offset: 0x0010) Peripheral Clock Enable Register 0 -------- */
93 #define PMC_PCER0_PID2 (0x1u << 2)
94 #define PMC_PCER0_PID3 (0x1u << 3)
95 #define PMC_PCER0_PID4 (0x1u << 4)
96 #define PMC_PCER0_PID5 (0x1u << 5)
97 #define PMC_PCER0_PID6 (0x1u << 6)
98 #define PMC_PCER0_PID7 (0x1u << 7)
99 #define PMC_PCER0_PID8 (0x1u << 8)
100 #define PMC_PCER0_PID9 (0x1u << 9)
101 #define PMC_PCER0_PID10 (0x1u << 10)
102 #define PMC_PCER0_PID11 (0x1u << 11)
103 #define PMC_PCER0_PID12 (0x1u << 12)
104 #define PMC_PCER0_PID13 (0x1u << 13)
105 #define PMC_PCER0_PID14 (0x1u << 14)
106 #define PMC_PCER0_PID15 (0x1u << 15)
107 #define PMC_PCER0_PID16 (0x1u << 16)
108 #define PMC_PCER0_PID17 (0x1u << 17)
109 #define PMC_PCER0_PID18 (0x1u << 18)
110 #define PMC_PCER0_PID19 (0x1u << 19)
111 #define PMC_PCER0_PID20 (0x1u << 20)
112 #define PMC_PCER0_PID21 (0x1u << 21)
113 #define PMC_PCER0_PID22 (0x1u << 22)
114 #define PMC_PCER0_PID23 (0x1u << 23)
115 #define PMC_PCER0_PID24 (0x1u << 24)
116 #define PMC_PCER0_PID25 (0x1u << 25)
117 #define PMC_PCER0_PID26 (0x1u << 26)
118 #define PMC_PCER0_PID27 (0x1u << 27)
119 #define PMC_PCER0_PID28 (0x1u << 28)
120 #define PMC_PCER0_PID29 (0x1u << 29)
121 #define PMC_PCER0_PID30 (0x1u << 30)
122 #define PMC_PCER0_PID31 (0x1u << 31)
123 /* -------- PMC_PCDR0 : (PMC Offset: 0x0014) Peripheral Clock Disable Register 0 -------- */
124 #define PMC_PCDR0_PID2 (0x1u << 2)
125 #define PMC_PCDR0_PID3 (0x1u << 3)
126 #define PMC_PCDR0_PID4 (0x1u << 4)
127 #define PMC_PCDR0_PID5 (0x1u << 5)
128 #define PMC_PCDR0_PID6 (0x1u << 6)
129 #define PMC_PCDR0_PID7 (0x1u << 7)
130 #define PMC_PCDR0_PID8 (0x1u << 8)
131 #define PMC_PCDR0_PID9 (0x1u << 9)
132 #define PMC_PCDR0_PID10 (0x1u << 10)
133 #define PMC_PCDR0_PID11 (0x1u << 11)
134 #define PMC_PCDR0_PID12 (0x1u << 12)
135 #define PMC_PCDR0_PID13 (0x1u << 13)
136 #define PMC_PCDR0_PID14 (0x1u << 14)
137 #define PMC_PCDR0_PID15 (0x1u << 15)
138 #define PMC_PCDR0_PID16 (0x1u << 16)
139 #define PMC_PCDR0_PID17 (0x1u << 17)
140 #define PMC_PCDR0_PID18 (0x1u << 18)
141 #define PMC_PCDR0_PID19 (0x1u << 19)
142 #define PMC_PCDR0_PID20 (0x1u << 20)
143 #define PMC_PCDR0_PID21 (0x1u << 21)
144 #define PMC_PCDR0_PID22 (0x1u << 22)
145 #define PMC_PCDR0_PID23 (0x1u << 23)
146 #define PMC_PCDR0_PID24 (0x1u << 24)
147 #define PMC_PCDR0_PID25 (0x1u << 25)
148 #define PMC_PCDR0_PID26 (0x1u << 26)
149 #define PMC_PCDR0_PID27 (0x1u << 27)
150 #define PMC_PCDR0_PID28 (0x1u << 28)
151 #define PMC_PCDR0_PID29 (0x1u << 29)
152 #define PMC_PCDR0_PID30 (0x1u << 30)
153 #define PMC_PCDR0_PID31 (0x1u << 31)
154 /* -------- PMC_PCSR0 : (PMC Offset: 0x0018) Peripheral Clock Status Register 0 -------- */
155 #define PMC_PCSR0_PID2 (0x1u << 2)
156 #define PMC_PCSR0_PID3 (0x1u << 3)
157 #define PMC_PCSR0_PID4 (0x1u << 4)
158 #define PMC_PCSR0_PID5 (0x1u << 5)
159 #define PMC_PCSR0_PID6 (0x1u << 6)
160 #define PMC_PCSR0_PID7 (0x1u << 7)
161 #define PMC_PCSR0_PID8 (0x1u << 8)
162 #define PMC_PCSR0_PID9 (0x1u << 9)
163 #define PMC_PCSR0_PID10 (0x1u << 10)
164 #define PMC_PCSR0_PID11 (0x1u << 11)
165 #define PMC_PCSR0_PID12 (0x1u << 12)
166 #define PMC_PCSR0_PID13 (0x1u << 13)
167 #define PMC_PCSR0_PID14 (0x1u << 14)
168 #define PMC_PCSR0_PID15 (0x1u << 15)
169 #define PMC_PCSR0_PID16 (0x1u << 16)
170 #define PMC_PCSR0_PID17 (0x1u << 17)
171 #define PMC_PCSR0_PID18 (0x1u << 18)
172 #define PMC_PCSR0_PID19 (0x1u << 19)
173 #define PMC_PCSR0_PID20 (0x1u << 20)
174 #define PMC_PCSR0_PID21 (0x1u << 21)
175 #define PMC_PCSR0_PID22 (0x1u << 22)
176 #define PMC_PCSR0_PID23 (0x1u << 23)
177 #define PMC_PCSR0_PID24 (0x1u << 24)
178 #define PMC_PCSR0_PID25 (0x1u << 25)
179 #define PMC_PCSR0_PID26 (0x1u << 26)
180 #define PMC_PCSR0_PID27 (0x1u << 27)
181 #define PMC_PCSR0_PID28 (0x1u << 28)
182 #define PMC_PCSR0_PID29 (0x1u << 29)
183 #define PMC_PCSR0_PID30 (0x1u << 30)
184 #define PMC_PCSR0_PID31 (0x1u << 31)
185 /* -------- CKGR_UCKR : (PMC Offset: 0x001C) UTMI Clock Register -------- */
186 #define CKGR_UCKR_UPLLEN (0x1u << 16)
187 #define CKGR_UCKR_UPLLCOUNT_Pos 20
188 #define CKGR_UCKR_UPLLCOUNT_Msk (0xfu << CKGR_UCKR_UPLLCOUNT_Pos)
189 #define CKGR_UCKR_UPLLCOUNT(value) ((CKGR_UCKR_UPLLCOUNT_Msk & ((value) << CKGR_UCKR_UPLLCOUNT_Pos)))
190 /* -------- CKGR_MOR : (PMC Offset: 0x0020) Main Oscillator Register -------- */
191 #define CKGR_MOR_MOSCXTEN (0x1u << 0)
192 #define CKGR_MOR_MOSCXTBY (0x1u << 1)
193 #define CKGR_MOR_MOSCRCEN (0x1u << 3)
194 #define CKGR_MOR_MOSCRCF_Pos 4
195 #define CKGR_MOR_MOSCRCF_Msk (0x7u << CKGR_MOR_MOSCRCF_Pos)
196 #define CKGR_MOR_MOSCRCF_4_MHz (0x0u << 4)
197 #define CKGR_MOR_MOSCRCF_8_MHz (0x1u << 4)
198 #define CKGR_MOR_MOSCRCF_12_MHz (0x2u << 4)
199 #define CKGR_MOR_MOSCXTST_Pos 8
200 #define CKGR_MOR_MOSCXTST_Msk (0xffu << CKGR_MOR_MOSCXTST_Pos)
201 #define CKGR_MOR_MOSCXTST(value) ((CKGR_MOR_MOSCXTST_Msk & ((value) << CKGR_MOR_MOSCXTST_Pos)))
202 #define CKGR_MOR_KEY_Pos 16
203 #define CKGR_MOR_KEY_Msk (0xffu << CKGR_MOR_KEY_Pos)
204 #define CKGR_MOR_KEY(value) ((CKGR_MOR_KEY_Msk & ((value) << CKGR_MOR_KEY_Pos)))
205 #define CKGR_MOR_MOSCSEL (0x1u << 24)
206 #define CKGR_MOR_CFDEN (0x1u << 25)
207 /* -------- CKGR_MCFR : (PMC Offset: 0x0024) Main Clock Frequency Register -------- */
208 #define CKGR_MCFR_MAINF_Pos 0
209 #define CKGR_MCFR_MAINF_Msk (0xffffu << CKGR_MCFR_MAINF_Pos)
210 #define CKGR_MCFR_MAINFRDY (0x1u << 16)
211 /* -------- CKGR_PLLAR : (PMC Offset: 0x0028) PLLA Register -------- */
212 #define CKGR_PLLAR_DIVA_Pos 0
213 #define CKGR_PLLAR_DIVA_Msk (0xffu << CKGR_PLLAR_DIVA_Pos)
214 #define CKGR_PLLAR_DIVA(value) ((CKGR_PLLAR_DIVA_Msk & ((value) << CKGR_PLLAR_DIVA_Pos)))
215 #define CKGR_PLLAR_PLLACOUNT_Pos 8
216 #define CKGR_PLLAR_PLLACOUNT_Msk (0x3fu << CKGR_PLLAR_PLLACOUNT_Pos)
217 #define CKGR_PLLAR_PLLACOUNT(value) ((CKGR_PLLAR_PLLACOUNT_Msk & ((value) << CKGR_PLLAR_PLLACOUNT_Pos)))
218 #define CKGR_PLLAR_MULA_Pos 16
219 #define CKGR_PLLAR_MULA_Msk (0x7ffu << CKGR_PLLAR_MULA_Pos)
220 #define CKGR_PLLAR_MULA(value) ((CKGR_PLLAR_MULA_Msk & ((value) << CKGR_PLLAR_MULA_Pos)))
221 #define CKGR_PLLAR_ONE (0x1u << 29)
222 /* -------- PMC_MCKR : (PMC Offset: 0x0030) Master Clock Register -------- */
223 #define PMC_MCKR_CSS_Pos 0
224 #define PMC_MCKR_CSS_Msk (0x3u << PMC_MCKR_CSS_Pos)
225 #define PMC_MCKR_CSS_SLOW_CLK (0x0u << 0)
226 #define PMC_MCKR_CSS_MAIN_CLK (0x1u << 0)
227 #define PMC_MCKR_CSS_PLLA_CLK (0x2u << 0)
228 #define PMC_MCKR_CSS_UPLL_CLK (0x3u << 0)
229 #define PMC_MCKR_PRES_Pos 4
230 #define PMC_MCKR_PRES_Msk (0x7u << PMC_MCKR_PRES_Pos)
231 #define PMC_MCKR_PRES_CLK_1 (0x0u << 4)
232 #define PMC_MCKR_PRES_CLK_2 (0x1u << 4)
233 #define PMC_MCKR_PRES_CLK_4 (0x2u << 4)
234 #define PMC_MCKR_PRES_CLK_8 (0x3u << 4)
235 #define PMC_MCKR_PRES_CLK_16 (0x4u << 4)
236 #define PMC_MCKR_PRES_CLK_32 (0x5u << 4)
237 #define PMC_MCKR_PRES_CLK_64 (0x6u << 4)
238 #define PMC_MCKR_PRES_CLK_3 (0x7u << 4)
239 #define PMC_MCKR_PLLADIV2 (0x1u << 12)
240 #define PMC_MCKR_UPLLDIV2 (0x1u << 13)
241 /* -------- PMC_USB : (PMC Offset: 0x0038) USB Clock Register -------- */
242 #define PMC_USB_USBS (0x1u << 0)
243 #define PMC_USB_USBDIV_Pos 8
244 #define PMC_USB_USBDIV_Msk (0xfu << PMC_USB_USBDIV_Pos)
245 #define PMC_USB_USBDIV(value) ((PMC_USB_USBDIV_Msk & ((value) << PMC_USB_USBDIV_Pos)))
246 /* -------- PMC_PCK[3] : (PMC Offset: 0x0040) Programmable Clock 0 Register -------- */
247 #define PMC_PCK_CSS_Pos 0
248 #define PMC_PCK_CSS_Msk (0x7u << PMC_PCK_CSS_Pos)
249 #define PMC_PCK_CSS_SLOW_CLK (0x0u << 0)
250 #define PMC_PCK_CSS_MAIN_CLK (0x1u << 0)
251 #define PMC_PCK_CSS_PLLA_CLK (0x2u << 0)
252 #define PMC_PCK_CSS_UPLL_CLK (0x3u << 0)
253 #define PMC_PCK_CSS_MCK (0x4u << 0)
254 #define PMC_PCK_PRES_Pos 4
255 #define PMC_PCK_PRES_Msk (0x7u << PMC_PCK_PRES_Pos)
256 #define PMC_PCK_PRES_CLK_1 (0x0u << 4)
257 #define PMC_PCK_PRES_CLK_2 (0x1u << 4)
258 #define PMC_PCK_PRES_CLK_4 (0x2u << 4)
259 #define PMC_PCK_PRES_CLK_8 (0x3u << 4)
260 #define PMC_PCK_PRES_CLK_16 (0x4u << 4)
261 #define PMC_PCK_PRES_CLK_32 (0x5u << 4)
262 #define PMC_PCK_PRES_CLK_64 (0x6u << 4)
263 /* -------- PMC_IER : (PMC Offset: 0x0060) Interrupt Enable Register -------- */
264 #define PMC_IER_MOSCXTS (0x1u << 0)
265 #define PMC_IER_LOCKA (0x1u << 1)
266 #define PMC_IER_MCKRDY (0x1u << 3)
267 #define PMC_IER_LOCKU (0x1u << 6)
268 #define PMC_IER_PCKRDY0 (0x1u << 8)
269 #define PMC_IER_PCKRDY1 (0x1u << 9)
270 #define PMC_IER_PCKRDY2 (0x1u << 10)
271 #define PMC_IER_MOSCSELS (0x1u << 16)
272 #define PMC_IER_MOSCRCS (0x1u << 17)
273 #define PMC_IER_CFDEV (0x1u << 18)
274 /* -------- PMC_IDR : (PMC Offset: 0x0064) Interrupt Disable Register -------- */
275 #define PMC_IDR_MOSCXTS (0x1u << 0)
276 #define PMC_IDR_LOCKA (0x1u << 1)
277 #define PMC_IDR_MCKRDY (0x1u << 3)
278 #define PMC_IDR_LOCKU (0x1u << 6)
279 #define PMC_IDR_PCKRDY0 (0x1u << 8)
280 #define PMC_IDR_PCKRDY1 (0x1u << 9)
281 #define PMC_IDR_PCKRDY2 (0x1u << 10)
282 #define PMC_IDR_MOSCSELS (0x1u << 16)
283 #define PMC_IDR_MOSCRCS (0x1u << 17)
284 #define PMC_IDR_CFDEV (0x1u << 18)
285 /* -------- PMC_SR : (PMC Offset: 0x0068) Status Register -------- */
286 #define PMC_SR_MOSCXTS (0x1u << 0)
287 #define PMC_SR_LOCKA (0x1u << 1)
288 #define PMC_SR_MCKRDY (0x1u << 3)
289 #define PMC_SR_LOCKU (0x1u << 6)
290 #define PMC_SR_OSCSELS (0x1u << 7)
291 #define PMC_SR_PCKRDY0 (0x1u << 8)
292 #define PMC_SR_PCKRDY1 (0x1u << 9)
293 #define PMC_SR_PCKRDY2 (0x1u << 10)
294 #define PMC_SR_MOSCSELS (0x1u << 16)
295 #define PMC_SR_MOSCRCS (0x1u << 17)
296 #define PMC_SR_CFDEV (0x1u << 18)
297 #define PMC_SR_CFDS (0x1u << 19)
298 #define PMC_SR_FOS (0x1u << 20)
299 /* -------- PMC_IMR : (PMC Offset: 0x006C) Interrupt Mask Register -------- */
300 #define PMC_IMR_MOSCXTS (0x1u << 0)
301 #define PMC_IMR_LOCKA (0x1u << 1)
302 #define PMC_IMR_MCKRDY (0x1u << 3)
303 #define PMC_IMR_LOCKU (0x1u << 6)
304 #define PMC_IMR_PCKRDY0 (0x1u << 8)
305 #define PMC_IMR_PCKRDY1 (0x1u << 9)
306 #define PMC_IMR_PCKRDY2 (0x1u << 10)
307 #define PMC_IMR_MOSCSELS (0x1u << 16)
308 #define PMC_IMR_MOSCRCS (0x1u << 17)
309 #define PMC_IMR_CFDEV (0x1u << 18)
310 /* -------- PMC_FSMR : (PMC Offset: 0x0070) Fast Startup Mode Register -------- */
311 #define PMC_FSMR_FSTT0 (0x1u << 0)
312 #define PMC_FSMR_FSTT1 (0x1u << 1)
313 #define PMC_FSMR_FSTT2 (0x1u << 2)
314 #define PMC_FSMR_FSTT3 (0x1u << 3)
315 #define PMC_FSMR_FSTT4 (0x1u << 4)
316 #define PMC_FSMR_FSTT5 (0x1u << 5)
317 #define PMC_FSMR_FSTT6 (0x1u << 6)
318 #define PMC_FSMR_FSTT7 (0x1u << 7)
319 #define PMC_FSMR_FSTT8 (0x1u << 8)
320 #define PMC_FSMR_FSTT9 (0x1u << 9)
321 #define PMC_FSMR_FSTT10 (0x1u << 10)
322 #define PMC_FSMR_FSTT11 (0x1u << 11)
323 #define PMC_FSMR_FSTT12 (0x1u << 12)
324 #define PMC_FSMR_FSTT13 (0x1u << 13)
325 #define PMC_FSMR_FSTT14 (0x1u << 14)
326 #define PMC_FSMR_FSTT15 (0x1u << 15)
327 #define PMC_FSMR_RTTAL (0x1u << 16)
328 #define PMC_FSMR_RTCAL (0x1u << 17)
329 #define PMC_FSMR_USBAL (0x1u << 18)
330 #define PMC_FSMR_LPM (0x1u << 20)
331 /* -------- PMC_FSPR : (PMC Offset: 0x0074) Fast Startup Polarity Register -------- */
332 #define PMC_FSPR_FSTP0 (0x1u << 0)
333 #define PMC_FSPR_FSTP1 (0x1u << 1)
334 #define PMC_FSPR_FSTP2 (0x1u << 2)
335 #define PMC_FSPR_FSTP3 (0x1u << 3)
336 #define PMC_FSPR_FSTP4 (0x1u << 4)
337 #define PMC_FSPR_FSTP5 (0x1u << 5)
338 #define PMC_FSPR_FSTP6 (0x1u << 6)
339 #define PMC_FSPR_FSTP7 (0x1u << 7)
340 #define PMC_FSPR_FSTP8 (0x1u << 8)
341 #define PMC_FSPR_FSTP9 (0x1u << 9)
342 #define PMC_FSPR_FSTP10 (0x1u << 10)
343 #define PMC_FSPR_FSTP11 (0x1u << 11)
344 #define PMC_FSPR_FSTP12 (0x1u << 12)
345 #define PMC_FSPR_FSTP13 (0x1u << 13)
346 #define PMC_FSPR_FSTP14 (0x1u << 14)
347 #define PMC_FSPR_FSTP15 (0x1u << 15)
348 /* -------- PMC_FOCR : (PMC Offset: 0x0078) Fault Output Clear Register -------- */
349 #define PMC_FOCR_FOCLR (0x1u << 0)
350 /* -------- PMC_WPMR : (PMC Offset: 0x00E4) Write Protect Mode Register -------- */
351 #define PMC_WPMR_WPEN (0x1u << 0)
352 #define PMC_WPMR_WPKEY_Pos 8
353 #define PMC_WPMR_WPKEY_Msk (0xffffffu << PMC_WPMR_WPKEY_Pos)
354 #define PMC_WPMR_WPKEY(value) ((PMC_WPMR_WPKEY_Msk & ((value) << PMC_WPMR_WPKEY_Pos)))
355 /* -------- PMC_WPSR : (PMC Offset: 0x00E8) Write Protect Status Register -------- */
356 #define PMC_WPSR_WPVS (0x1u << 0)
357 #define PMC_WPSR_WPVSRC_Pos 8
358 #define PMC_WPSR_WPVSRC_Msk (0xffffu << PMC_WPSR_WPVSRC_Pos)
359 /* -------- PMC_PCER1 : (PMC Offset: 0x0100) Peripheral Clock Enable Register 1 -------- */
360 #define PMC_PCER1_PID32 (0x1u << 0)
361 #define PMC_PCER1_PID33 (0x1u << 1)
362 #define PMC_PCER1_PID34 (0x1u << 2)
363 #define PMC_PCER1_PID35 (0x1u << 3)
364 #define PMC_PCER1_PID36 (0x1u << 4)
365 #define PMC_PCER1_PID37 (0x1u << 5)
366 #define PMC_PCER1_PID38 (0x1u << 6)
367 #define PMC_PCER1_PID39 (0x1u << 7)
368 #define PMC_PCER1_PID40 (0x1u << 8)
369 #define PMC_PCER1_PID41 (0x1u << 9)
370 #define PMC_PCER1_PID42 (0x1u << 10)
371 #define PMC_PCER1_PID43 (0x1u << 11)
372 #define PMC_PCER1_PID44 (0x1u << 12)
373 /* -------- PMC_PCDR1 : (PMC Offset: 0x0104) Peripheral Clock Disable Register 1 -------- */
374 #define PMC_PCDR1_PID32 (0x1u << 0)
375 #define PMC_PCDR1_PID33 (0x1u << 1)
376 #define PMC_PCDR1_PID34 (0x1u << 2)
377 #define PMC_PCDR1_PID35 (0x1u << 3)
378 #define PMC_PCDR1_PID36 (0x1u << 4)
379 #define PMC_PCDR1_PID37 (0x1u << 5)
380 #define PMC_PCDR1_PID38 (0x1u << 6)
381 #define PMC_PCDR1_PID39 (0x1u << 7)
382 #define PMC_PCDR1_PID40 (0x1u << 8)
383 #define PMC_PCDR1_PID41 (0x1u << 9)
384 #define PMC_PCDR1_PID42 (0x1u << 10)
385 #define PMC_PCDR1_PID43 (0x1u << 11)
386 #define PMC_PCDR1_PID44 (0x1u << 12)
387 /* -------- PMC_PCSR1 : (PMC Offset: 0x0108) Peripheral Clock Status Register 1 -------- */
388 #define PMC_PCSR1_PID32 (0x1u << 0)
389 #define PMC_PCSR1_PID33 (0x1u << 1)
390 #define PMC_PCSR1_PID34 (0x1u << 2)
391 #define PMC_PCSR1_PID35 (0x1u << 3)
392 #define PMC_PCSR1_PID36 (0x1u << 4)
393 #define PMC_PCSR1_PID37 (0x1u << 5)
394 #define PMC_PCSR1_PID38 (0x1u << 6)
395 #define PMC_PCSR1_PID39 (0x1u << 7)
396 #define PMC_PCSR1_PID40 (0x1u << 8)
397 #define PMC_PCSR1_PID41 (0x1u << 9)
398 #define PMC_PCSR1_PID42 (0x1u << 10)
399 #define PMC_PCSR1_PID43 (0x1u << 11)
400 #define PMC_PCSR1_PID44 (0x1u << 12)
401 /* -------- PMC_PCR : (PMC Offset: 0x010C) Peripheral Control Register -------- */
402 #define PMC_PCR_PID_Pos 0
403 #define PMC_PCR_PID_Msk (0x3fu << PMC_PCR_PID_Pos)
404 #define PMC_PCR_PID(value) ((PMC_PCR_PID_Msk & ((value) << PMC_PCR_PID_Pos)))
405 #define PMC_PCR_CMD (0x1u << 12)
406 #define PMC_PCR_DIV_Pos 16
407 #define PMC_PCR_DIV_Msk (0x3u << PMC_PCR_DIV_Pos)
408 #define PMC_PCR_DIV_PERIPH_DIV_MCK (0x0u << 16)
409 #define PMC_PCR_DIV_PERIPH_DIV2_MCK (0x1u << 16)
410 #define PMC_PCR_DIV_PERIPH_DIV4_MCK (0x2u << 16)
411 #define PMC_PCR_EN (0x1u << 28)
414 
415 
416 #endif /* _SAM3XA_PMC_COMPONENT_ */
volatile uint32_t RwReg
Definition: sam3n00a.h:54
RwReg PMC_PCR
(Pmc Offset: 0x010C) Peripheral Control Register
Definition: component_pmc.h:74
volatile uint32_t WoReg
Definition: sam3n00a.h:53
volatile const uint32_t RoReg
Definition: sam3n00a.h:49
Pmc hardware registers.
Definition: component_pmc.h:41