Robobo
instance_pwm.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_PWM_INSTANCE_
31 #define _SAM3XA_PWM_INSTANCE_
32 
33 /* ========== Register definition for PWM peripheral ========== */
34 #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
35 #define REG_PWM_CLK (0x40094000U)
36 #define REG_PWM_ENA (0x40094004U)
37 #define REG_PWM_DIS (0x40094008U)
38 #define REG_PWM_SR (0x4009400CU)
39 #define REG_PWM_IER1 (0x40094010U)
40 #define REG_PWM_IDR1 (0x40094014U)
41 #define REG_PWM_IMR1 (0x40094018U)
42 #define REG_PWM_ISR1 (0x4009401CU)
43 #define REG_PWM_SCM (0x40094020U)
44 #define REG_PWM_SCUC (0x40094028U)
45 #define REG_PWM_SCUP (0x4009402CU)
46 #define REG_PWM_SCUPUPD (0x40094030U)
47 #define REG_PWM_IER2 (0x40094034U)
48 #define REG_PWM_IDR2 (0x40094038U)
49 #define REG_PWM_IMR2 (0x4009403CU)
50 #define REG_PWM_ISR2 (0x40094040U)
51 #define REG_PWM_OOV (0x40094044U)
52 #define REG_PWM_OS (0x40094048U)
53 #define REG_PWM_OSS (0x4009404CU)
54 #define REG_PWM_OSC (0x40094050U)
55 #define REG_PWM_OSSUPD (0x40094054U)
56 #define REG_PWM_OSCUPD (0x40094058U)
57 #define REG_PWM_FMR (0x4009405CU)
58 #define REG_PWM_FSR (0x40094060U)
59 #define REG_PWM_FCR (0x40094064U)
60 #define REG_PWM_FPV (0x40094068U)
61 #define REG_PWM_FPE1 (0x4009406CU)
62 #define REG_PWM_FPE2 (0x40094070U)
63 #define REG_PWM_ELMR (0x4009407CU)
64 #define REG_PWM_SMMR (0x400940B0U)
65 #define REG_PWM_WPCR (0x400940E4U)
66 #define REG_PWM_WPSR (0x400940E8U)
67 #define REG_PWM_TPR (0x40094108U)
68 #define REG_PWM_TCR (0x4009410CU)
69 #define REG_PWM_TNPR (0x40094118U)
70 #define REG_PWM_TNCR (0x4009411CU)
71 #define REG_PWM_PTCR (0x40094120U)
72 #define REG_PWM_PTSR (0x40094124U)
73 #define REG_PWM_CMPV0 (0x40094130U)
74 #define REG_PWM_CMPVUPD0 (0x40094134U)
75 #define REG_PWM_CMPM0 (0x40094138U)
76 #define REG_PWM_CMPMUPD0 (0x4009413CU)
77 #define REG_PWM_CMPV1 (0x40094140U)
78 #define REG_PWM_CMPVUPD1 (0x40094144U)
79 #define REG_PWM_CMPM1 (0x40094148U)
80 #define REG_PWM_CMPMUPD1 (0x4009414CU)
81 #define REG_PWM_CMPV2 (0x40094150U)
82 #define REG_PWM_CMPVUPD2 (0x40094154U)
83 #define REG_PWM_CMPM2 (0x40094158U)
84 #define REG_PWM_CMPMUPD2 (0x4009415CU)
85 #define REG_PWM_CMPV3 (0x40094160U)
86 #define REG_PWM_CMPVUPD3 (0x40094164U)
87 #define REG_PWM_CMPM3 (0x40094168U)
88 #define REG_PWM_CMPMUPD3 (0x4009416CU)
89 #define REG_PWM_CMPV4 (0x40094170U)
90 #define REG_PWM_CMPVUPD4 (0x40094174U)
91 #define REG_PWM_CMPM4 (0x40094178U)
92 #define REG_PWM_CMPMUPD4 (0x4009417CU)
93 #define REG_PWM_CMPV5 (0x40094180U)
94 #define REG_PWM_CMPVUPD5 (0x40094184U)
95 #define REG_PWM_CMPM5 (0x40094188U)
96 #define REG_PWM_CMPMUPD5 (0x4009418CU)
97 #define REG_PWM_CMPV6 (0x40094190U)
98 #define REG_PWM_CMPVUPD6 (0x40094194U)
99 #define REG_PWM_CMPM6 (0x40094198U)
100 #define REG_PWM_CMPMUPD6 (0x4009419CU)
101 #define REG_PWM_CMPV7 (0x400941A0U)
102 #define REG_PWM_CMPVUPD7 (0x400941A4U)
103 #define REG_PWM_CMPM7 (0x400941A8U)
104 #define REG_PWM_CMPMUPD7 (0x400941ACU)
105 #define REG_PWM_CMR0 (0x40094200U)
106 #define REG_PWM_CDTY0 (0x40094204U)
107 #define REG_PWM_CDTYUPD0 (0x40094208U)
108 #define REG_PWM_CPRD0 (0x4009420CU)
109 #define REG_PWM_CPRDUPD0 (0x40094210U)
110 #define REG_PWM_CCNT0 (0x40094214U)
111 #define REG_PWM_DT0 (0x40094218U)
112 #define REG_PWM_DTUPD0 (0x4009421CU)
113 #define REG_PWM_CMR1 (0x40094220U)
114 #define REG_PWM_CDTY1 (0x40094224U)
115 #define REG_PWM_CDTYUPD1 (0x40094228U)
116 #define REG_PWM_CPRD1 (0x4009422CU)
117 #define REG_PWM_CPRDUPD1 (0x40094230U)
118 #define REG_PWM_CCNT1 (0x40094234U)
119 #define REG_PWM_DT1 (0x40094238U)
120 #define REG_PWM_DTUPD1 (0x4009423CU)
121 #define REG_PWM_CMR2 (0x40094240U)
122 #define REG_PWM_CDTY2 (0x40094244U)
123 #define REG_PWM_CDTYUPD2 (0x40094248U)
124 #define REG_PWM_CPRD2 (0x4009424CU)
125 #define REG_PWM_CPRDUPD2 (0x40094250U)
126 #define REG_PWM_CCNT2 (0x40094254U)
127 #define REG_PWM_DT2 (0x40094258U)
128 #define REG_PWM_DTUPD2 (0x4009425CU)
129 #define REG_PWM_CMR3 (0x40094260U)
130 #define REG_PWM_CDTY3 (0x40094264U)
131 #define REG_PWM_CDTYUPD3 (0x40094268U)
132 #define REG_PWM_CPRD3 (0x4009426CU)
133 #define REG_PWM_CPRDUPD3 (0x40094270U)
134 #define REG_PWM_CCNT3 (0x40094274U)
135 #define REG_PWM_DT3 (0x40094278U)
136 #define REG_PWM_DTUPD3 (0x4009427CU)
137 #define REG_PWM_CMR4 (0x40094280U)
138 #define REG_PWM_CDTY4 (0x40094284U)
139 #define REG_PWM_CDTYUPD4 (0x40094288U)
140 #define REG_PWM_CPRD4 (0x4009428CU)
141 #define REG_PWM_CPRDUPD4 (0x40094290U)
142 #define REG_PWM_CCNT4 (0x40094294U)
143 #define REG_PWM_DT4 (0x40094298U)
144 #define REG_PWM_DTUPD4 (0x4009429CU)
145 #define REG_PWM_CMR5 (0x400942A0U)
146 #define REG_PWM_CDTY5 (0x400942A4U)
147 #define REG_PWM_CDTYUPD5 (0x400942A8U)
148 #define REG_PWM_CPRD5 (0x400942ACU)
149 #define REG_PWM_CPRDUPD5 (0x400942B0U)
150 #define REG_PWM_CCNT5 (0x400942B4U)
151 #define REG_PWM_DT5 (0x400942B8U)
152 #define REG_PWM_DTUPD5 (0x400942BCU)
153 #define REG_PWM_CMR6 (0x400942C0U)
154 #define REG_PWM_CDTY6 (0x400942C4U)
155 #define REG_PWM_CDTYUPD6 (0x400942C8U)
156 #define REG_PWM_CPRD6 (0x400942CCU)
157 #define REG_PWM_CPRDUPD6 (0x400942D0U)
158 #define REG_PWM_CCNT6 (0x400942D4U)
159 #define REG_PWM_DT6 (0x400942D8U)
160 #define REG_PWM_DTUPD6 (0x400942DCU)
161 #define REG_PWM_CMR7 (0x400942E0U)
162 #define REG_PWM_CDTY7 (0x400942E4U)
163 #define REG_PWM_CDTYUPD7 (0x400942E8U)
164 #define REG_PWM_CPRD7 (0x400942ECU)
165 #define REG_PWM_CPRDUPD7 (0x400942F0U)
166 #define REG_PWM_CCNT7 (0x400942F4U)
167 #define REG_PWM_DT7 (0x400942F8U)
168 #define REG_PWM_DTUPD7 (0x400942FCU)
169 #else
170 #define REG_PWM_CLK (*(RwReg*)0x40094000U)
171 #define REG_PWM_ENA (*(WoReg*)0x40094004U)
172 #define REG_PWM_DIS (*(WoReg*)0x40094008U)
173 #define REG_PWM_SR (*(RoReg*)0x4009400CU)
174 #define REG_PWM_IER1 (*(WoReg*)0x40094010U)
175 #define REG_PWM_IDR1 (*(WoReg*)0x40094014U)
176 #define REG_PWM_IMR1 (*(RoReg*)0x40094018U)
177 #define REG_PWM_ISR1 (*(RoReg*)0x4009401CU)
178 #define REG_PWM_SCM (*(RwReg*)0x40094020U)
179 #define REG_PWM_SCUC (*(RwReg*)0x40094028U)
180 #define REG_PWM_SCUP (*(RwReg*)0x4009402CU)
181 #define REG_PWM_SCUPUPD (*(WoReg*)0x40094030U)
182 #define REG_PWM_IER2 (*(WoReg*)0x40094034U)
183 #define REG_PWM_IDR2 (*(WoReg*)0x40094038U)
184 #define REG_PWM_IMR2 (*(RoReg*)0x4009403CU)
185 #define REG_PWM_ISR2 (*(RoReg*)0x40094040U)
186 #define REG_PWM_OOV (*(RwReg*)0x40094044U)
187 #define REG_PWM_OS (*(RwReg*)0x40094048U)
188 #define REG_PWM_OSS (*(WoReg*)0x4009404CU)
189 #define REG_PWM_OSC (*(WoReg*)0x40094050U)
190 #define REG_PWM_OSSUPD (*(WoReg*)0x40094054U)
191 #define REG_PWM_OSCUPD (*(WoReg*)0x40094058U)
192 #define REG_PWM_FMR (*(RwReg*)0x4009405CU)
193 #define REG_PWM_FSR (*(RoReg*)0x40094060U)
194 #define REG_PWM_FCR (*(WoReg*)0x40094064U)
195 #define REG_PWM_FPV (*(RwReg*)0x40094068U)
196 #define REG_PWM_FPE1 (*(RwReg*)0x4009406CU)
197 #define REG_PWM_FPE2 (*(RwReg*)0x40094070U)
198 #define REG_PWM_ELMR (*(RwReg*)0x4009407CU)
199 #define REG_PWM_SMMR (*(RwReg*)0x400940B0U)
200 #define REG_PWM_WPCR (*(WoReg*)0x400940E4U)
201 #define REG_PWM_WPSR (*(RoReg*)0x400940E8U)
202 #define REG_PWM_TPR (*(RwReg*)0x40094108U)
203 #define REG_PWM_TCR (*(RwReg*)0x4009410CU)
204 #define REG_PWM_TNPR (*(RwReg*)0x40094118U)
205 #define REG_PWM_TNCR (*(RwReg*)0x4009411CU)
206 #define REG_PWM_PTCR (*(WoReg*)0x40094120U)
207 #define REG_PWM_PTSR (*(RoReg*)0x40094124U)
208 #define REG_PWM_CMPV0 (*(RwReg*)0x40094130U)
209 #define REG_PWM_CMPVUPD0 (*(WoReg*)0x40094134U)
210 #define REG_PWM_CMPM0 (*(RwReg*)0x40094138U)
211 #define REG_PWM_CMPMUPD0 (*(WoReg*)0x4009413CU)
212 #define REG_PWM_CMPV1 (*(RwReg*)0x40094140U)
213 #define REG_PWM_CMPVUPD1 (*(WoReg*)0x40094144U)
214 #define REG_PWM_CMPM1 (*(RwReg*)0x40094148U)
215 #define REG_PWM_CMPMUPD1 (*(WoReg*)0x4009414CU)
216 #define REG_PWM_CMPV2 (*(RwReg*)0x40094150U)
217 #define REG_PWM_CMPVUPD2 (*(WoReg*)0x40094154U)
218 #define REG_PWM_CMPM2 (*(RwReg*)0x40094158U)
219 #define REG_PWM_CMPMUPD2 (*(WoReg*)0x4009415CU)
220 #define REG_PWM_CMPV3 (*(RwReg*)0x40094160U)
221 #define REG_PWM_CMPVUPD3 (*(WoReg*)0x40094164U)
222 #define REG_PWM_CMPM3 (*(RwReg*)0x40094168U)
223 #define REG_PWM_CMPMUPD3 (*(WoReg*)0x4009416CU)
224 #define REG_PWM_CMPV4 (*(RwReg*)0x40094170U)
225 #define REG_PWM_CMPVUPD4 (*(WoReg*)0x40094174U)
226 #define REG_PWM_CMPM4 (*(RwReg*)0x40094178U)
227 #define REG_PWM_CMPMUPD4 (*(WoReg*)0x4009417CU)
228 #define REG_PWM_CMPV5 (*(RwReg*)0x40094180U)
229 #define REG_PWM_CMPVUPD5 (*(WoReg*)0x40094184U)
230 #define REG_PWM_CMPM5 (*(RwReg*)0x40094188U)
231 #define REG_PWM_CMPMUPD5 (*(WoReg*)0x4009418CU)
232 #define REG_PWM_CMPV6 (*(RwReg*)0x40094190U)
233 #define REG_PWM_CMPVUPD6 (*(WoReg*)0x40094194U)
234 #define REG_PWM_CMPM6 (*(RwReg*)0x40094198U)
235 #define REG_PWM_CMPMUPD6 (*(WoReg*)0x4009419CU)
236 #define REG_PWM_CMPV7 (*(RwReg*)0x400941A0U)
237 #define REG_PWM_CMPVUPD7 (*(WoReg*)0x400941A4U)
238 #define REG_PWM_CMPM7 (*(RwReg*)0x400941A8U)
239 #define REG_PWM_CMPMUPD7 (*(WoReg*)0x400941ACU)
240 #define REG_PWM_CMR0 (*(RwReg*)0x40094200U)
241 #define REG_PWM_CDTY0 (*(RwReg*)0x40094204U)
242 #define REG_PWM_CDTYUPD0 (*(WoReg*)0x40094208U)
243 #define REG_PWM_CPRD0 (*(RwReg*)0x4009420CU)
244 #define REG_PWM_CPRDUPD0 (*(WoReg*)0x40094210U)
245 #define REG_PWM_CCNT0 (*(RoReg*)0x40094214U)
246 #define REG_PWM_DT0 (*(RwReg*)0x40094218U)
247 #define REG_PWM_DTUPD0 (*(WoReg*)0x4009421CU)
248 #define REG_PWM_CMR1 (*(RwReg*)0x40094220U)
249 #define REG_PWM_CDTY1 (*(RwReg*)0x40094224U)
250 #define REG_PWM_CDTYUPD1 (*(WoReg*)0x40094228U)
251 #define REG_PWM_CPRD1 (*(RwReg*)0x4009422CU)
252 #define REG_PWM_CPRDUPD1 (*(WoReg*)0x40094230U)
253 #define REG_PWM_CCNT1 (*(RoReg*)0x40094234U)
254 #define REG_PWM_DT1 (*(RwReg*)0x40094238U)
255 #define REG_PWM_DTUPD1 (*(WoReg*)0x4009423CU)
256 #define REG_PWM_CMR2 (*(RwReg*)0x40094240U)
257 #define REG_PWM_CDTY2 (*(RwReg*)0x40094244U)
258 #define REG_PWM_CDTYUPD2 (*(WoReg*)0x40094248U)
259 #define REG_PWM_CPRD2 (*(RwReg*)0x4009424CU)
260 #define REG_PWM_CPRDUPD2 (*(WoReg*)0x40094250U)
261 #define REG_PWM_CCNT2 (*(RoReg*)0x40094254U)
262 #define REG_PWM_DT2 (*(RwReg*)0x40094258U)
263 #define REG_PWM_DTUPD2 (*(WoReg*)0x4009425CU)
264 #define REG_PWM_CMR3 (*(RwReg*)0x40094260U)
265 #define REG_PWM_CDTY3 (*(RwReg*)0x40094264U)
266 #define REG_PWM_CDTYUPD3 (*(WoReg*)0x40094268U)
267 #define REG_PWM_CPRD3 (*(RwReg*)0x4009426CU)
268 #define REG_PWM_CPRDUPD3 (*(WoReg*)0x40094270U)
269 #define REG_PWM_CCNT3 (*(RoReg*)0x40094274U)
270 #define REG_PWM_DT3 (*(RwReg*)0x40094278U)
271 #define REG_PWM_DTUPD3 (*(WoReg*)0x4009427CU)
272 #define REG_PWM_CMR4 (*(RwReg*)0x40094280U)
273 #define REG_PWM_CDTY4 (*(RwReg*)0x40094284U)
274 #define REG_PWM_CDTYUPD4 (*(WoReg*)0x40094288U)
275 #define REG_PWM_CPRD4 (*(RwReg*)0x4009428CU)
276 #define REG_PWM_CPRDUPD4 (*(WoReg*)0x40094290U)
277 #define REG_PWM_CCNT4 (*(RoReg*)0x40094294U)
278 #define REG_PWM_DT4 (*(RwReg*)0x40094298U)
279 #define REG_PWM_DTUPD4 (*(WoReg*)0x4009429CU)
280 #define REG_PWM_CMR5 (*(RwReg*)0x400942A0U)
281 #define REG_PWM_CDTY5 (*(RwReg*)0x400942A4U)
282 #define REG_PWM_CDTYUPD5 (*(WoReg*)0x400942A8U)
283 #define REG_PWM_CPRD5 (*(RwReg*)0x400942ACU)
284 #define REG_PWM_CPRDUPD5 (*(WoReg*)0x400942B0U)
285 #define REG_PWM_CCNT5 (*(RoReg*)0x400942B4U)
286 #define REG_PWM_DT5 (*(RwReg*)0x400942B8U)
287 #define REG_PWM_DTUPD5 (*(WoReg*)0x400942BCU)
288 #define REG_PWM_CMR6 (*(RwReg*)0x400942C0U)
289 #define REG_PWM_CDTY6 (*(RwReg*)0x400942C4U)
290 #define REG_PWM_CDTYUPD6 (*(WoReg*)0x400942C8U)
291 #define REG_PWM_CPRD6 (*(RwReg*)0x400942CCU)
292 #define REG_PWM_CPRDUPD6 (*(WoReg*)0x400942D0U)
293 #define REG_PWM_CCNT6 (*(RoReg*)0x400942D4U)
294 #define REG_PWM_DT6 (*(RwReg*)0x400942D8U)
295 #define REG_PWM_DTUPD6 (*(WoReg*)0x400942DCU)
296 #define REG_PWM_CMR7 (*(RwReg*)0x400942E0U)
297 #define REG_PWM_CDTY7 (*(RwReg*)0x400942E4U)
298 #define REG_PWM_CDTYUPD7 (*(WoReg*)0x400942E8U)
299 #define REG_PWM_CPRD7 (*(RwReg*)0x400942ECU)
300 #define REG_PWM_CPRDUPD7 (*(WoReg*)0x400942F0U)
301 #define REG_PWM_CCNT7 (*(RoReg*)0x400942F4U)
302 #define REG_PWM_DT7 (*(RwReg*)0x400942F8U)
303 #define REG_PWM_DTUPD7 (*(WoReg*)0x400942FCU)
304 #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
305 
306 #endif /* _SAM3XA_PWM_INSTANCE_ */