Go to the documentation of this file.
30 #ifndef _SAME54_TCC_COMPONENT_
31 #define _SAME54_TCC_COMPONENT_
43 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
75 #define TCC_CTRLA_OFFSET 0x00
76 #define TCC_CTRLA_RESETVALUE _U_(0x00000000)
78 #define TCC_CTRLA_SWRST_Pos 0
79 #define TCC_CTRLA_SWRST (_U_(0x1) << TCC_CTRLA_SWRST_Pos)
80 #define TCC_CTRLA_ENABLE_Pos 1
81 #define TCC_CTRLA_ENABLE (_U_(0x1) << TCC_CTRLA_ENABLE_Pos)
82 #define TCC_CTRLA_RESOLUTION_Pos 5
83 #define TCC_CTRLA_RESOLUTION_Msk (_U_(0x3) << TCC_CTRLA_RESOLUTION_Pos)
84 #define TCC_CTRLA_RESOLUTION(value) (TCC_CTRLA_RESOLUTION_Msk & ((value) << TCC_CTRLA_RESOLUTION_Pos))
85 #define TCC_CTRLA_RESOLUTION_NONE_Val _U_(0x0)
86 #define TCC_CTRLA_RESOLUTION_DITH4_Val _U_(0x1)
87 #define TCC_CTRLA_RESOLUTION_DITH5_Val _U_(0x2)
88 #define TCC_CTRLA_RESOLUTION_DITH6_Val _U_(0x3)
89 #define TCC_CTRLA_RESOLUTION_NONE (TCC_CTRLA_RESOLUTION_NONE_Val << TCC_CTRLA_RESOLUTION_Pos)
90 #define TCC_CTRLA_RESOLUTION_DITH4 (TCC_CTRLA_RESOLUTION_DITH4_Val << TCC_CTRLA_RESOLUTION_Pos)
91 #define TCC_CTRLA_RESOLUTION_DITH5 (TCC_CTRLA_RESOLUTION_DITH5_Val << TCC_CTRLA_RESOLUTION_Pos)
92 #define TCC_CTRLA_RESOLUTION_DITH6 (TCC_CTRLA_RESOLUTION_DITH6_Val << TCC_CTRLA_RESOLUTION_Pos)
93 #define TCC_CTRLA_PRESCALER_Pos 8
94 #define TCC_CTRLA_PRESCALER_Msk (_U_(0x7) << TCC_CTRLA_PRESCALER_Pos)
95 #define TCC_CTRLA_PRESCALER(value) (TCC_CTRLA_PRESCALER_Msk & ((value) << TCC_CTRLA_PRESCALER_Pos))
96 #define TCC_CTRLA_PRESCALER_DIV1_Val _U_(0x0)
97 #define TCC_CTRLA_PRESCALER_DIV2_Val _U_(0x1)
98 #define TCC_CTRLA_PRESCALER_DIV4_Val _U_(0x2)
99 #define TCC_CTRLA_PRESCALER_DIV8_Val _U_(0x3)
100 #define TCC_CTRLA_PRESCALER_DIV16_Val _U_(0x4)
101 #define TCC_CTRLA_PRESCALER_DIV64_Val _U_(0x5)
102 #define TCC_CTRLA_PRESCALER_DIV256_Val _U_(0x6)
103 #define TCC_CTRLA_PRESCALER_DIV1024_Val _U_(0x7)
104 #define TCC_CTRLA_PRESCALER_DIV1 (TCC_CTRLA_PRESCALER_DIV1_Val << TCC_CTRLA_PRESCALER_Pos)
105 #define TCC_CTRLA_PRESCALER_DIV2 (TCC_CTRLA_PRESCALER_DIV2_Val << TCC_CTRLA_PRESCALER_Pos)
106 #define TCC_CTRLA_PRESCALER_DIV4 (TCC_CTRLA_PRESCALER_DIV4_Val << TCC_CTRLA_PRESCALER_Pos)
107 #define TCC_CTRLA_PRESCALER_DIV8 (TCC_CTRLA_PRESCALER_DIV8_Val << TCC_CTRLA_PRESCALER_Pos)
108 #define TCC_CTRLA_PRESCALER_DIV16 (TCC_CTRLA_PRESCALER_DIV16_Val << TCC_CTRLA_PRESCALER_Pos)
109 #define TCC_CTRLA_PRESCALER_DIV64 (TCC_CTRLA_PRESCALER_DIV64_Val << TCC_CTRLA_PRESCALER_Pos)
110 #define TCC_CTRLA_PRESCALER_DIV256 (TCC_CTRLA_PRESCALER_DIV256_Val << TCC_CTRLA_PRESCALER_Pos)
111 #define TCC_CTRLA_PRESCALER_DIV1024 (TCC_CTRLA_PRESCALER_DIV1024_Val << TCC_CTRLA_PRESCALER_Pos)
112 #define TCC_CTRLA_RUNSTDBY_Pos 11
113 #define TCC_CTRLA_RUNSTDBY (_U_(0x1) << TCC_CTRLA_RUNSTDBY_Pos)
114 #define TCC_CTRLA_PRESCSYNC_Pos 12
115 #define TCC_CTRLA_PRESCSYNC_Msk (_U_(0x3) << TCC_CTRLA_PRESCSYNC_Pos)
116 #define TCC_CTRLA_PRESCSYNC(value) (TCC_CTRLA_PRESCSYNC_Msk & ((value) << TCC_CTRLA_PRESCSYNC_Pos))
117 #define TCC_CTRLA_PRESCSYNC_GCLK_Val _U_(0x0)
118 #define TCC_CTRLA_PRESCSYNC_PRESC_Val _U_(0x1)
119 #define TCC_CTRLA_PRESCSYNC_RESYNC_Val _U_(0x2)
120 #define TCC_CTRLA_PRESCSYNC_GCLK (TCC_CTRLA_PRESCSYNC_GCLK_Val << TCC_CTRLA_PRESCSYNC_Pos)
121 #define TCC_CTRLA_PRESCSYNC_PRESC (TCC_CTRLA_PRESCSYNC_PRESC_Val << TCC_CTRLA_PRESCSYNC_Pos)
122 #define TCC_CTRLA_PRESCSYNC_RESYNC (TCC_CTRLA_PRESCSYNC_RESYNC_Val << TCC_CTRLA_PRESCSYNC_Pos)
123 #define TCC_CTRLA_ALOCK_Pos 14
124 #define TCC_CTRLA_ALOCK (_U_(0x1) << TCC_CTRLA_ALOCK_Pos)
125 #define TCC_CTRLA_MSYNC_Pos 15
126 #define TCC_CTRLA_MSYNC (_U_(0x1) << TCC_CTRLA_MSYNC_Pos)
127 #define TCC_CTRLA_DMAOS_Pos 23
128 #define TCC_CTRLA_DMAOS (_U_(0x1) << TCC_CTRLA_DMAOS_Pos)
129 #define TCC_CTRLA_CPTEN0_Pos 24
130 #define TCC_CTRLA_CPTEN0 (_U_(1) << TCC_CTRLA_CPTEN0_Pos)
131 #define TCC_CTRLA_CPTEN1_Pos 25
132 #define TCC_CTRLA_CPTEN1 (_U_(1) << TCC_CTRLA_CPTEN1_Pos)
133 #define TCC_CTRLA_CPTEN2_Pos 26
134 #define TCC_CTRLA_CPTEN2 (_U_(1) << TCC_CTRLA_CPTEN2_Pos)
135 #define TCC_CTRLA_CPTEN3_Pos 27
136 #define TCC_CTRLA_CPTEN3 (_U_(1) << TCC_CTRLA_CPTEN3_Pos)
137 #define TCC_CTRLA_CPTEN4_Pos 28
138 #define TCC_CTRLA_CPTEN4 (_U_(1) << TCC_CTRLA_CPTEN4_Pos)
139 #define TCC_CTRLA_CPTEN5_Pos 29
140 #define TCC_CTRLA_CPTEN5 (_U_(1) << TCC_CTRLA_CPTEN5_Pos)
141 #define TCC_CTRLA_CPTEN_Pos 24
142 #define TCC_CTRLA_CPTEN_Msk (_U_(0x3F) << TCC_CTRLA_CPTEN_Pos)
143 #define TCC_CTRLA_CPTEN(value) (TCC_CTRLA_CPTEN_Msk & ((value) << TCC_CTRLA_CPTEN_Pos))
144 #define TCC_CTRLA_MASK _U_(0x3F80FF63)
147 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
160 #define TCC_CTRLBCLR_OFFSET 0x04
161 #define TCC_CTRLBCLR_RESETVALUE _U_(0x00)
163 #define TCC_CTRLBCLR_DIR_Pos 0
164 #define TCC_CTRLBCLR_DIR (_U_(0x1) << TCC_CTRLBCLR_DIR_Pos)
165 #define TCC_CTRLBCLR_LUPD_Pos 1
166 #define TCC_CTRLBCLR_LUPD (_U_(0x1) << TCC_CTRLBCLR_LUPD_Pos)
167 #define TCC_CTRLBCLR_ONESHOT_Pos 2
168 #define TCC_CTRLBCLR_ONESHOT (_U_(0x1) << TCC_CTRLBCLR_ONESHOT_Pos)
169 #define TCC_CTRLBCLR_IDXCMD_Pos 3
170 #define TCC_CTRLBCLR_IDXCMD_Msk (_U_(0x3) << TCC_CTRLBCLR_IDXCMD_Pos)
171 #define TCC_CTRLBCLR_IDXCMD(value) (TCC_CTRLBCLR_IDXCMD_Msk & ((value) << TCC_CTRLBCLR_IDXCMD_Pos))
172 #define TCC_CTRLBCLR_IDXCMD_DISABLE_Val _U_(0x0)
173 #define TCC_CTRLBCLR_IDXCMD_SET_Val _U_(0x1)
174 #define TCC_CTRLBCLR_IDXCMD_CLEAR_Val _U_(0x2)
175 #define TCC_CTRLBCLR_IDXCMD_HOLD_Val _U_(0x3)
176 #define TCC_CTRLBCLR_IDXCMD_DISABLE (TCC_CTRLBCLR_IDXCMD_DISABLE_Val << TCC_CTRLBCLR_IDXCMD_Pos)
177 #define TCC_CTRLBCLR_IDXCMD_SET (TCC_CTRLBCLR_IDXCMD_SET_Val << TCC_CTRLBCLR_IDXCMD_Pos)
178 #define TCC_CTRLBCLR_IDXCMD_CLEAR (TCC_CTRLBCLR_IDXCMD_CLEAR_Val << TCC_CTRLBCLR_IDXCMD_Pos)
179 #define TCC_CTRLBCLR_IDXCMD_HOLD (TCC_CTRLBCLR_IDXCMD_HOLD_Val << TCC_CTRLBCLR_IDXCMD_Pos)
180 #define TCC_CTRLBCLR_CMD_Pos 5
181 #define TCC_CTRLBCLR_CMD_Msk (_U_(0x7) << TCC_CTRLBCLR_CMD_Pos)
182 #define TCC_CTRLBCLR_CMD(value) (TCC_CTRLBCLR_CMD_Msk & ((value) << TCC_CTRLBCLR_CMD_Pos))
183 #define TCC_CTRLBCLR_CMD_NONE_Val _U_(0x0)
184 #define TCC_CTRLBCLR_CMD_RETRIGGER_Val _U_(0x1)
185 #define TCC_CTRLBCLR_CMD_STOP_Val _U_(0x2)
186 #define TCC_CTRLBCLR_CMD_UPDATE_Val _U_(0x3)
187 #define TCC_CTRLBCLR_CMD_READSYNC_Val _U_(0x4)
188 #define TCC_CTRLBCLR_CMD_DMAOS_Val _U_(0x5)
189 #define TCC_CTRLBCLR_CMD_NONE (TCC_CTRLBCLR_CMD_NONE_Val << TCC_CTRLBCLR_CMD_Pos)
190 #define TCC_CTRLBCLR_CMD_RETRIGGER (TCC_CTRLBCLR_CMD_RETRIGGER_Val << TCC_CTRLBCLR_CMD_Pos)
191 #define TCC_CTRLBCLR_CMD_STOP (TCC_CTRLBCLR_CMD_STOP_Val << TCC_CTRLBCLR_CMD_Pos)
192 #define TCC_CTRLBCLR_CMD_UPDATE (TCC_CTRLBCLR_CMD_UPDATE_Val << TCC_CTRLBCLR_CMD_Pos)
193 #define TCC_CTRLBCLR_CMD_READSYNC (TCC_CTRLBCLR_CMD_READSYNC_Val << TCC_CTRLBCLR_CMD_Pos)
194 #define TCC_CTRLBCLR_CMD_DMAOS (TCC_CTRLBCLR_CMD_DMAOS_Val << TCC_CTRLBCLR_CMD_Pos)
195 #define TCC_CTRLBCLR_MASK _U_(0xFF)
198 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
211 #define TCC_CTRLBSET_OFFSET 0x05
212 #define TCC_CTRLBSET_RESETVALUE _U_(0x00)
214 #define TCC_CTRLBSET_DIR_Pos 0
215 #define TCC_CTRLBSET_DIR (_U_(0x1) << TCC_CTRLBSET_DIR_Pos)
216 #define TCC_CTRLBSET_LUPD_Pos 1
217 #define TCC_CTRLBSET_LUPD (_U_(0x1) << TCC_CTRLBSET_LUPD_Pos)
218 #define TCC_CTRLBSET_ONESHOT_Pos 2
219 #define TCC_CTRLBSET_ONESHOT (_U_(0x1) << TCC_CTRLBSET_ONESHOT_Pos)
220 #define TCC_CTRLBSET_IDXCMD_Pos 3
221 #define TCC_CTRLBSET_IDXCMD_Msk (_U_(0x3) << TCC_CTRLBSET_IDXCMD_Pos)
222 #define TCC_CTRLBSET_IDXCMD(value) (TCC_CTRLBSET_IDXCMD_Msk & ((value) << TCC_CTRLBSET_IDXCMD_Pos))
223 #define TCC_CTRLBSET_IDXCMD_DISABLE_Val _U_(0x0)
224 #define TCC_CTRLBSET_IDXCMD_SET_Val _U_(0x1)
225 #define TCC_CTRLBSET_IDXCMD_CLEAR_Val _U_(0x2)
226 #define TCC_CTRLBSET_IDXCMD_HOLD_Val _U_(0x3)
227 #define TCC_CTRLBSET_IDXCMD_DISABLE (TCC_CTRLBSET_IDXCMD_DISABLE_Val << TCC_CTRLBSET_IDXCMD_Pos)
228 #define TCC_CTRLBSET_IDXCMD_SET (TCC_CTRLBSET_IDXCMD_SET_Val << TCC_CTRLBSET_IDXCMD_Pos)
229 #define TCC_CTRLBSET_IDXCMD_CLEAR (TCC_CTRLBSET_IDXCMD_CLEAR_Val << TCC_CTRLBSET_IDXCMD_Pos)
230 #define TCC_CTRLBSET_IDXCMD_HOLD (TCC_CTRLBSET_IDXCMD_HOLD_Val << TCC_CTRLBSET_IDXCMD_Pos)
231 #define TCC_CTRLBSET_CMD_Pos 5
232 #define TCC_CTRLBSET_CMD_Msk (_U_(0x7) << TCC_CTRLBSET_CMD_Pos)
233 #define TCC_CTRLBSET_CMD(value) (TCC_CTRLBSET_CMD_Msk & ((value) << TCC_CTRLBSET_CMD_Pos))
234 #define TCC_CTRLBSET_CMD_NONE_Val _U_(0x0)
235 #define TCC_CTRLBSET_CMD_RETRIGGER_Val _U_(0x1)
236 #define TCC_CTRLBSET_CMD_STOP_Val _U_(0x2)
237 #define TCC_CTRLBSET_CMD_UPDATE_Val _U_(0x3)
238 #define TCC_CTRLBSET_CMD_READSYNC_Val _U_(0x4)
239 #define TCC_CTRLBSET_CMD_DMAOS_Val _U_(0x5)
240 #define TCC_CTRLBSET_CMD_NONE (TCC_CTRLBSET_CMD_NONE_Val << TCC_CTRLBSET_CMD_Pos)
241 #define TCC_CTRLBSET_CMD_RETRIGGER (TCC_CTRLBSET_CMD_RETRIGGER_Val << TCC_CTRLBSET_CMD_Pos)
242 #define TCC_CTRLBSET_CMD_STOP (TCC_CTRLBSET_CMD_STOP_Val << TCC_CTRLBSET_CMD_Pos)
243 #define TCC_CTRLBSET_CMD_UPDATE (TCC_CTRLBSET_CMD_UPDATE_Val << TCC_CTRLBSET_CMD_Pos)
244 #define TCC_CTRLBSET_CMD_READSYNC (TCC_CTRLBSET_CMD_READSYNC_Val << TCC_CTRLBSET_CMD_Pos)
245 #define TCC_CTRLBSET_CMD_DMAOS (TCC_CTRLBSET_CMD_DMAOS_Val << TCC_CTRLBSET_CMD_Pos)
246 #define TCC_CTRLBSET_MASK _U_(0xFF)
249 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
277 #define TCC_SYNCBUSY_OFFSET 0x08
278 #define TCC_SYNCBUSY_RESETVALUE _U_(0x00000000)
280 #define TCC_SYNCBUSY_SWRST_Pos 0
281 #define TCC_SYNCBUSY_SWRST (_U_(0x1) << TCC_SYNCBUSY_SWRST_Pos)
282 #define TCC_SYNCBUSY_ENABLE_Pos 1
283 #define TCC_SYNCBUSY_ENABLE (_U_(0x1) << TCC_SYNCBUSY_ENABLE_Pos)
284 #define TCC_SYNCBUSY_CTRLB_Pos 2
285 #define TCC_SYNCBUSY_CTRLB (_U_(0x1) << TCC_SYNCBUSY_CTRLB_Pos)
286 #define TCC_SYNCBUSY_STATUS_Pos 3
287 #define TCC_SYNCBUSY_STATUS (_U_(0x1) << TCC_SYNCBUSY_STATUS_Pos)
288 #define TCC_SYNCBUSY_COUNT_Pos 4
289 #define TCC_SYNCBUSY_COUNT (_U_(0x1) << TCC_SYNCBUSY_COUNT_Pos)
290 #define TCC_SYNCBUSY_PATT_Pos 5
291 #define TCC_SYNCBUSY_PATT (_U_(0x1) << TCC_SYNCBUSY_PATT_Pos)
292 #define TCC_SYNCBUSY_WAVE_Pos 6
293 #define TCC_SYNCBUSY_WAVE (_U_(0x1) << TCC_SYNCBUSY_WAVE_Pos)
294 #define TCC_SYNCBUSY_PER_Pos 7
295 #define TCC_SYNCBUSY_PER (_U_(0x1) << TCC_SYNCBUSY_PER_Pos)
296 #define TCC_SYNCBUSY_CC0_Pos 8
297 #define TCC_SYNCBUSY_CC0 (_U_(1) << TCC_SYNCBUSY_CC0_Pos)
298 #define TCC_SYNCBUSY_CC1_Pos 9
299 #define TCC_SYNCBUSY_CC1 (_U_(1) << TCC_SYNCBUSY_CC1_Pos)
300 #define TCC_SYNCBUSY_CC2_Pos 10
301 #define TCC_SYNCBUSY_CC2 (_U_(1) << TCC_SYNCBUSY_CC2_Pos)
302 #define TCC_SYNCBUSY_CC3_Pos 11
303 #define TCC_SYNCBUSY_CC3 (_U_(1) << TCC_SYNCBUSY_CC3_Pos)
304 #define TCC_SYNCBUSY_CC4_Pos 12
305 #define TCC_SYNCBUSY_CC4 (_U_(1) << TCC_SYNCBUSY_CC4_Pos)
306 #define TCC_SYNCBUSY_CC5_Pos 13
307 #define TCC_SYNCBUSY_CC5 (_U_(1) << TCC_SYNCBUSY_CC5_Pos)
308 #define TCC_SYNCBUSY_CC_Pos 8
309 #define TCC_SYNCBUSY_CC_Msk (_U_(0x3F) << TCC_SYNCBUSY_CC_Pos)
310 #define TCC_SYNCBUSY_CC(value) (TCC_SYNCBUSY_CC_Msk & ((value) << TCC_SYNCBUSY_CC_Pos))
311 #define TCC_SYNCBUSY_MASK _U_(0x00003FFF)
314 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
335 #define TCC_FCTRLA_OFFSET 0x0C
336 #define TCC_FCTRLA_RESETVALUE _U_(0x00000000)
338 #define TCC_FCTRLA_SRC_Pos 0
339 #define TCC_FCTRLA_SRC_Msk (_U_(0x3) << TCC_FCTRLA_SRC_Pos)
340 #define TCC_FCTRLA_SRC(value) (TCC_FCTRLA_SRC_Msk & ((value) << TCC_FCTRLA_SRC_Pos))
341 #define TCC_FCTRLA_SRC_DISABLE_Val _U_(0x0)
342 #define TCC_FCTRLA_SRC_ENABLE_Val _U_(0x1)
343 #define TCC_FCTRLA_SRC_INVERT_Val _U_(0x2)
344 #define TCC_FCTRLA_SRC_ALTFAULT_Val _U_(0x3)
345 #define TCC_FCTRLA_SRC_DISABLE (TCC_FCTRLA_SRC_DISABLE_Val << TCC_FCTRLA_SRC_Pos)
346 #define TCC_FCTRLA_SRC_ENABLE (TCC_FCTRLA_SRC_ENABLE_Val << TCC_FCTRLA_SRC_Pos)
347 #define TCC_FCTRLA_SRC_INVERT (TCC_FCTRLA_SRC_INVERT_Val << TCC_FCTRLA_SRC_Pos)
348 #define TCC_FCTRLA_SRC_ALTFAULT (TCC_FCTRLA_SRC_ALTFAULT_Val << TCC_FCTRLA_SRC_Pos)
349 #define TCC_FCTRLA_KEEP_Pos 3
350 #define TCC_FCTRLA_KEEP (_U_(0x1) << TCC_FCTRLA_KEEP_Pos)
351 #define TCC_FCTRLA_QUAL_Pos 4
352 #define TCC_FCTRLA_QUAL (_U_(0x1) << TCC_FCTRLA_QUAL_Pos)
353 #define TCC_FCTRLA_BLANK_Pos 5
354 #define TCC_FCTRLA_BLANK_Msk (_U_(0x3) << TCC_FCTRLA_BLANK_Pos)
355 #define TCC_FCTRLA_BLANK(value) (TCC_FCTRLA_BLANK_Msk & ((value) << TCC_FCTRLA_BLANK_Pos))
356 #define TCC_FCTRLA_BLANK_START_Val _U_(0x0)
357 #define TCC_FCTRLA_BLANK_RISE_Val _U_(0x1)
358 #define TCC_FCTRLA_BLANK_FALL_Val _U_(0x2)
359 #define TCC_FCTRLA_BLANK_BOTH_Val _U_(0x3)
360 #define TCC_FCTRLA_BLANK_START (TCC_FCTRLA_BLANK_START_Val << TCC_FCTRLA_BLANK_Pos)
361 #define TCC_FCTRLA_BLANK_RISE (TCC_FCTRLA_BLANK_RISE_Val << TCC_FCTRLA_BLANK_Pos)
362 #define TCC_FCTRLA_BLANK_FALL (TCC_FCTRLA_BLANK_FALL_Val << TCC_FCTRLA_BLANK_Pos)
363 #define TCC_FCTRLA_BLANK_BOTH (TCC_FCTRLA_BLANK_BOTH_Val << TCC_FCTRLA_BLANK_Pos)
364 #define TCC_FCTRLA_RESTART_Pos 7
365 #define TCC_FCTRLA_RESTART (_U_(0x1) << TCC_FCTRLA_RESTART_Pos)
366 #define TCC_FCTRLA_HALT_Pos 8
367 #define TCC_FCTRLA_HALT_Msk (_U_(0x3) << TCC_FCTRLA_HALT_Pos)
368 #define TCC_FCTRLA_HALT(value) (TCC_FCTRLA_HALT_Msk & ((value) << TCC_FCTRLA_HALT_Pos))
369 #define TCC_FCTRLA_HALT_DISABLE_Val _U_(0x0)
370 #define TCC_FCTRLA_HALT_HW_Val _U_(0x1)
371 #define TCC_FCTRLA_HALT_SW_Val _U_(0x2)
372 #define TCC_FCTRLA_HALT_NR_Val _U_(0x3)
373 #define TCC_FCTRLA_HALT_DISABLE (TCC_FCTRLA_HALT_DISABLE_Val << TCC_FCTRLA_HALT_Pos)
374 #define TCC_FCTRLA_HALT_HW (TCC_FCTRLA_HALT_HW_Val << TCC_FCTRLA_HALT_Pos)
375 #define TCC_FCTRLA_HALT_SW (TCC_FCTRLA_HALT_SW_Val << TCC_FCTRLA_HALT_Pos)
376 #define TCC_FCTRLA_HALT_NR (TCC_FCTRLA_HALT_NR_Val << TCC_FCTRLA_HALT_Pos)
377 #define TCC_FCTRLA_CHSEL_Pos 10
378 #define TCC_FCTRLA_CHSEL_Msk (_U_(0x3) << TCC_FCTRLA_CHSEL_Pos)
379 #define TCC_FCTRLA_CHSEL(value) (TCC_FCTRLA_CHSEL_Msk & ((value) << TCC_FCTRLA_CHSEL_Pos))
380 #define TCC_FCTRLA_CHSEL_CC0_Val _U_(0x0)
381 #define TCC_FCTRLA_CHSEL_CC1_Val _U_(0x1)
382 #define TCC_FCTRLA_CHSEL_CC2_Val _U_(0x2)
383 #define TCC_FCTRLA_CHSEL_CC3_Val _U_(0x3)
384 #define TCC_FCTRLA_CHSEL_CC0 (TCC_FCTRLA_CHSEL_CC0_Val << TCC_FCTRLA_CHSEL_Pos)
385 #define TCC_FCTRLA_CHSEL_CC1 (TCC_FCTRLA_CHSEL_CC1_Val << TCC_FCTRLA_CHSEL_Pos)
386 #define TCC_FCTRLA_CHSEL_CC2 (TCC_FCTRLA_CHSEL_CC2_Val << TCC_FCTRLA_CHSEL_Pos)
387 #define TCC_FCTRLA_CHSEL_CC3 (TCC_FCTRLA_CHSEL_CC3_Val << TCC_FCTRLA_CHSEL_Pos)
388 #define TCC_FCTRLA_CAPTURE_Pos 12
389 #define TCC_FCTRLA_CAPTURE_Msk (_U_(0x7) << TCC_FCTRLA_CAPTURE_Pos)
390 #define TCC_FCTRLA_CAPTURE(value) (TCC_FCTRLA_CAPTURE_Msk & ((value) << TCC_FCTRLA_CAPTURE_Pos))
391 #define TCC_FCTRLA_CAPTURE_DISABLE_Val _U_(0x0)
392 #define TCC_FCTRLA_CAPTURE_CAPT_Val _U_(0x1)
393 #define TCC_FCTRLA_CAPTURE_CAPTMIN_Val _U_(0x2)
394 #define TCC_FCTRLA_CAPTURE_CAPTMAX_Val _U_(0x3)
395 #define TCC_FCTRLA_CAPTURE_LOCMIN_Val _U_(0x4)
396 #define TCC_FCTRLA_CAPTURE_LOCMAX_Val _U_(0x5)
397 #define TCC_FCTRLA_CAPTURE_DERIV0_Val _U_(0x6)
398 #define TCC_FCTRLA_CAPTURE_CAPTMARK_Val _U_(0x7)
399 #define TCC_FCTRLA_CAPTURE_DISABLE (TCC_FCTRLA_CAPTURE_DISABLE_Val << TCC_FCTRLA_CAPTURE_Pos)
400 #define TCC_FCTRLA_CAPTURE_CAPT (TCC_FCTRLA_CAPTURE_CAPT_Val << TCC_FCTRLA_CAPTURE_Pos)
401 #define TCC_FCTRLA_CAPTURE_CAPTMIN (TCC_FCTRLA_CAPTURE_CAPTMIN_Val << TCC_FCTRLA_CAPTURE_Pos)
402 #define TCC_FCTRLA_CAPTURE_CAPTMAX (TCC_FCTRLA_CAPTURE_CAPTMAX_Val << TCC_FCTRLA_CAPTURE_Pos)
403 #define TCC_FCTRLA_CAPTURE_LOCMIN (TCC_FCTRLA_CAPTURE_LOCMIN_Val << TCC_FCTRLA_CAPTURE_Pos)
404 #define TCC_FCTRLA_CAPTURE_LOCMAX (TCC_FCTRLA_CAPTURE_LOCMAX_Val << TCC_FCTRLA_CAPTURE_Pos)
405 #define TCC_FCTRLA_CAPTURE_DERIV0 (TCC_FCTRLA_CAPTURE_DERIV0_Val << TCC_FCTRLA_CAPTURE_Pos)
406 #define TCC_FCTRLA_CAPTURE_CAPTMARK (TCC_FCTRLA_CAPTURE_CAPTMARK_Val << TCC_FCTRLA_CAPTURE_Pos)
407 #define TCC_FCTRLA_BLANKPRESC_Pos 15
408 #define TCC_FCTRLA_BLANKPRESC (_U_(0x1) << TCC_FCTRLA_BLANKPRESC_Pos)
409 #define TCC_FCTRLA_BLANKVAL_Pos 16
410 #define TCC_FCTRLA_BLANKVAL_Msk (_U_(0xFF) << TCC_FCTRLA_BLANKVAL_Pos)
411 #define TCC_FCTRLA_BLANKVAL(value) (TCC_FCTRLA_BLANKVAL_Msk & ((value) << TCC_FCTRLA_BLANKVAL_Pos))
412 #define TCC_FCTRLA_FILTERVAL_Pos 24
413 #define TCC_FCTRLA_FILTERVAL_Msk (_U_(0xF) << TCC_FCTRLA_FILTERVAL_Pos)
414 #define TCC_FCTRLA_FILTERVAL(value) (TCC_FCTRLA_FILTERVAL_Msk & ((value) << TCC_FCTRLA_FILTERVAL_Pos))
415 #define TCC_FCTRLA_MASK _U_(0x0FFFFFFB)
418 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
439 #define TCC_FCTRLB_OFFSET 0x10
440 #define TCC_FCTRLB_RESETVALUE _U_(0x00000000)
442 #define TCC_FCTRLB_SRC_Pos 0
443 #define TCC_FCTRLB_SRC_Msk (_U_(0x3) << TCC_FCTRLB_SRC_Pos)
444 #define TCC_FCTRLB_SRC(value) (TCC_FCTRLB_SRC_Msk & ((value) << TCC_FCTRLB_SRC_Pos))
445 #define TCC_FCTRLB_SRC_DISABLE_Val _U_(0x0)
446 #define TCC_FCTRLB_SRC_ENABLE_Val _U_(0x1)
447 #define TCC_FCTRLB_SRC_INVERT_Val _U_(0x2)
448 #define TCC_FCTRLB_SRC_ALTFAULT_Val _U_(0x3)
449 #define TCC_FCTRLB_SRC_DISABLE (TCC_FCTRLB_SRC_DISABLE_Val << TCC_FCTRLB_SRC_Pos)
450 #define TCC_FCTRLB_SRC_ENABLE (TCC_FCTRLB_SRC_ENABLE_Val << TCC_FCTRLB_SRC_Pos)
451 #define TCC_FCTRLB_SRC_INVERT (TCC_FCTRLB_SRC_INVERT_Val << TCC_FCTRLB_SRC_Pos)
452 #define TCC_FCTRLB_SRC_ALTFAULT (TCC_FCTRLB_SRC_ALTFAULT_Val << TCC_FCTRLB_SRC_Pos)
453 #define TCC_FCTRLB_KEEP_Pos 3
454 #define TCC_FCTRLB_KEEP (_U_(0x1) << TCC_FCTRLB_KEEP_Pos)
455 #define TCC_FCTRLB_QUAL_Pos 4
456 #define TCC_FCTRLB_QUAL (_U_(0x1) << TCC_FCTRLB_QUAL_Pos)
457 #define TCC_FCTRLB_BLANK_Pos 5
458 #define TCC_FCTRLB_BLANK_Msk (_U_(0x3) << TCC_FCTRLB_BLANK_Pos)
459 #define TCC_FCTRLB_BLANK(value) (TCC_FCTRLB_BLANK_Msk & ((value) << TCC_FCTRLB_BLANK_Pos))
460 #define TCC_FCTRLB_BLANK_START_Val _U_(0x0)
461 #define TCC_FCTRLB_BLANK_RISE_Val _U_(0x1)
462 #define TCC_FCTRLB_BLANK_FALL_Val _U_(0x2)
463 #define TCC_FCTRLB_BLANK_BOTH_Val _U_(0x3)
464 #define TCC_FCTRLB_BLANK_START (TCC_FCTRLB_BLANK_START_Val << TCC_FCTRLB_BLANK_Pos)
465 #define TCC_FCTRLB_BLANK_RISE (TCC_FCTRLB_BLANK_RISE_Val << TCC_FCTRLB_BLANK_Pos)
466 #define TCC_FCTRLB_BLANK_FALL (TCC_FCTRLB_BLANK_FALL_Val << TCC_FCTRLB_BLANK_Pos)
467 #define TCC_FCTRLB_BLANK_BOTH (TCC_FCTRLB_BLANK_BOTH_Val << TCC_FCTRLB_BLANK_Pos)
468 #define TCC_FCTRLB_RESTART_Pos 7
469 #define TCC_FCTRLB_RESTART (_U_(0x1) << TCC_FCTRLB_RESTART_Pos)
470 #define TCC_FCTRLB_HALT_Pos 8
471 #define TCC_FCTRLB_HALT_Msk (_U_(0x3) << TCC_FCTRLB_HALT_Pos)
472 #define TCC_FCTRLB_HALT(value) (TCC_FCTRLB_HALT_Msk & ((value) << TCC_FCTRLB_HALT_Pos))
473 #define TCC_FCTRLB_HALT_DISABLE_Val _U_(0x0)
474 #define TCC_FCTRLB_HALT_HW_Val _U_(0x1)
475 #define TCC_FCTRLB_HALT_SW_Val _U_(0x2)
476 #define TCC_FCTRLB_HALT_NR_Val _U_(0x3)
477 #define TCC_FCTRLB_HALT_DISABLE (TCC_FCTRLB_HALT_DISABLE_Val << TCC_FCTRLB_HALT_Pos)
478 #define TCC_FCTRLB_HALT_HW (TCC_FCTRLB_HALT_HW_Val << TCC_FCTRLB_HALT_Pos)
479 #define TCC_FCTRLB_HALT_SW (TCC_FCTRLB_HALT_SW_Val << TCC_FCTRLB_HALT_Pos)
480 #define TCC_FCTRLB_HALT_NR (TCC_FCTRLB_HALT_NR_Val << TCC_FCTRLB_HALT_Pos)
481 #define TCC_FCTRLB_CHSEL_Pos 10
482 #define TCC_FCTRLB_CHSEL_Msk (_U_(0x3) << TCC_FCTRLB_CHSEL_Pos)
483 #define TCC_FCTRLB_CHSEL(value) (TCC_FCTRLB_CHSEL_Msk & ((value) << TCC_FCTRLB_CHSEL_Pos))
484 #define TCC_FCTRLB_CHSEL_CC0_Val _U_(0x0)
485 #define TCC_FCTRLB_CHSEL_CC1_Val _U_(0x1)
486 #define TCC_FCTRLB_CHSEL_CC2_Val _U_(0x2)
487 #define TCC_FCTRLB_CHSEL_CC3_Val _U_(0x3)
488 #define TCC_FCTRLB_CHSEL_CC0 (TCC_FCTRLB_CHSEL_CC0_Val << TCC_FCTRLB_CHSEL_Pos)
489 #define TCC_FCTRLB_CHSEL_CC1 (TCC_FCTRLB_CHSEL_CC1_Val << TCC_FCTRLB_CHSEL_Pos)
490 #define TCC_FCTRLB_CHSEL_CC2 (TCC_FCTRLB_CHSEL_CC2_Val << TCC_FCTRLB_CHSEL_Pos)
491 #define TCC_FCTRLB_CHSEL_CC3 (TCC_FCTRLB_CHSEL_CC3_Val << TCC_FCTRLB_CHSEL_Pos)
492 #define TCC_FCTRLB_CAPTURE_Pos 12
493 #define TCC_FCTRLB_CAPTURE_Msk (_U_(0x7) << TCC_FCTRLB_CAPTURE_Pos)
494 #define TCC_FCTRLB_CAPTURE(value) (TCC_FCTRLB_CAPTURE_Msk & ((value) << TCC_FCTRLB_CAPTURE_Pos))
495 #define TCC_FCTRLB_CAPTURE_DISABLE_Val _U_(0x0)
496 #define TCC_FCTRLB_CAPTURE_CAPT_Val _U_(0x1)
497 #define TCC_FCTRLB_CAPTURE_CAPTMIN_Val _U_(0x2)
498 #define TCC_FCTRLB_CAPTURE_CAPTMAX_Val _U_(0x3)
499 #define TCC_FCTRLB_CAPTURE_LOCMIN_Val _U_(0x4)
500 #define TCC_FCTRLB_CAPTURE_LOCMAX_Val _U_(0x5)
501 #define TCC_FCTRLB_CAPTURE_DERIV0_Val _U_(0x6)
502 #define TCC_FCTRLB_CAPTURE_CAPTMARK_Val _U_(0x7)
503 #define TCC_FCTRLB_CAPTURE_DISABLE (TCC_FCTRLB_CAPTURE_DISABLE_Val << TCC_FCTRLB_CAPTURE_Pos)
504 #define TCC_FCTRLB_CAPTURE_CAPT (TCC_FCTRLB_CAPTURE_CAPT_Val << TCC_FCTRLB_CAPTURE_Pos)
505 #define TCC_FCTRLB_CAPTURE_CAPTMIN (TCC_FCTRLB_CAPTURE_CAPTMIN_Val << TCC_FCTRLB_CAPTURE_Pos)
506 #define TCC_FCTRLB_CAPTURE_CAPTMAX (TCC_FCTRLB_CAPTURE_CAPTMAX_Val << TCC_FCTRLB_CAPTURE_Pos)
507 #define TCC_FCTRLB_CAPTURE_LOCMIN (TCC_FCTRLB_CAPTURE_LOCMIN_Val << TCC_FCTRLB_CAPTURE_Pos)
508 #define TCC_FCTRLB_CAPTURE_LOCMAX (TCC_FCTRLB_CAPTURE_LOCMAX_Val << TCC_FCTRLB_CAPTURE_Pos)
509 #define TCC_FCTRLB_CAPTURE_DERIV0 (TCC_FCTRLB_CAPTURE_DERIV0_Val << TCC_FCTRLB_CAPTURE_Pos)
510 #define TCC_FCTRLB_CAPTURE_CAPTMARK (TCC_FCTRLB_CAPTURE_CAPTMARK_Val << TCC_FCTRLB_CAPTURE_Pos)
511 #define TCC_FCTRLB_BLANKPRESC_Pos 15
512 #define TCC_FCTRLB_BLANKPRESC (_U_(0x1) << TCC_FCTRLB_BLANKPRESC_Pos)
513 #define TCC_FCTRLB_BLANKVAL_Pos 16
514 #define TCC_FCTRLB_BLANKVAL_Msk (_U_(0xFF) << TCC_FCTRLB_BLANKVAL_Pos)
515 #define TCC_FCTRLB_BLANKVAL(value) (TCC_FCTRLB_BLANKVAL_Msk & ((value) << TCC_FCTRLB_BLANKVAL_Pos))
516 #define TCC_FCTRLB_FILTERVAL_Pos 24
517 #define TCC_FCTRLB_FILTERVAL_Msk (_U_(0xF) << TCC_FCTRLB_FILTERVAL_Pos)
518 #define TCC_FCTRLB_FILTERVAL(value) (TCC_FCTRLB_FILTERVAL_Msk & ((value) << TCC_FCTRLB_FILTERVAL_Pos))
519 #define TCC_FCTRLB_MASK _U_(0x0FFFFFFB)
522 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
544 #define TCC_WEXCTRL_OFFSET 0x14
545 #define TCC_WEXCTRL_RESETVALUE _U_(0x00000000)
547 #define TCC_WEXCTRL_OTMX_Pos 0
548 #define TCC_WEXCTRL_OTMX_Msk (_U_(0x3) << TCC_WEXCTRL_OTMX_Pos)
549 #define TCC_WEXCTRL_OTMX(value) (TCC_WEXCTRL_OTMX_Msk & ((value) << TCC_WEXCTRL_OTMX_Pos))
550 #define TCC_WEXCTRL_DTIEN0_Pos 8
551 #define TCC_WEXCTRL_DTIEN0 (_U_(1) << TCC_WEXCTRL_DTIEN0_Pos)
552 #define TCC_WEXCTRL_DTIEN1_Pos 9
553 #define TCC_WEXCTRL_DTIEN1 (_U_(1) << TCC_WEXCTRL_DTIEN1_Pos)
554 #define TCC_WEXCTRL_DTIEN2_Pos 10
555 #define TCC_WEXCTRL_DTIEN2 (_U_(1) << TCC_WEXCTRL_DTIEN2_Pos)
556 #define TCC_WEXCTRL_DTIEN3_Pos 11
557 #define TCC_WEXCTRL_DTIEN3 (_U_(1) << TCC_WEXCTRL_DTIEN3_Pos)
558 #define TCC_WEXCTRL_DTIEN_Pos 8
559 #define TCC_WEXCTRL_DTIEN_Msk (_U_(0xF) << TCC_WEXCTRL_DTIEN_Pos)
560 #define TCC_WEXCTRL_DTIEN(value) (TCC_WEXCTRL_DTIEN_Msk & ((value) << TCC_WEXCTRL_DTIEN_Pos))
561 #define TCC_WEXCTRL_DTLS_Pos 16
562 #define TCC_WEXCTRL_DTLS_Msk (_U_(0xFF) << TCC_WEXCTRL_DTLS_Pos)
563 #define TCC_WEXCTRL_DTLS(value) (TCC_WEXCTRL_DTLS_Msk & ((value) << TCC_WEXCTRL_DTLS_Pos))
564 #define TCC_WEXCTRL_DTHS_Pos 24
565 #define TCC_WEXCTRL_DTHS_Msk (_U_(0xFF) << TCC_WEXCTRL_DTHS_Pos)
566 #define TCC_WEXCTRL_DTHS(value) (TCC_WEXCTRL_DTHS_Msk & ((value) << TCC_WEXCTRL_DTHS_Pos))
567 #define TCC_WEXCTRL_MASK _U_(0xFFFF0F03)
570 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
610 #define TCC_DRVCTRL_OFFSET 0x18
611 #define TCC_DRVCTRL_RESETVALUE _U_(0x00000000)
613 #define TCC_DRVCTRL_NRE0_Pos 0
614 #define TCC_DRVCTRL_NRE0 (_U_(1) << TCC_DRVCTRL_NRE0_Pos)
615 #define TCC_DRVCTRL_NRE1_Pos 1
616 #define TCC_DRVCTRL_NRE1 (_U_(1) << TCC_DRVCTRL_NRE1_Pos)
617 #define TCC_DRVCTRL_NRE2_Pos 2
618 #define TCC_DRVCTRL_NRE2 (_U_(1) << TCC_DRVCTRL_NRE2_Pos)
619 #define TCC_DRVCTRL_NRE3_Pos 3
620 #define TCC_DRVCTRL_NRE3 (_U_(1) << TCC_DRVCTRL_NRE3_Pos)
621 #define TCC_DRVCTRL_NRE4_Pos 4
622 #define TCC_DRVCTRL_NRE4 (_U_(1) << TCC_DRVCTRL_NRE4_Pos)
623 #define TCC_DRVCTRL_NRE5_Pos 5
624 #define TCC_DRVCTRL_NRE5 (_U_(1) << TCC_DRVCTRL_NRE5_Pos)
625 #define TCC_DRVCTRL_NRE6_Pos 6
626 #define TCC_DRVCTRL_NRE6 (_U_(1) << TCC_DRVCTRL_NRE6_Pos)
627 #define TCC_DRVCTRL_NRE7_Pos 7
628 #define TCC_DRVCTRL_NRE7 (_U_(1) << TCC_DRVCTRL_NRE7_Pos)
629 #define TCC_DRVCTRL_NRE_Pos 0
630 #define TCC_DRVCTRL_NRE_Msk (_U_(0xFF) << TCC_DRVCTRL_NRE_Pos)
631 #define TCC_DRVCTRL_NRE(value) (TCC_DRVCTRL_NRE_Msk & ((value) << TCC_DRVCTRL_NRE_Pos))
632 #define TCC_DRVCTRL_NRV0_Pos 8
633 #define TCC_DRVCTRL_NRV0 (_U_(1) << TCC_DRVCTRL_NRV0_Pos)
634 #define TCC_DRVCTRL_NRV1_Pos 9
635 #define TCC_DRVCTRL_NRV1 (_U_(1) << TCC_DRVCTRL_NRV1_Pos)
636 #define TCC_DRVCTRL_NRV2_Pos 10
637 #define TCC_DRVCTRL_NRV2 (_U_(1) << TCC_DRVCTRL_NRV2_Pos)
638 #define TCC_DRVCTRL_NRV3_Pos 11
639 #define TCC_DRVCTRL_NRV3 (_U_(1) << TCC_DRVCTRL_NRV3_Pos)
640 #define TCC_DRVCTRL_NRV4_Pos 12
641 #define TCC_DRVCTRL_NRV4 (_U_(1) << TCC_DRVCTRL_NRV4_Pos)
642 #define TCC_DRVCTRL_NRV5_Pos 13
643 #define TCC_DRVCTRL_NRV5 (_U_(1) << TCC_DRVCTRL_NRV5_Pos)
644 #define TCC_DRVCTRL_NRV6_Pos 14
645 #define TCC_DRVCTRL_NRV6 (_U_(1) << TCC_DRVCTRL_NRV6_Pos)
646 #define TCC_DRVCTRL_NRV7_Pos 15
647 #define TCC_DRVCTRL_NRV7 (_U_(1) << TCC_DRVCTRL_NRV7_Pos)
648 #define TCC_DRVCTRL_NRV_Pos 8
649 #define TCC_DRVCTRL_NRV_Msk (_U_(0xFF) << TCC_DRVCTRL_NRV_Pos)
650 #define TCC_DRVCTRL_NRV(value) (TCC_DRVCTRL_NRV_Msk & ((value) << TCC_DRVCTRL_NRV_Pos))
651 #define TCC_DRVCTRL_INVEN0_Pos 16
652 #define TCC_DRVCTRL_INVEN0 (_U_(1) << TCC_DRVCTRL_INVEN0_Pos)
653 #define TCC_DRVCTRL_INVEN1_Pos 17
654 #define TCC_DRVCTRL_INVEN1 (_U_(1) << TCC_DRVCTRL_INVEN1_Pos)
655 #define TCC_DRVCTRL_INVEN2_Pos 18
656 #define TCC_DRVCTRL_INVEN2 (_U_(1) << TCC_DRVCTRL_INVEN2_Pos)
657 #define TCC_DRVCTRL_INVEN3_Pos 19
658 #define TCC_DRVCTRL_INVEN3 (_U_(1) << TCC_DRVCTRL_INVEN3_Pos)
659 #define TCC_DRVCTRL_INVEN4_Pos 20
660 #define TCC_DRVCTRL_INVEN4 (_U_(1) << TCC_DRVCTRL_INVEN4_Pos)
661 #define TCC_DRVCTRL_INVEN5_Pos 21
662 #define TCC_DRVCTRL_INVEN5 (_U_(1) << TCC_DRVCTRL_INVEN5_Pos)
663 #define TCC_DRVCTRL_INVEN6_Pos 22
664 #define TCC_DRVCTRL_INVEN6 (_U_(1) << TCC_DRVCTRL_INVEN6_Pos)
665 #define TCC_DRVCTRL_INVEN7_Pos 23
666 #define TCC_DRVCTRL_INVEN7 (_U_(1) << TCC_DRVCTRL_INVEN7_Pos)
667 #define TCC_DRVCTRL_INVEN_Pos 16
668 #define TCC_DRVCTRL_INVEN_Msk (_U_(0xFF) << TCC_DRVCTRL_INVEN_Pos)
669 #define TCC_DRVCTRL_INVEN(value) (TCC_DRVCTRL_INVEN_Msk & ((value) << TCC_DRVCTRL_INVEN_Pos))
670 #define TCC_DRVCTRL_FILTERVAL0_Pos 24
671 #define TCC_DRVCTRL_FILTERVAL0_Msk (_U_(0xF) << TCC_DRVCTRL_FILTERVAL0_Pos)
672 #define TCC_DRVCTRL_FILTERVAL0(value) (TCC_DRVCTRL_FILTERVAL0_Msk & ((value) << TCC_DRVCTRL_FILTERVAL0_Pos))
673 #define TCC_DRVCTRL_FILTERVAL1_Pos 28
674 #define TCC_DRVCTRL_FILTERVAL1_Msk (_U_(0xF) << TCC_DRVCTRL_FILTERVAL1_Pos)
675 #define TCC_DRVCTRL_FILTERVAL1(value) (TCC_DRVCTRL_FILTERVAL1_Msk & ((value) << TCC_DRVCTRL_FILTERVAL1_Pos))
676 #define TCC_DRVCTRL_MASK _U_(0xFFFFFFFF)
679 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
691 #define TCC_DBGCTRL_OFFSET 0x1E
692 #define TCC_DBGCTRL_RESETVALUE _U_(0x00)
694 #define TCC_DBGCTRL_DBGRUN_Pos 0
695 #define TCC_DBGCTRL_DBGRUN (_U_(0x1) << TCC_DBGCTRL_DBGRUN_Pos)
696 #define TCC_DBGCTRL_FDDBD_Pos 2
697 #define TCC_DBGCTRL_FDDBD (_U_(0x1) << TCC_DBGCTRL_FDDBD_Pos)
698 #define TCC_DBGCTRL_MASK _U_(0x05)
701 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
743 #define TCC_EVCTRL_OFFSET 0x20
744 #define TCC_EVCTRL_RESETVALUE _U_(0x00000000)
746 #define TCC_EVCTRL_EVACT0_Pos 0
747 #define TCC_EVCTRL_EVACT0_Msk (_U_(0x7) << TCC_EVCTRL_EVACT0_Pos)
748 #define TCC_EVCTRL_EVACT0(value) (TCC_EVCTRL_EVACT0_Msk & ((value) << TCC_EVCTRL_EVACT0_Pos))
749 #define TCC_EVCTRL_EVACT0_OFF_Val _U_(0x0)
750 #define TCC_EVCTRL_EVACT0_RETRIGGER_Val _U_(0x1)
751 #define TCC_EVCTRL_EVACT0_COUNTEV_Val _U_(0x2)
752 #define TCC_EVCTRL_EVACT0_START_Val _U_(0x3)
753 #define TCC_EVCTRL_EVACT0_INC_Val _U_(0x4)
754 #define TCC_EVCTRL_EVACT0_COUNT_Val _U_(0x5)
755 #define TCC_EVCTRL_EVACT0_STAMP_Val _U_(0x6)
756 #define TCC_EVCTRL_EVACT0_FAULT_Val _U_(0x7)
757 #define TCC_EVCTRL_EVACT0_OFF (TCC_EVCTRL_EVACT0_OFF_Val << TCC_EVCTRL_EVACT0_Pos)
758 #define TCC_EVCTRL_EVACT0_RETRIGGER (TCC_EVCTRL_EVACT0_RETRIGGER_Val << TCC_EVCTRL_EVACT0_Pos)
759 #define TCC_EVCTRL_EVACT0_COUNTEV (TCC_EVCTRL_EVACT0_COUNTEV_Val << TCC_EVCTRL_EVACT0_Pos)
760 #define TCC_EVCTRL_EVACT0_START (TCC_EVCTRL_EVACT0_START_Val << TCC_EVCTRL_EVACT0_Pos)
761 #define TCC_EVCTRL_EVACT0_INC (TCC_EVCTRL_EVACT0_INC_Val << TCC_EVCTRL_EVACT0_Pos)
762 #define TCC_EVCTRL_EVACT0_COUNT (TCC_EVCTRL_EVACT0_COUNT_Val << TCC_EVCTRL_EVACT0_Pos)
763 #define TCC_EVCTRL_EVACT0_STAMP (TCC_EVCTRL_EVACT0_STAMP_Val << TCC_EVCTRL_EVACT0_Pos)
764 #define TCC_EVCTRL_EVACT0_FAULT (TCC_EVCTRL_EVACT0_FAULT_Val << TCC_EVCTRL_EVACT0_Pos)
765 #define TCC_EVCTRL_EVACT1_Pos 3
766 #define TCC_EVCTRL_EVACT1_Msk (_U_(0x7) << TCC_EVCTRL_EVACT1_Pos)
767 #define TCC_EVCTRL_EVACT1(value) (TCC_EVCTRL_EVACT1_Msk & ((value) << TCC_EVCTRL_EVACT1_Pos))
768 #define TCC_EVCTRL_EVACT1_OFF_Val _U_(0x0)
769 #define TCC_EVCTRL_EVACT1_RETRIGGER_Val _U_(0x1)
770 #define TCC_EVCTRL_EVACT1_DIR_Val _U_(0x2)
771 #define TCC_EVCTRL_EVACT1_STOP_Val _U_(0x3)
772 #define TCC_EVCTRL_EVACT1_DEC_Val _U_(0x4)
773 #define TCC_EVCTRL_EVACT1_PPW_Val _U_(0x5)
774 #define TCC_EVCTRL_EVACT1_PWP_Val _U_(0x6)
775 #define TCC_EVCTRL_EVACT1_FAULT_Val _U_(0x7)
776 #define TCC_EVCTRL_EVACT1_OFF (TCC_EVCTRL_EVACT1_OFF_Val << TCC_EVCTRL_EVACT1_Pos)
777 #define TCC_EVCTRL_EVACT1_RETRIGGER (TCC_EVCTRL_EVACT1_RETRIGGER_Val << TCC_EVCTRL_EVACT1_Pos)
778 #define TCC_EVCTRL_EVACT1_DIR (TCC_EVCTRL_EVACT1_DIR_Val << TCC_EVCTRL_EVACT1_Pos)
779 #define TCC_EVCTRL_EVACT1_STOP (TCC_EVCTRL_EVACT1_STOP_Val << TCC_EVCTRL_EVACT1_Pos)
780 #define TCC_EVCTRL_EVACT1_DEC (TCC_EVCTRL_EVACT1_DEC_Val << TCC_EVCTRL_EVACT1_Pos)
781 #define TCC_EVCTRL_EVACT1_PPW (TCC_EVCTRL_EVACT1_PPW_Val << TCC_EVCTRL_EVACT1_Pos)
782 #define TCC_EVCTRL_EVACT1_PWP (TCC_EVCTRL_EVACT1_PWP_Val << TCC_EVCTRL_EVACT1_Pos)
783 #define TCC_EVCTRL_EVACT1_FAULT (TCC_EVCTRL_EVACT1_FAULT_Val << TCC_EVCTRL_EVACT1_Pos)
784 #define TCC_EVCTRL_CNTSEL_Pos 6
785 #define TCC_EVCTRL_CNTSEL_Msk (_U_(0x3) << TCC_EVCTRL_CNTSEL_Pos)
786 #define TCC_EVCTRL_CNTSEL(value) (TCC_EVCTRL_CNTSEL_Msk & ((value) << TCC_EVCTRL_CNTSEL_Pos))
787 #define TCC_EVCTRL_CNTSEL_START_Val _U_(0x0)
788 #define TCC_EVCTRL_CNTSEL_END_Val _U_(0x1)
789 #define TCC_EVCTRL_CNTSEL_BETWEEN_Val _U_(0x2)
790 #define TCC_EVCTRL_CNTSEL_BOUNDARY_Val _U_(0x3)
791 #define TCC_EVCTRL_CNTSEL_START (TCC_EVCTRL_CNTSEL_START_Val << TCC_EVCTRL_CNTSEL_Pos)
792 #define TCC_EVCTRL_CNTSEL_END (TCC_EVCTRL_CNTSEL_END_Val << TCC_EVCTRL_CNTSEL_Pos)
793 #define TCC_EVCTRL_CNTSEL_BETWEEN (TCC_EVCTRL_CNTSEL_BETWEEN_Val << TCC_EVCTRL_CNTSEL_Pos)
794 #define TCC_EVCTRL_CNTSEL_BOUNDARY (TCC_EVCTRL_CNTSEL_BOUNDARY_Val << TCC_EVCTRL_CNTSEL_Pos)
795 #define TCC_EVCTRL_OVFEO_Pos 8
796 #define TCC_EVCTRL_OVFEO (_U_(0x1) << TCC_EVCTRL_OVFEO_Pos)
797 #define TCC_EVCTRL_TRGEO_Pos 9
798 #define TCC_EVCTRL_TRGEO (_U_(0x1) << TCC_EVCTRL_TRGEO_Pos)
799 #define TCC_EVCTRL_CNTEO_Pos 10
800 #define TCC_EVCTRL_CNTEO (_U_(0x1) << TCC_EVCTRL_CNTEO_Pos)
801 #define TCC_EVCTRL_TCINV0_Pos 12
802 #define TCC_EVCTRL_TCINV0 (_U_(1) << TCC_EVCTRL_TCINV0_Pos)
803 #define TCC_EVCTRL_TCINV1_Pos 13
804 #define TCC_EVCTRL_TCINV1 (_U_(1) << TCC_EVCTRL_TCINV1_Pos)
805 #define TCC_EVCTRL_TCINV_Pos 12
806 #define TCC_EVCTRL_TCINV_Msk (_U_(0x3) << TCC_EVCTRL_TCINV_Pos)
807 #define TCC_EVCTRL_TCINV(value) (TCC_EVCTRL_TCINV_Msk & ((value) << TCC_EVCTRL_TCINV_Pos))
808 #define TCC_EVCTRL_TCEI0_Pos 14
809 #define TCC_EVCTRL_TCEI0 (_U_(1) << TCC_EVCTRL_TCEI0_Pos)
810 #define TCC_EVCTRL_TCEI1_Pos 15
811 #define TCC_EVCTRL_TCEI1 (_U_(1) << TCC_EVCTRL_TCEI1_Pos)
812 #define TCC_EVCTRL_TCEI_Pos 14
813 #define TCC_EVCTRL_TCEI_Msk (_U_(0x3) << TCC_EVCTRL_TCEI_Pos)
814 #define TCC_EVCTRL_TCEI(value) (TCC_EVCTRL_TCEI_Msk & ((value) << TCC_EVCTRL_TCEI_Pos))
815 #define TCC_EVCTRL_MCEI0_Pos 16
816 #define TCC_EVCTRL_MCEI0 (_U_(1) << TCC_EVCTRL_MCEI0_Pos)
817 #define TCC_EVCTRL_MCEI1_Pos 17
818 #define TCC_EVCTRL_MCEI1 (_U_(1) << TCC_EVCTRL_MCEI1_Pos)
819 #define TCC_EVCTRL_MCEI2_Pos 18
820 #define TCC_EVCTRL_MCEI2 (_U_(1) << TCC_EVCTRL_MCEI2_Pos)
821 #define TCC_EVCTRL_MCEI3_Pos 19
822 #define TCC_EVCTRL_MCEI3 (_U_(1) << TCC_EVCTRL_MCEI3_Pos)
823 #define TCC_EVCTRL_MCEI4_Pos 20
824 #define TCC_EVCTRL_MCEI4 (_U_(1) << TCC_EVCTRL_MCEI4_Pos)
825 #define TCC_EVCTRL_MCEI5_Pos 21
826 #define TCC_EVCTRL_MCEI5 (_U_(1) << TCC_EVCTRL_MCEI5_Pos)
827 #define TCC_EVCTRL_MCEI_Pos 16
828 #define TCC_EVCTRL_MCEI_Msk (_U_(0x3F) << TCC_EVCTRL_MCEI_Pos)
829 #define TCC_EVCTRL_MCEI(value) (TCC_EVCTRL_MCEI_Msk & ((value) << TCC_EVCTRL_MCEI_Pos))
830 #define TCC_EVCTRL_MCEO0_Pos 24
831 #define TCC_EVCTRL_MCEO0 (_U_(1) << TCC_EVCTRL_MCEO0_Pos)
832 #define TCC_EVCTRL_MCEO1_Pos 25
833 #define TCC_EVCTRL_MCEO1 (_U_(1) << TCC_EVCTRL_MCEO1_Pos)
834 #define TCC_EVCTRL_MCEO2_Pos 26
835 #define TCC_EVCTRL_MCEO2 (_U_(1) << TCC_EVCTRL_MCEO2_Pos)
836 #define TCC_EVCTRL_MCEO3_Pos 27
837 #define TCC_EVCTRL_MCEO3 (_U_(1) << TCC_EVCTRL_MCEO3_Pos)
838 #define TCC_EVCTRL_MCEO4_Pos 28
839 #define TCC_EVCTRL_MCEO4 (_U_(1) << TCC_EVCTRL_MCEO4_Pos)
840 #define TCC_EVCTRL_MCEO5_Pos 29
841 #define TCC_EVCTRL_MCEO5 (_U_(1) << TCC_EVCTRL_MCEO5_Pos)
842 #define TCC_EVCTRL_MCEO_Pos 24
843 #define TCC_EVCTRL_MCEO_Msk (_U_(0x3F) << TCC_EVCTRL_MCEO_Pos)
844 #define TCC_EVCTRL_MCEO(value) (TCC_EVCTRL_MCEO_Msk & ((value) << TCC_EVCTRL_MCEO_Pos))
845 #define TCC_EVCTRL_MASK _U_(0x3F3FF7FF)
848 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
879 #define TCC_INTENCLR_OFFSET 0x24
880 #define TCC_INTENCLR_RESETVALUE _U_(0x00000000)
882 #define TCC_INTENCLR_OVF_Pos 0
883 #define TCC_INTENCLR_OVF (_U_(0x1) << TCC_INTENCLR_OVF_Pos)
884 #define TCC_INTENCLR_TRG_Pos 1
885 #define TCC_INTENCLR_TRG (_U_(0x1) << TCC_INTENCLR_TRG_Pos)
886 #define TCC_INTENCLR_CNT_Pos 2
887 #define TCC_INTENCLR_CNT (_U_(0x1) << TCC_INTENCLR_CNT_Pos)
888 #define TCC_INTENCLR_ERR_Pos 3
889 #define TCC_INTENCLR_ERR (_U_(0x1) << TCC_INTENCLR_ERR_Pos)
890 #define TCC_INTENCLR_UFS_Pos 10
891 #define TCC_INTENCLR_UFS (_U_(0x1) << TCC_INTENCLR_UFS_Pos)
892 #define TCC_INTENCLR_DFS_Pos 11
893 #define TCC_INTENCLR_DFS (_U_(0x1) << TCC_INTENCLR_DFS_Pos)
894 #define TCC_INTENCLR_FAULTA_Pos 12
895 #define TCC_INTENCLR_FAULTA (_U_(0x1) << TCC_INTENCLR_FAULTA_Pos)
896 #define TCC_INTENCLR_FAULTB_Pos 13
897 #define TCC_INTENCLR_FAULTB (_U_(0x1) << TCC_INTENCLR_FAULTB_Pos)
898 #define TCC_INTENCLR_FAULT0_Pos 14
899 #define TCC_INTENCLR_FAULT0 (_U_(0x1) << TCC_INTENCLR_FAULT0_Pos)
900 #define TCC_INTENCLR_FAULT1_Pos 15
901 #define TCC_INTENCLR_FAULT1 (_U_(0x1) << TCC_INTENCLR_FAULT1_Pos)
902 #define TCC_INTENCLR_MC0_Pos 16
903 #define TCC_INTENCLR_MC0 (_U_(1) << TCC_INTENCLR_MC0_Pos)
904 #define TCC_INTENCLR_MC1_Pos 17
905 #define TCC_INTENCLR_MC1 (_U_(1) << TCC_INTENCLR_MC1_Pos)
906 #define TCC_INTENCLR_MC2_Pos 18
907 #define TCC_INTENCLR_MC2 (_U_(1) << TCC_INTENCLR_MC2_Pos)
908 #define TCC_INTENCLR_MC3_Pos 19
909 #define TCC_INTENCLR_MC3 (_U_(1) << TCC_INTENCLR_MC3_Pos)
910 #define TCC_INTENCLR_MC4_Pos 20
911 #define TCC_INTENCLR_MC4 (_U_(1) << TCC_INTENCLR_MC4_Pos)
912 #define TCC_INTENCLR_MC5_Pos 21
913 #define TCC_INTENCLR_MC5 (_U_(1) << TCC_INTENCLR_MC5_Pos)
914 #define TCC_INTENCLR_MC_Pos 16
915 #define TCC_INTENCLR_MC_Msk (_U_(0x3F) << TCC_INTENCLR_MC_Pos)
916 #define TCC_INTENCLR_MC(value) (TCC_INTENCLR_MC_Msk & ((value) << TCC_INTENCLR_MC_Pos))
917 #define TCC_INTENCLR_MASK _U_(0x003FFC0F)
920 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
951 #define TCC_INTENSET_OFFSET 0x28
952 #define TCC_INTENSET_RESETVALUE _U_(0x00000000)
954 #define TCC_INTENSET_OVF_Pos 0
955 #define TCC_INTENSET_OVF (_U_(0x1) << TCC_INTENSET_OVF_Pos)
956 #define TCC_INTENSET_TRG_Pos 1
957 #define TCC_INTENSET_TRG (_U_(0x1) << TCC_INTENSET_TRG_Pos)
958 #define TCC_INTENSET_CNT_Pos 2
959 #define TCC_INTENSET_CNT (_U_(0x1) << TCC_INTENSET_CNT_Pos)
960 #define TCC_INTENSET_ERR_Pos 3
961 #define TCC_INTENSET_ERR (_U_(0x1) << TCC_INTENSET_ERR_Pos)
962 #define TCC_INTENSET_UFS_Pos 10
963 #define TCC_INTENSET_UFS (_U_(0x1) << TCC_INTENSET_UFS_Pos)
964 #define TCC_INTENSET_DFS_Pos 11
965 #define TCC_INTENSET_DFS (_U_(0x1) << TCC_INTENSET_DFS_Pos)
966 #define TCC_INTENSET_FAULTA_Pos 12
967 #define TCC_INTENSET_FAULTA (_U_(0x1) << TCC_INTENSET_FAULTA_Pos)
968 #define TCC_INTENSET_FAULTB_Pos 13
969 #define TCC_INTENSET_FAULTB (_U_(0x1) << TCC_INTENSET_FAULTB_Pos)
970 #define TCC_INTENSET_FAULT0_Pos 14
971 #define TCC_INTENSET_FAULT0 (_U_(0x1) << TCC_INTENSET_FAULT0_Pos)
972 #define TCC_INTENSET_FAULT1_Pos 15
973 #define TCC_INTENSET_FAULT1 (_U_(0x1) << TCC_INTENSET_FAULT1_Pos)
974 #define TCC_INTENSET_MC0_Pos 16
975 #define TCC_INTENSET_MC0 (_U_(1) << TCC_INTENSET_MC0_Pos)
976 #define TCC_INTENSET_MC1_Pos 17
977 #define TCC_INTENSET_MC1 (_U_(1) << TCC_INTENSET_MC1_Pos)
978 #define TCC_INTENSET_MC2_Pos 18
979 #define TCC_INTENSET_MC2 (_U_(1) << TCC_INTENSET_MC2_Pos)
980 #define TCC_INTENSET_MC3_Pos 19
981 #define TCC_INTENSET_MC3 (_U_(1) << TCC_INTENSET_MC3_Pos)
982 #define TCC_INTENSET_MC4_Pos 20
983 #define TCC_INTENSET_MC4 (_U_(1) << TCC_INTENSET_MC4_Pos)
984 #define TCC_INTENSET_MC5_Pos 21
985 #define TCC_INTENSET_MC5 (_U_(1) << TCC_INTENSET_MC5_Pos)
986 #define TCC_INTENSET_MC_Pos 16
987 #define TCC_INTENSET_MC_Msk (_U_(0x3F) << TCC_INTENSET_MC_Pos)
988 #define TCC_INTENSET_MC(value) (TCC_INTENSET_MC_Msk & ((value) << TCC_INTENSET_MC_Pos))
989 #define TCC_INTENSET_MASK _U_(0x003FFC0F)
992 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1023 #define TCC_INTFLAG_OFFSET 0x2C
1024 #define TCC_INTFLAG_RESETVALUE _U_(0x00000000)
1026 #define TCC_INTFLAG_OVF_Pos 0
1027 #define TCC_INTFLAG_OVF (_U_(0x1) << TCC_INTFLAG_OVF_Pos)
1028 #define TCC_INTFLAG_TRG_Pos 1
1029 #define TCC_INTFLAG_TRG (_U_(0x1) << TCC_INTFLAG_TRG_Pos)
1030 #define TCC_INTFLAG_CNT_Pos 2
1031 #define TCC_INTFLAG_CNT (_U_(0x1) << TCC_INTFLAG_CNT_Pos)
1032 #define TCC_INTFLAG_ERR_Pos 3
1033 #define TCC_INTFLAG_ERR (_U_(0x1) << TCC_INTFLAG_ERR_Pos)
1034 #define TCC_INTFLAG_UFS_Pos 10
1035 #define TCC_INTFLAG_UFS (_U_(0x1) << TCC_INTFLAG_UFS_Pos)
1036 #define TCC_INTFLAG_DFS_Pos 11
1037 #define TCC_INTFLAG_DFS (_U_(0x1) << TCC_INTFLAG_DFS_Pos)
1038 #define TCC_INTFLAG_FAULTA_Pos 12
1039 #define TCC_INTFLAG_FAULTA (_U_(0x1) << TCC_INTFLAG_FAULTA_Pos)
1040 #define TCC_INTFLAG_FAULTB_Pos 13
1041 #define TCC_INTFLAG_FAULTB (_U_(0x1) << TCC_INTFLAG_FAULTB_Pos)
1042 #define TCC_INTFLAG_FAULT0_Pos 14
1043 #define TCC_INTFLAG_FAULT0 (_U_(0x1) << TCC_INTFLAG_FAULT0_Pos)
1044 #define TCC_INTFLAG_FAULT1_Pos 15
1045 #define TCC_INTFLAG_FAULT1 (_U_(0x1) << TCC_INTFLAG_FAULT1_Pos)
1046 #define TCC_INTFLAG_MC0_Pos 16
1047 #define TCC_INTFLAG_MC0 (_U_(1) << TCC_INTFLAG_MC0_Pos)
1048 #define TCC_INTFLAG_MC1_Pos 17
1049 #define TCC_INTFLAG_MC1 (_U_(1) << TCC_INTFLAG_MC1_Pos)
1050 #define TCC_INTFLAG_MC2_Pos 18
1051 #define TCC_INTFLAG_MC2 (_U_(1) << TCC_INTFLAG_MC2_Pos)
1052 #define TCC_INTFLAG_MC3_Pos 19
1053 #define TCC_INTFLAG_MC3 (_U_(1) << TCC_INTFLAG_MC3_Pos)
1054 #define TCC_INTFLAG_MC4_Pos 20
1055 #define TCC_INTFLAG_MC4 (_U_(1) << TCC_INTFLAG_MC4_Pos)
1056 #define TCC_INTFLAG_MC5_Pos 21
1057 #define TCC_INTFLAG_MC5 (_U_(1) << TCC_INTFLAG_MC5_Pos)
1058 #define TCC_INTFLAG_MC_Pos 16
1059 #define TCC_INTFLAG_MC_Msk (_U_(0x3F) << TCC_INTFLAG_MC_Pos)
1060 #define TCC_INTFLAG_MC(value) (TCC_INTFLAG_MC_Msk & ((value) << TCC_INTFLAG_MC_Pos))
1061 #define TCC_INTFLAG_MASK _U_(0x003FFC0F)
1064 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1109 #define TCC_STATUS_OFFSET 0x30
1110 #define TCC_STATUS_RESETVALUE _U_(0x00000001)
1112 #define TCC_STATUS_STOP_Pos 0
1113 #define TCC_STATUS_STOP (_U_(0x1) << TCC_STATUS_STOP_Pos)
1114 #define TCC_STATUS_IDX_Pos 1
1115 #define TCC_STATUS_IDX (_U_(0x1) << TCC_STATUS_IDX_Pos)
1116 #define TCC_STATUS_UFS_Pos 2
1117 #define TCC_STATUS_UFS (_U_(0x1) << TCC_STATUS_UFS_Pos)
1118 #define TCC_STATUS_DFS_Pos 3
1119 #define TCC_STATUS_DFS (_U_(0x1) << TCC_STATUS_DFS_Pos)
1120 #define TCC_STATUS_SLAVE_Pos 4
1121 #define TCC_STATUS_SLAVE (_U_(0x1) << TCC_STATUS_SLAVE_Pos)
1122 #define TCC_STATUS_PATTBUFV_Pos 5
1123 #define TCC_STATUS_PATTBUFV (_U_(0x1) << TCC_STATUS_PATTBUFV_Pos)
1124 #define TCC_STATUS_PERBUFV_Pos 7
1125 #define TCC_STATUS_PERBUFV (_U_(0x1) << TCC_STATUS_PERBUFV_Pos)
1126 #define TCC_STATUS_FAULTAIN_Pos 8
1127 #define TCC_STATUS_FAULTAIN (_U_(0x1) << TCC_STATUS_FAULTAIN_Pos)
1128 #define TCC_STATUS_FAULTBIN_Pos 9
1129 #define TCC_STATUS_FAULTBIN (_U_(0x1) << TCC_STATUS_FAULTBIN_Pos)
1130 #define TCC_STATUS_FAULT0IN_Pos 10
1131 #define TCC_STATUS_FAULT0IN (_U_(0x1) << TCC_STATUS_FAULT0IN_Pos)
1132 #define TCC_STATUS_FAULT1IN_Pos 11
1133 #define TCC_STATUS_FAULT1IN (_U_(0x1) << TCC_STATUS_FAULT1IN_Pos)
1134 #define TCC_STATUS_FAULTA_Pos 12
1135 #define TCC_STATUS_FAULTA (_U_(0x1) << TCC_STATUS_FAULTA_Pos)
1136 #define TCC_STATUS_FAULTB_Pos 13
1137 #define TCC_STATUS_FAULTB (_U_(0x1) << TCC_STATUS_FAULTB_Pos)
1138 #define TCC_STATUS_FAULT0_Pos 14
1139 #define TCC_STATUS_FAULT0 (_U_(0x1) << TCC_STATUS_FAULT0_Pos)
1140 #define TCC_STATUS_FAULT1_Pos 15
1141 #define TCC_STATUS_FAULT1 (_U_(0x1) << TCC_STATUS_FAULT1_Pos)
1142 #define TCC_STATUS_CCBUFV0_Pos 16
1143 #define TCC_STATUS_CCBUFV0 (_U_(1) << TCC_STATUS_CCBUFV0_Pos)
1144 #define TCC_STATUS_CCBUFV1_Pos 17
1145 #define TCC_STATUS_CCBUFV1 (_U_(1) << TCC_STATUS_CCBUFV1_Pos)
1146 #define TCC_STATUS_CCBUFV2_Pos 18
1147 #define TCC_STATUS_CCBUFV2 (_U_(1) << TCC_STATUS_CCBUFV2_Pos)
1148 #define TCC_STATUS_CCBUFV3_Pos 19
1149 #define TCC_STATUS_CCBUFV3 (_U_(1) << TCC_STATUS_CCBUFV3_Pos)
1150 #define TCC_STATUS_CCBUFV4_Pos 20
1151 #define TCC_STATUS_CCBUFV4 (_U_(1) << TCC_STATUS_CCBUFV4_Pos)
1152 #define TCC_STATUS_CCBUFV5_Pos 21
1153 #define TCC_STATUS_CCBUFV5 (_U_(1) << TCC_STATUS_CCBUFV5_Pos)
1154 #define TCC_STATUS_CCBUFV_Pos 16
1155 #define TCC_STATUS_CCBUFV_Msk (_U_(0x3F) << TCC_STATUS_CCBUFV_Pos)
1156 #define TCC_STATUS_CCBUFV(value) (TCC_STATUS_CCBUFV_Msk & ((value) << TCC_STATUS_CCBUFV_Pos))
1157 #define TCC_STATUS_CMP0_Pos 24
1158 #define TCC_STATUS_CMP0 (_U_(1) << TCC_STATUS_CMP0_Pos)
1159 #define TCC_STATUS_CMP1_Pos 25
1160 #define TCC_STATUS_CMP1 (_U_(1) << TCC_STATUS_CMP1_Pos)
1161 #define TCC_STATUS_CMP2_Pos 26
1162 #define TCC_STATUS_CMP2 (_U_(1) << TCC_STATUS_CMP2_Pos)
1163 #define TCC_STATUS_CMP3_Pos 27
1164 #define TCC_STATUS_CMP3 (_U_(1) << TCC_STATUS_CMP3_Pos)
1165 #define TCC_STATUS_CMP4_Pos 28
1166 #define TCC_STATUS_CMP4 (_U_(1) << TCC_STATUS_CMP4_Pos)
1167 #define TCC_STATUS_CMP5_Pos 29
1168 #define TCC_STATUS_CMP5 (_U_(1) << TCC_STATUS_CMP5_Pos)
1169 #define TCC_STATUS_CMP_Pos 24
1170 #define TCC_STATUS_CMP_Msk (_U_(0x3F) << TCC_STATUS_CMP_Pos)
1171 #define TCC_STATUS_CMP(value) (TCC_STATUS_CMP_Msk & ((value) << TCC_STATUS_CMP_Pos))
1172 #define TCC_STATUS_MASK _U_(0x3F3FFFBF)
1175 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1200 #define TCC_COUNT_OFFSET 0x34
1201 #define TCC_COUNT_RESETVALUE _U_(0x00000000)
1204 #define TCC_COUNT_DITH4_COUNT_Pos 4
1205 #define TCC_COUNT_DITH4_COUNT_Msk (_U_(0xFFFFF) << TCC_COUNT_DITH4_COUNT_Pos)
1206 #define TCC_COUNT_DITH4_COUNT(value) (TCC_COUNT_DITH4_COUNT_Msk & ((value) << TCC_COUNT_DITH4_COUNT_Pos))
1207 #define TCC_COUNT_DITH4_MASK _U_(0x00FFFFF0)
1210 #define TCC_COUNT_DITH5_COUNT_Pos 5
1211 #define TCC_COUNT_DITH5_COUNT_Msk (_U_(0x7FFFF) << TCC_COUNT_DITH5_COUNT_Pos)
1212 #define TCC_COUNT_DITH5_COUNT(value) (TCC_COUNT_DITH5_COUNT_Msk & ((value) << TCC_COUNT_DITH5_COUNT_Pos))
1213 #define TCC_COUNT_DITH5_MASK _U_(0x00FFFFE0)
1216 #define TCC_COUNT_DITH6_COUNT_Pos 6
1217 #define TCC_COUNT_DITH6_COUNT_Msk (_U_(0x3FFFF) << TCC_COUNT_DITH6_COUNT_Pos)
1218 #define TCC_COUNT_DITH6_COUNT(value) (TCC_COUNT_DITH6_COUNT_Msk & ((value) << TCC_COUNT_DITH6_COUNT_Pos))
1219 #define TCC_COUNT_DITH6_MASK _U_(0x00FFFFC0)
1221 #define TCC_COUNT_COUNT_Pos 0
1222 #define TCC_COUNT_COUNT_Msk (_U_(0xFFFFFF) << TCC_COUNT_COUNT_Pos)
1223 #define TCC_COUNT_COUNT(value) (TCC_COUNT_COUNT_Msk & ((value) << TCC_COUNT_COUNT_Pos))
1224 #define TCC_COUNT_MASK _U_(0x00FFFFFF)
1227 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1255 #define TCC_PATT_OFFSET 0x38
1256 #define TCC_PATT_RESETVALUE _U_(0x0000)
1258 #define TCC_PATT_PGE0_Pos 0
1259 #define TCC_PATT_PGE0 (_U_(1) << TCC_PATT_PGE0_Pos)
1260 #define TCC_PATT_PGE1_Pos 1
1261 #define TCC_PATT_PGE1 (_U_(1) << TCC_PATT_PGE1_Pos)
1262 #define TCC_PATT_PGE2_Pos 2
1263 #define TCC_PATT_PGE2 (_U_(1) << TCC_PATT_PGE2_Pos)
1264 #define TCC_PATT_PGE3_Pos 3
1265 #define TCC_PATT_PGE3 (_U_(1) << TCC_PATT_PGE3_Pos)
1266 #define TCC_PATT_PGE4_Pos 4
1267 #define TCC_PATT_PGE4 (_U_(1) << TCC_PATT_PGE4_Pos)
1268 #define TCC_PATT_PGE5_Pos 5
1269 #define TCC_PATT_PGE5 (_U_(1) << TCC_PATT_PGE5_Pos)
1270 #define TCC_PATT_PGE6_Pos 6
1271 #define TCC_PATT_PGE6 (_U_(1) << TCC_PATT_PGE6_Pos)
1272 #define TCC_PATT_PGE7_Pos 7
1273 #define TCC_PATT_PGE7 (_U_(1) << TCC_PATT_PGE7_Pos)
1274 #define TCC_PATT_PGE_Pos 0
1275 #define TCC_PATT_PGE_Msk (_U_(0xFF) << TCC_PATT_PGE_Pos)
1276 #define TCC_PATT_PGE(value) (TCC_PATT_PGE_Msk & ((value) << TCC_PATT_PGE_Pos))
1277 #define TCC_PATT_PGV0_Pos 8
1278 #define TCC_PATT_PGV0 (_U_(1) << TCC_PATT_PGV0_Pos)
1279 #define TCC_PATT_PGV1_Pos 9
1280 #define TCC_PATT_PGV1 (_U_(1) << TCC_PATT_PGV1_Pos)
1281 #define TCC_PATT_PGV2_Pos 10
1282 #define TCC_PATT_PGV2 (_U_(1) << TCC_PATT_PGV2_Pos)
1283 #define TCC_PATT_PGV3_Pos 11
1284 #define TCC_PATT_PGV3 (_U_(1) << TCC_PATT_PGV3_Pos)
1285 #define TCC_PATT_PGV4_Pos 12
1286 #define TCC_PATT_PGV4 (_U_(1) << TCC_PATT_PGV4_Pos)
1287 #define TCC_PATT_PGV5_Pos 13
1288 #define TCC_PATT_PGV5 (_U_(1) << TCC_PATT_PGV5_Pos)
1289 #define TCC_PATT_PGV6_Pos 14
1290 #define TCC_PATT_PGV6 (_U_(1) << TCC_PATT_PGV6_Pos)
1291 #define TCC_PATT_PGV7_Pos 15
1292 #define TCC_PATT_PGV7 (_U_(1) << TCC_PATT_PGV7_Pos)
1293 #define TCC_PATT_PGV_Pos 8
1294 #define TCC_PATT_PGV_Msk (_U_(0xFF) << TCC_PATT_PGV_Pos)
1295 #define TCC_PATT_PGV(value) (TCC_PATT_PGV_Msk & ((value) << TCC_PATT_PGV_Pos))
1296 #define TCC_PATT_MASK _U_(0xFFFF)
1299 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1338 #define TCC_WAVE_OFFSET 0x3C
1339 #define TCC_WAVE_RESETVALUE _U_(0x00000000)
1341 #define TCC_WAVE_WAVEGEN_Pos 0
1342 #define TCC_WAVE_WAVEGEN_Msk (_U_(0x7) << TCC_WAVE_WAVEGEN_Pos)
1343 #define TCC_WAVE_WAVEGEN(value) (TCC_WAVE_WAVEGEN_Msk & ((value) << TCC_WAVE_WAVEGEN_Pos))
1344 #define TCC_WAVE_WAVEGEN_NFRQ_Val _U_(0x0)
1345 #define TCC_WAVE_WAVEGEN_MFRQ_Val _U_(0x1)
1346 #define TCC_WAVE_WAVEGEN_NPWM_Val _U_(0x2)
1347 #define TCC_WAVE_WAVEGEN_DSCRITICAL_Val _U_(0x4)
1348 #define TCC_WAVE_WAVEGEN_DSBOTTOM_Val _U_(0x5)
1349 #define TCC_WAVE_WAVEGEN_DSBOTH_Val _U_(0x6)
1350 #define TCC_WAVE_WAVEGEN_DSTOP_Val _U_(0x7)
1351 #define TCC_WAVE_WAVEGEN_NFRQ (TCC_WAVE_WAVEGEN_NFRQ_Val << TCC_WAVE_WAVEGEN_Pos)
1352 #define TCC_WAVE_WAVEGEN_MFRQ (TCC_WAVE_WAVEGEN_MFRQ_Val << TCC_WAVE_WAVEGEN_Pos)
1353 #define TCC_WAVE_WAVEGEN_NPWM (TCC_WAVE_WAVEGEN_NPWM_Val << TCC_WAVE_WAVEGEN_Pos)
1354 #define TCC_WAVE_WAVEGEN_DSCRITICAL (TCC_WAVE_WAVEGEN_DSCRITICAL_Val << TCC_WAVE_WAVEGEN_Pos)
1355 #define TCC_WAVE_WAVEGEN_DSBOTTOM (TCC_WAVE_WAVEGEN_DSBOTTOM_Val << TCC_WAVE_WAVEGEN_Pos)
1356 #define TCC_WAVE_WAVEGEN_DSBOTH (TCC_WAVE_WAVEGEN_DSBOTH_Val << TCC_WAVE_WAVEGEN_Pos)
1357 #define TCC_WAVE_WAVEGEN_DSTOP (TCC_WAVE_WAVEGEN_DSTOP_Val << TCC_WAVE_WAVEGEN_Pos)
1358 #define TCC_WAVE_RAMP_Pos 4
1359 #define TCC_WAVE_RAMP_Msk (_U_(0x3) << TCC_WAVE_RAMP_Pos)
1360 #define TCC_WAVE_RAMP(value) (TCC_WAVE_RAMP_Msk & ((value) << TCC_WAVE_RAMP_Pos))
1361 #define TCC_WAVE_RAMP_RAMP1_Val _U_(0x0)
1362 #define TCC_WAVE_RAMP_RAMP2A_Val _U_(0x1)
1363 #define TCC_WAVE_RAMP_RAMP2_Val _U_(0x2)
1364 #define TCC_WAVE_RAMP_RAMP2C_Val _U_(0x3)
1365 #define TCC_WAVE_RAMP_RAMP1 (TCC_WAVE_RAMP_RAMP1_Val << TCC_WAVE_RAMP_Pos)
1366 #define TCC_WAVE_RAMP_RAMP2A (TCC_WAVE_RAMP_RAMP2A_Val << TCC_WAVE_RAMP_Pos)
1367 #define TCC_WAVE_RAMP_RAMP2 (TCC_WAVE_RAMP_RAMP2_Val << TCC_WAVE_RAMP_Pos)
1368 #define TCC_WAVE_RAMP_RAMP2C (TCC_WAVE_RAMP_RAMP2C_Val << TCC_WAVE_RAMP_Pos)
1369 #define TCC_WAVE_CIPEREN_Pos 7
1370 #define TCC_WAVE_CIPEREN (_U_(0x1) << TCC_WAVE_CIPEREN_Pos)
1371 #define TCC_WAVE_CICCEN0_Pos 8
1372 #define TCC_WAVE_CICCEN0 (_U_(1) << TCC_WAVE_CICCEN0_Pos)
1373 #define TCC_WAVE_CICCEN1_Pos 9
1374 #define TCC_WAVE_CICCEN1 (_U_(1) << TCC_WAVE_CICCEN1_Pos)
1375 #define TCC_WAVE_CICCEN2_Pos 10
1376 #define TCC_WAVE_CICCEN2 (_U_(1) << TCC_WAVE_CICCEN2_Pos)
1377 #define TCC_WAVE_CICCEN3_Pos 11
1378 #define TCC_WAVE_CICCEN3 (_U_(1) << TCC_WAVE_CICCEN3_Pos)
1379 #define TCC_WAVE_CICCEN_Pos 8
1380 #define TCC_WAVE_CICCEN_Msk (_U_(0xF) << TCC_WAVE_CICCEN_Pos)
1381 #define TCC_WAVE_CICCEN(value) (TCC_WAVE_CICCEN_Msk & ((value) << TCC_WAVE_CICCEN_Pos))
1382 #define TCC_WAVE_POL0_Pos 16
1383 #define TCC_WAVE_POL0 (_U_(1) << TCC_WAVE_POL0_Pos)
1384 #define TCC_WAVE_POL1_Pos 17
1385 #define TCC_WAVE_POL1 (_U_(1) << TCC_WAVE_POL1_Pos)
1386 #define TCC_WAVE_POL2_Pos 18
1387 #define TCC_WAVE_POL2 (_U_(1) << TCC_WAVE_POL2_Pos)
1388 #define TCC_WAVE_POL3_Pos 19
1389 #define TCC_WAVE_POL3 (_U_(1) << TCC_WAVE_POL3_Pos)
1390 #define TCC_WAVE_POL4_Pos 20
1391 #define TCC_WAVE_POL4 (_U_(1) << TCC_WAVE_POL4_Pos)
1392 #define TCC_WAVE_POL5_Pos 21
1393 #define TCC_WAVE_POL5 (_U_(1) << TCC_WAVE_POL5_Pos)
1394 #define TCC_WAVE_POL_Pos 16
1395 #define TCC_WAVE_POL_Msk (_U_(0x3F) << TCC_WAVE_POL_Pos)
1396 #define TCC_WAVE_POL(value) (TCC_WAVE_POL_Msk & ((value) << TCC_WAVE_POL_Pos))
1397 #define TCC_WAVE_SWAP0_Pos 24
1398 #define TCC_WAVE_SWAP0 (_U_(1) << TCC_WAVE_SWAP0_Pos)
1399 #define TCC_WAVE_SWAP1_Pos 25
1400 #define TCC_WAVE_SWAP1 (_U_(1) << TCC_WAVE_SWAP1_Pos)
1401 #define TCC_WAVE_SWAP2_Pos 26
1402 #define TCC_WAVE_SWAP2 (_U_(1) << TCC_WAVE_SWAP2_Pos)
1403 #define TCC_WAVE_SWAP3_Pos 27
1404 #define TCC_WAVE_SWAP3 (_U_(1) << TCC_WAVE_SWAP3_Pos)
1405 #define TCC_WAVE_SWAP_Pos 24
1406 #define TCC_WAVE_SWAP_Msk (_U_(0xF) << TCC_WAVE_SWAP_Pos)
1407 #define TCC_WAVE_SWAP(value) (TCC_WAVE_SWAP_Msk & ((value) << TCC_WAVE_SWAP_Pos))
1408 #define TCC_WAVE_MASK _U_(0x0F3F0FB7)
1411 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1436 #define TCC_PER_OFFSET 0x40
1437 #define TCC_PER_RESETVALUE _U_(0xFFFFFFFF)
1440 #define TCC_PER_DITH4_DITHER_Pos 0
1441 #define TCC_PER_DITH4_DITHER_Msk (_U_(0xF) << TCC_PER_DITH4_DITHER_Pos)
1442 #define TCC_PER_DITH4_DITHER(value) (TCC_PER_DITH4_DITHER_Msk & ((value) << TCC_PER_DITH4_DITHER_Pos))
1443 #define TCC_PER_DITH4_PER_Pos 4
1444 #define TCC_PER_DITH4_PER_Msk (_U_(0xFFFFF) << TCC_PER_DITH4_PER_Pos)
1445 #define TCC_PER_DITH4_PER(value) (TCC_PER_DITH4_PER_Msk & ((value) << TCC_PER_DITH4_PER_Pos))
1446 #define TCC_PER_DITH4_MASK _U_(0x00FFFFFF)
1449 #define TCC_PER_DITH5_DITHER_Pos 0
1450 #define TCC_PER_DITH5_DITHER_Msk (_U_(0x1F) << TCC_PER_DITH5_DITHER_Pos)
1451 #define TCC_PER_DITH5_DITHER(value) (TCC_PER_DITH5_DITHER_Msk & ((value) << TCC_PER_DITH5_DITHER_Pos))
1452 #define TCC_PER_DITH5_PER_Pos 5
1453 #define TCC_PER_DITH5_PER_Msk (_U_(0x7FFFF) << TCC_PER_DITH5_PER_Pos)
1454 #define TCC_PER_DITH5_PER(value) (TCC_PER_DITH5_PER_Msk & ((value) << TCC_PER_DITH5_PER_Pos))
1455 #define TCC_PER_DITH5_MASK _U_(0x00FFFFFF)
1458 #define TCC_PER_DITH6_DITHER_Pos 0
1459 #define TCC_PER_DITH6_DITHER_Msk (_U_(0x3F) << TCC_PER_DITH6_DITHER_Pos)
1460 #define TCC_PER_DITH6_DITHER(value) (TCC_PER_DITH6_DITHER_Msk & ((value) << TCC_PER_DITH6_DITHER_Pos))
1461 #define TCC_PER_DITH6_PER_Pos 6
1462 #define TCC_PER_DITH6_PER_Msk (_U_(0x3FFFF) << TCC_PER_DITH6_PER_Pos)
1463 #define TCC_PER_DITH6_PER(value) (TCC_PER_DITH6_PER_Msk & ((value) << TCC_PER_DITH6_PER_Pos))
1464 #define TCC_PER_DITH6_MASK _U_(0x00FFFFFF)
1466 #define TCC_PER_PER_Pos 0
1467 #define TCC_PER_PER_Msk (_U_(0xFFFFFF) << TCC_PER_PER_Pos)
1468 #define TCC_PER_PER(value) (TCC_PER_PER_Msk & ((value) << TCC_PER_PER_Pos))
1469 #define TCC_PER_MASK _U_(0x00FFFFFF)
1472 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1497 #define TCC_CC_OFFSET 0x44
1498 #define TCC_CC_RESETVALUE _U_(0x00000000)
1501 #define TCC_CC_DITH4_DITHER_Pos 0
1502 #define TCC_CC_DITH4_DITHER_Msk (_U_(0xF) << TCC_CC_DITH4_DITHER_Pos)
1503 #define TCC_CC_DITH4_DITHER(value) (TCC_CC_DITH4_DITHER_Msk & ((value) << TCC_CC_DITH4_DITHER_Pos))
1504 #define TCC_CC_DITH4_CC_Pos 4
1505 #define TCC_CC_DITH4_CC_Msk (_U_(0xFFFFF) << TCC_CC_DITH4_CC_Pos)
1506 #define TCC_CC_DITH4_CC(value) (TCC_CC_DITH4_CC_Msk & ((value) << TCC_CC_DITH4_CC_Pos))
1507 #define TCC_CC_DITH4_MASK _U_(0x00FFFFFF)
1510 #define TCC_CC_DITH5_DITHER_Pos 0
1511 #define TCC_CC_DITH5_DITHER_Msk (_U_(0x1F) << TCC_CC_DITH5_DITHER_Pos)
1512 #define TCC_CC_DITH5_DITHER(value) (TCC_CC_DITH5_DITHER_Msk & ((value) << TCC_CC_DITH5_DITHER_Pos))
1513 #define TCC_CC_DITH5_CC_Pos 5
1514 #define TCC_CC_DITH5_CC_Msk (_U_(0x7FFFF) << TCC_CC_DITH5_CC_Pos)
1515 #define TCC_CC_DITH5_CC(value) (TCC_CC_DITH5_CC_Msk & ((value) << TCC_CC_DITH5_CC_Pos))
1516 #define TCC_CC_DITH5_MASK _U_(0x00FFFFFF)
1519 #define TCC_CC_DITH6_DITHER_Pos 0
1520 #define TCC_CC_DITH6_DITHER_Msk (_U_(0x3F) << TCC_CC_DITH6_DITHER_Pos)
1521 #define TCC_CC_DITH6_DITHER(value) (TCC_CC_DITH6_DITHER_Msk & ((value) << TCC_CC_DITH6_DITHER_Pos))
1522 #define TCC_CC_DITH6_CC_Pos 6
1523 #define TCC_CC_DITH6_CC_Msk (_U_(0x3FFFF) << TCC_CC_DITH6_CC_Pos)
1524 #define TCC_CC_DITH6_CC(value) (TCC_CC_DITH6_CC_Msk & ((value) << TCC_CC_DITH6_CC_Pos))
1525 #define TCC_CC_DITH6_MASK _U_(0x00FFFFFF)
1527 #define TCC_CC_CC_Pos 0
1528 #define TCC_CC_CC_Msk (_U_(0xFFFFFF) << TCC_CC_CC_Pos)
1529 #define TCC_CC_CC(value) (TCC_CC_CC_Msk & ((value) << TCC_CC_CC_Pos))
1530 #define TCC_CC_MASK _U_(0x00FFFFFF)
1533 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1561 #define TCC_PATTBUF_OFFSET 0x64
1562 #define TCC_PATTBUF_RESETVALUE _U_(0x0000)
1564 #define TCC_PATTBUF_PGEB0_Pos 0
1565 #define TCC_PATTBUF_PGEB0 (_U_(1) << TCC_PATTBUF_PGEB0_Pos)
1566 #define TCC_PATTBUF_PGEB1_Pos 1
1567 #define TCC_PATTBUF_PGEB1 (_U_(1) << TCC_PATTBUF_PGEB1_Pos)
1568 #define TCC_PATTBUF_PGEB2_Pos 2
1569 #define TCC_PATTBUF_PGEB2 (_U_(1) << TCC_PATTBUF_PGEB2_Pos)
1570 #define TCC_PATTBUF_PGEB3_Pos 3
1571 #define TCC_PATTBUF_PGEB3 (_U_(1) << TCC_PATTBUF_PGEB3_Pos)
1572 #define TCC_PATTBUF_PGEB4_Pos 4
1573 #define TCC_PATTBUF_PGEB4 (_U_(1) << TCC_PATTBUF_PGEB4_Pos)
1574 #define TCC_PATTBUF_PGEB5_Pos 5
1575 #define TCC_PATTBUF_PGEB5 (_U_(1) << TCC_PATTBUF_PGEB5_Pos)
1576 #define TCC_PATTBUF_PGEB6_Pos 6
1577 #define TCC_PATTBUF_PGEB6 (_U_(1) << TCC_PATTBUF_PGEB6_Pos)
1578 #define TCC_PATTBUF_PGEB7_Pos 7
1579 #define TCC_PATTBUF_PGEB7 (_U_(1) << TCC_PATTBUF_PGEB7_Pos)
1580 #define TCC_PATTBUF_PGEB_Pos 0
1581 #define TCC_PATTBUF_PGEB_Msk (_U_(0xFF) << TCC_PATTBUF_PGEB_Pos)
1582 #define TCC_PATTBUF_PGEB(value) (TCC_PATTBUF_PGEB_Msk & ((value) << TCC_PATTBUF_PGEB_Pos))
1583 #define TCC_PATTBUF_PGVB0_Pos 8
1584 #define TCC_PATTBUF_PGVB0 (_U_(1) << TCC_PATTBUF_PGVB0_Pos)
1585 #define TCC_PATTBUF_PGVB1_Pos 9
1586 #define TCC_PATTBUF_PGVB1 (_U_(1) << TCC_PATTBUF_PGVB1_Pos)
1587 #define TCC_PATTBUF_PGVB2_Pos 10
1588 #define TCC_PATTBUF_PGVB2 (_U_(1) << TCC_PATTBUF_PGVB2_Pos)
1589 #define TCC_PATTBUF_PGVB3_Pos 11
1590 #define TCC_PATTBUF_PGVB3 (_U_(1) << TCC_PATTBUF_PGVB3_Pos)
1591 #define TCC_PATTBUF_PGVB4_Pos 12
1592 #define TCC_PATTBUF_PGVB4 (_U_(1) << TCC_PATTBUF_PGVB4_Pos)
1593 #define TCC_PATTBUF_PGVB5_Pos 13
1594 #define TCC_PATTBUF_PGVB5 (_U_(1) << TCC_PATTBUF_PGVB5_Pos)
1595 #define TCC_PATTBUF_PGVB6_Pos 14
1596 #define TCC_PATTBUF_PGVB6 (_U_(1) << TCC_PATTBUF_PGVB6_Pos)
1597 #define TCC_PATTBUF_PGVB7_Pos 15
1598 #define TCC_PATTBUF_PGVB7 (_U_(1) << TCC_PATTBUF_PGVB7_Pos)
1599 #define TCC_PATTBUF_PGVB_Pos 8
1600 #define TCC_PATTBUF_PGVB_Msk (_U_(0xFF) << TCC_PATTBUF_PGVB_Pos)
1601 #define TCC_PATTBUF_PGVB(value) (TCC_PATTBUF_PGVB_Msk & ((value) << TCC_PATTBUF_PGVB_Pos))
1602 #define TCC_PATTBUF_MASK _U_(0xFFFF)
1605 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1613 uint32_t DITHERBUF:5;
1618 uint32_t DITHERBUF:6;
1630 #define TCC_PERBUF_OFFSET 0x6C
1631 #define TCC_PERBUF_RESETVALUE _U_(0xFFFFFFFF)
1634 #define TCC_PERBUF_DITH4_DITHERBUF_Pos 0
1635 #define TCC_PERBUF_DITH4_DITHERBUF_Msk (_U_(0xF) << TCC_PERBUF_DITH4_DITHERBUF_Pos)
1636 #define TCC_PERBUF_DITH4_DITHERBUF(value) (TCC_PERBUF_DITH4_DITHERBUF_Msk & ((value) << TCC_PERBUF_DITH4_DITHERBUF_Pos))
1637 #define TCC_PERBUF_DITH4_PERBUF_Pos 4
1638 #define TCC_PERBUF_DITH4_PERBUF_Msk (_U_(0xFFFFF) << TCC_PERBUF_DITH4_PERBUF_Pos)
1639 #define TCC_PERBUF_DITH4_PERBUF(value) (TCC_PERBUF_DITH4_PERBUF_Msk & ((value) << TCC_PERBUF_DITH4_PERBUF_Pos))
1640 #define TCC_PERBUF_DITH4_MASK _U_(0x00FFFFFF)
1643 #define TCC_PERBUF_DITH5_DITHERBUF_Pos 0
1644 #define TCC_PERBUF_DITH5_DITHERBUF_Msk (_U_(0x1F) << TCC_PERBUF_DITH5_DITHERBUF_Pos)
1645 #define TCC_PERBUF_DITH5_DITHERBUF(value) (TCC_PERBUF_DITH5_DITHERBUF_Msk & ((value) << TCC_PERBUF_DITH5_DITHERBUF_Pos))
1646 #define TCC_PERBUF_DITH5_PERBUF_Pos 5
1647 #define TCC_PERBUF_DITH5_PERBUF_Msk (_U_(0x7FFFF) << TCC_PERBUF_DITH5_PERBUF_Pos)
1648 #define TCC_PERBUF_DITH5_PERBUF(value) (TCC_PERBUF_DITH5_PERBUF_Msk & ((value) << TCC_PERBUF_DITH5_PERBUF_Pos))
1649 #define TCC_PERBUF_DITH5_MASK _U_(0x00FFFFFF)
1652 #define TCC_PERBUF_DITH6_DITHERBUF_Pos 0
1653 #define TCC_PERBUF_DITH6_DITHERBUF_Msk (_U_(0x3F) << TCC_PERBUF_DITH6_DITHERBUF_Pos)
1654 #define TCC_PERBUF_DITH6_DITHERBUF(value) (TCC_PERBUF_DITH6_DITHERBUF_Msk & ((value) << TCC_PERBUF_DITH6_DITHERBUF_Pos))
1655 #define TCC_PERBUF_DITH6_PERBUF_Pos 6
1656 #define TCC_PERBUF_DITH6_PERBUF_Msk (_U_(0x3FFFF) << TCC_PERBUF_DITH6_PERBUF_Pos)
1657 #define TCC_PERBUF_DITH6_PERBUF(value) (TCC_PERBUF_DITH6_PERBUF_Msk & ((value) << TCC_PERBUF_DITH6_PERBUF_Pos))
1658 #define TCC_PERBUF_DITH6_MASK _U_(0x00FFFFFF)
1660 #define TCC_PERBUF_PERBUF_Pos 0
1661 #define TCC_PERBUF_PERBUF_Msk (_U_(0xFFFFFF) << TCC_PERBUF_PERBUF_Pos)
1662 #define TCC_PERBUF_PERBUF(value) (TCC_PERBUF_PERBUF_Msk & ((value) << TCC_PERBUF_PERBUF_Pos))
1663 #define TCC_PERBUF_MASK _U_(0x00FFFFFF)
1666 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1674 uint32_t DITHERBUF:5;
1679 uint32_t DITHERBUF:6;
1691 #define TCC_CCBUF_OFFSET 0x70
1692 #define TCC_CCBUF_RESETVALUE _U_(0x00000000)
1695 #define TCC_CCBUF_DITH4_CCBUF_Pos 0
1696 #define TCC_CCBUF_DITH4_CCBUF_Msk (_U_(0xF) << TCC_CCBUF_DITH4_CCBUF_Pos)
1697 #define TCC_CCBUF_DITH4_CCBUF(value) (TCC_CCBUF_DITH4_CCBUF_Msk & ((value) << TCC_CCBUF_DITH4_CCBUF_Pos))
1698 #define TCC_CCBUF_DITH4_DITHERBUF_Pos 4
1699 #define TCC_CCBUF_DITH4_DITHERBUF_Msk (_U_(0xFFFFF) << TCC_CCBUF_DITH4_DITHERBUF_Pos)
1700 #define TCC_CCBUF_DITH4_DITHERBUF(value) (TCC_CCBUF_DITH4_DITHERBUF_Msk & ((value) << TCC_CCBUF_DITH4_DITHERBUF_Pos))
1701 #define TCC_CCBUF_DITH4_MASK _U_(0x00FFFFFF)
1704 #define TCC_CCBUF_DITH5_DITHERBUF_Pos 0
1705 #define TCC_CCBUF_DITH5_DITHERBUF_Msk (_U_(0x1F) << TCC_CCBUF_DITH5_DITHERBUF_Pos)
1706 #define TCC_CCBUF_DITH5_DITHERBUF(value) (TCC_CCBUF_DITH5_DITHERBUF_Msk & ((value) << TCC_CCBUF_DITH5_DITHERBUF_Pos))
1707 #define TCC_CCBUF_DITH5_CCBUF_Pos 5
1708 #define TCC_CCBUF_DITH5_CCBUF_Msk (_U_(0x7FFFF) << TCC_CCBUF_DITH5_CCBUF_Pos)
1709 #define TCC_CCBUF_DITH5_CCBUF(value) (TCC_CCBUF_DITH5_CCBUF_Msk & ((value) << TCC_CCBUF_DITH5_CCBUF_Pos))
1710 #define TCC_CCBUF_DITH5_MASK _U_(0x00FFFFFF)
1713 #define TCC_CCBUF_DITH6_DITHERBUF_Pos 0
1714 #define TCC_CCBUF_DITH6_DITHERBUF_Msk (_U_(0x3F) << TCC_CCBUF_DITH6_DITHERBUF_Pos)
1715 #define TCC_CCBUF_DITH6_DITHERBUF(value) (TCC_CCBUF_DITH6_DITHERBUF_Msk & ((value) << TCC_CCBUF_DITH6_DITHERBUF_Pos))
1716 #define TCC_CCBUF_DITH6_CCBUF_Pos 6
1717 #define TCC_CCBUF_DITH6_CCBUF_Msk (_U_(0x3FFFF) << TCC_CCBUF_DITH6_CCBUF_Pos)
1718 #define TCC_CCBUF_DITH6_CCBUF(value) (TCC_CCBUF_DITH6_CCBUF_Msk & ((value) << TCC_CCBUF_DITH6_CCBUF_Pos))
1719 #define TCC_CCBUF_DITH6_MASK _U_(0x00FFFFFF)
1721 #define TCC_CCBUF_CCBUF_Pos 0
1722 #define TCC_CCBUF_CCBUF_Msk (_U_(0xFFFFFF) << TCC_CCBUF_CCBUF_Pos)
1723 #define TCC_CCBUF_CCBUF(value) (TCC_CCBUF_CCBUF_Msk & ((value) << TCC_CCBUF_CCBUF_Pos))
1724 #define TCC_CCBUF_MASK _U_(0x00FFFFFF)
1727 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
__IO TCC_INTFLAG_Type INTFLAG
Offset: 0x2C (R/W 32) Interrupt Flag Status and Clear.
__IO TCC_COUNT_Type COUNT
Offset: 0x34 (R/W 32) Count.
__IO TCC_INTENSET_Type INTENSET
Offset: 0x28 (R/W 32) Interrupt Enable Set.
__IO TCC_WAVE_Type WAVE
Offset: 0x3C (R/W 32) Waveform Control.
__I TCC_SYNCBUSY_Type SYNCBUSY
Offset: 0x08 (R/ 32) Synchronization Busy.
__IO TCC_DRVCTRL_Type DRVCTRL
Offset: 0x18 (R/W 32) Driver Control.
__IO TCC_FCTRLA_Type FCTRLA
Offset: 0x0C (R/W 32) Recoverable Fault A Configuration.
__IO TCC_PATT_Type PATT
Offset: 0x38 (R/W 16) Pattern.
__IO TCC_WEXCTRL_Type WEXCTRL
Offset: 0x14 (R/W 32) Waveform Extension Configuration.
__IO TCC_CTRLBCLR_Type CTRLBCLR
Offset: 0x04 (R/W 8) Control B Clear.
__IO TCC_PERBUF_Type PERBUF
Offset: 0x6C (R/W 32) Period Buffer.
__IO TCC_DBGCTRL_Type DBGCTRL
Offset: 0x1E (R/W 8) Debug Control.
__IO TCC_CTRLBSET_Type CTRLBSET
Offset: 0x05 (R/W 8) Control B Set.
__IO TCC_STATUS_Type STATUS
Offset: 0x30 (R/W 32) Status.
__IO TCC_PER_Type PER
Offset: 0x40 (R/W 32) Period.
__IO TCC_FCTRLB_Type FCTRLB
Offset: 0x10 (R/W 32) Recoverable Fault B Configuration.
volatile const uint8_t RoReg8
__IO TCC_PATTBUF_Type PATTBUF
Offset: 0x64 (R/W 16) Pattern Buffer.
__IO TCC_INTENCLR_Type INTENCLR
Offset: 0x24 (R/W 32) Interrupt Enable Clear.
__IO TCC_EVCTRL_Type EVCTRL
Offset: 0x20 (R/W 32) Event Control.
__IO TCC_CTRLA_Type CTRLA
Offset: 0x00 (R/W 32) Control A.