EFM32 Gecko Software Documentation  efm32g-doc-5.1.2
efm32g_letimer.h
Go to the documentation of this file.
1 /**************************************************************************/
32 /**************************************************************************/
36 /**************************************************************************/
41 typedef struct
42 {
43  __IOM uint32_t CTRL;
44  __IOM uint32_t CMD;
45  __IM uint32_t STATUS;
46  __IM uint32_t CNT;
47  __IOM uint32_t COMP0;
48  __IOM uint32_t COMP1;
49  __IOM uint32_t REP0;
50  __IOM uint32_t REP1;
51  __IM uint32_t IF;
52  __IOM uint32_t IFS;
53  __IOM uint32_t IFC;
54  __IOM uint32_t IEN;
56  __IOM uint32_t FREEZE;
57  __IM uint32_t SYNCBUSY;
59  uint32_t RESERVED0[2];
60  __IOM uint32_t ROUTE;
63 /**************************************************************************/
68 /* Bit fields for LETIMER CTRL */
69 #define _LETIMER_CTRL_RESETVALUE 0x00000000UL
70 #define _LETIMER_CTRL_MASK 0x00001FFFUL
71 #define _LETIMER_CTRL_REPMODE_SHIFT 0
72 #define _LETIMER_CTRL_REPMODE_MASK 0x3UL
73 #define _LETIMER_CTRL_REPMODE_DEFAULT 0x00000000UL
74 #define _LETIMER_CTRL_REPMODE_FREE 0x00000000UL
75 #define _LETIMER_CTRL_REPMODE_ONESHOT 0x00000001UL
76 #define _LETIMER_CTRL_REPMODE_BUFFERED 0x00000002UL
77 #define _LETIMER_CTRL_REPMODE_DOUBLE 0x00000003UL
78 #define LETIMER_CTRL_REPMODE_DEFAULT (_LETIMER_CTRL_REPMODE_DEFAULT << 0)
79 #define LETIMER_CTRL_REPMODE_FREE (_LETIMER_CTRL_REPMODE_FREE << 0)
80 #define LETIMER_CTRL_REPMODE_ONESHOT (_LETIMER_CTRL_REPMODE_ONESHOT << 0)
81 #define LETIMER_CTRL_REPMODE_BUFFERED (_LETIMER_CTRL_REPMODE_BUFFERED << 0)
82 #define LETIMER_CTRL_REPMODE_DOUBLE (_LETIMER_CTRL_REPMODE_DOUBLE << 0)
83 #define _LETIMER_CTRL_UFOA0_SHIFT 2
84 #define _LETIMER_CTRL_UFOA0_MASK 0xCUL
85 #define _LETIMER_CTRL_UFOA0_DEFAULT 0x00000000UL
86 #define _LETIMER_CTRL_UFOA0_NONE 0x00000000UL
87 #define _LETIMER_CTRL_UFOA0_TOGGLE 0x00000001UL
88 #define _LETIMER_CTRL_UFOA0_PULSE 0x00000002UL
89 #define _LETIMER_CTRL_UFOA0_PWM 0x00000003UL
90 #define LETIMER_CTRL_UFOA0_DEFAULT (_LETIMER_CTRL_UFOA0_DEFAULT << 2)
91 #define LETIMER_CTRL_UFOA0_NONE (_LETIMER_CTRL_UFOA0_NONE << 2)
92 #define LETIMER_CTRL_UFOA0_TOGGLE (_LETIMER_CTRL_UFOA0_TOGGLE << 2)
93 #define LETIMER_CTRL_UFOA0_PULSE (_LETIMER_CTRL_UFOA0_PULSE << 2)
94 #define LETIMER_CTRL_UFOA0_PWM (_LETIMER_CTRL_UFOA0_PWM << 2)
95 #define _LETIMER_CTRL_UFOA1_SHIFT 4
96 #define _LETIMER_CTRL_UFOA1_MASK 0x30UL
97 #define _LETIMER_CTRL_UFOA1_DEFAULT 0x00000000UL
98 #define _LETIMER_CTRL_UFOA1_NONE 0x00000000UL
99 #define _LETIMER_CTRL_UFOA1_TOGGLE 0x00000001UL
100 #define _LETIMER_CTRL_UFOA1_PULSE 0x00000002UL
101 #define _LETIMER_CTRL_UFOA1_PWM 0x00000003UL
102 #define LETIMER_CTRL_UFOA1_DEFAULT (_LETIMER_CTRL_UFOA1_DEFAULT << 4)
103 #define LETIMER_CTRL_UFOA1_NONE (_LETIMER_CTRL_UFOA1_NONE << 4)
104 #define LETIMER_CTRL_UFOA1_TOGGLE (_LETIMER_CTRL_UFOA1_TOGGLE << 4)
105 #define LETIMER_CTRL_UFOA1_PULSE (_LETIMER_CTRL_UFOA1_PULSE << 4)
106 #define LETIMER_CTRL_UFOA1_PWM (_LETIMER_CTRL_UFOA1_PWM << 4)
107 #define LETIMER_CTRL_OPOL0 (0x1UL << 6)
108 #define _LETIMER_CTRL_OPOL0_SHIFT 6
109 #define _LETIMER_CTRL_OPOL0_MASK 0x40UL
110 #define _LETIMER_CTRL_OPOL0_DEFAULT 0x00000000UL
111 #define LETIMER_CTRL_OPOL0_DEFAULT (_LETIMER_CTRL_OPOL0_DEFAULT << 6)
112 #define LETIMER_CTRL_OPOL1 (0x1UL << 7)
113 #define _LETIMER_CTRL_OPOL1_SHIFT 7
114 #define _LETIMER_CTRL_OPOL1_MASK 0x80UL
115 #define _LETIMER_CTRL_OPOL1_DEFAULT 0x00000000UL
116 #define LETIMER_CTRL_OPOL1_DEFAULT (_LETIMER_CTRL_OPOL1_DEFAULT << 7)
117 #define LETIMER_CTRL_BUFTOP (0x1UL << 8)
118 #define _LETIMER_CTRL_BUFTOP_SHIFT 8
119 #define _LETIMER_CTRL_BUFTOP_MASK 0x100UL
120 #define _LETIMER_CTRL_BUFTOP_DEFAULT 0x00000000UL
121 #define LETIMER_CTRL_BUFTOP_DEFAULT (_LETIMER_CTRL_BUFTOP_DEFAULT << 8)
122 #define LETIMER_CTRL_COMP0TOP (0x1UL << 9)
123 #define _LETIMER_CTRL_COMP0TOP_SHIFT 9
124 #define _LETIMER_CTRL_COMP0TOP_MASK 0x200UL
125 #define _LETIMER_CTRL_COMP0TOP_DEFAULT 0x00000000UL
126 #define LETIMER_CTRL_COMP0TOP_DEFAULT (_LETIMER_CTRL_COMP0TOP_DEFAULT << 9)
127 #define LETIMER_CTRL_RTCC0TEN (0x1UL << 10)
128 #define _LETIMER_CTRL_RTCC0TEN_SHIFT 10
129 #define _LETIMER_CTRL_RTCC0TEN_MASK 0x400UL
130 #define _LETIMER_CTRL_RTCC0TEN_DEFAULT 0x00000000UL
131 #define LETIMER_CTRL_RTCC0TEN_DEFAULT (_LETIMER_CTRL_RTCC0TEN_DEFAULT << 10)
132 #define LETIMER_CTRL_RTCC1TEN (0x1UL << 11)
133 #define _LETIMER_CTRL_RTCC1TEN_SHIFT 11
134 #define _LETIMER_CTRL_RTCC1TEN_MASK 0x800UL
135 #define _LETIMER_CTRL_RTCC1TEN_DEFAULT 0x00000000UL
136 #define LETIMER_CTRL_RTCC1TEN_DEFAULT (_LETIMER_CTRL_RTCC1TEN_DEFAULT << 11)
137 #define LETIMER_CTRL_DEBUGRUN (0x1UL << 12)
138 #define _LETIMER_CTRL_DEBUGRUN_SHIFT 12
139 #define _LETIMER_CTRL_DEBUGRUN_MASK 0x1000UL
140 #define _LETIMER_CTRL_DEBUGRUN_DEFAULT 0x00000000UL
141 #define LETIMER_CTRL_DEBUGRUN_DEFAULT (_LETIMER_CTRL_DEBUGRUN_DEFAULT << 12)
143 /* Bit fields for LETIMER CMD */
144 #define _LETIMER_CMD_RESETVALUE 0x00000000UL
145 #define _LETIMER_CMD_MASK 0x0000001FUL
146 #define LETIMER_CMD_START (0x1UL << 0)
147 #define _LETIMER_CMD_START_SHIFT 0
148 #define _LETIMER_CMD_START_MASK 0x1UL
149 #define _LETIMER_CMD_START_DEFAULT 0x00000000UL
150 #define LETIMER_CMD_START_DEFAULT (_LETIMER_CMD_START_DEFAULT << 0)
151 #define LETIMER_CMD_STOP (0x1UL << 1)
152 #define _LETIMER_CMD_STOP_SHIFT 1
153 #define _LETIMER_CMD_STOP_MASK 0x2UL
154 #define _LETIMER_CMD_STOP_DEFAULT 0x00000000UL
155 #define LETIMER_CMD_STOP_DEFAULT (_LETIMER_CMD_STOP_DEFAULT << 1)
156 #define LETIMER_CMD_CLEAR (0x1UL << 2)
157 #define _LETIMER_CMD_CLEAR_SHIFT 2
158 #define _LETIMER_CMD_CLEAR_MASK 0x4UL
159 #define _LETIMER_CMD_CLEAR_DEFAULT 0x00000000UL
160 #define LETIMER_CMD_CLEAR_DEFAULT (_LETIMER_CMD_CLEAR_DEFAULT << 2)
161 #define LETIMER_CMD_CTO0 (0x1UL << 3)
162 #define _LETIMER_CMD_CTO0_SHIFT 3
163 #define _LETIMER_CMD_CTO0_MASK 0x8UL
164 #define _LETIMER_CMD_CTO0_DEFAULT 0x00000000UL
165 #define LETIMER_CMD_CTO0_DEFAULT (_LETIMER_CMD_CTO0_DEFAULT << 3)
166 #define LETIMER_CMD_CTO1 (0x1UL << 4)
167 #define _LETIMER_CMD_CTO1_SHIFT 4
168 #define _LETIMER_CMD_CTO1_MASK 0x10UL
169 #define _LETIMER_CMD_CTO1_DEFAULT 0x00000000UL
170 #define LETIMER_CMD_CTO1_DEFAULT (_LETIMER_CMD_CTO1_DEFAULT << 4)
172 /* Bit fields for LETIMER STATUS */
173 #define _LETIMER_STATUS_RESETVALUE 0x00000000UL
174 #define _LETIMER_STATUS_MASK 0x00000001UL
175 #define LETIMER_STATUS_RUNNING (0x1UL << 0)
176 #define _LETIMER_STATUS_RUNNING_SHIFT 0
177 #define _LETIMER_STATUS_RUNNING_MASK 0x1UL
178 #define _LETIMER_STATUS_RUNNING_DEFAULT 0x00000000UL
179 #define LETIMER_STATUS_RUNNING_DEFAULT (_LETIMER_STATUS_RUNNING_DEFAULT << 0)
181 /* Bit fields for LETIMER CNT */
182 #define _LETIMER_CNT_RESETVALUE 0x00000000UL
183 #define _LETIMER_CNT_MASK 0x0000FFFFUL
184 #define _LETIMER_CNT_CNT_SHIFT 0
185 #define _LETIMER_CNT_CNT_MASK 0xFFFFUL
186 #define _LETIMER_CNT_CNT_DEFAULT 0x00000000UL
187 #define LETIMER_CNT_CNT_DEFAULT (_LETIMER_CNT_CNT_DEFAULT << 0)
189 /* Bit fields for LETIMER COMP0 */
190 #define _LETIMER_COMP0_RESETVALUE 0x00000000UL
191 #define _LETIMER_COMP0_MASK 0x0000FFFFUL
192 #define _LETIMER_COMP0_COMP0_SHIFT 0
193 #define _LETIMER_COMP0_COMP0_MASK 0xFFFFUL
194 #define _LETIMER_COMP0_COMP0_DEFAULT 0x00000000UL
195 #define LETIMER_COMP0_COMP0_DEFAULT (_LETIMER_COMP0_COMP0_DEFAULT << 0)
197 /* Bit fields for LETIMER COMP1 */
198 #define _LETIMER_COMP1_RESETVALUE 0x00000000UL
199 #define _LETIMER_COMP1_MASK 0x0000FFFFUL
200 #define _LETIMER_COMP1_COMP1_SHIFT 0
201 #define _LETIMER_COMP1_COMP1_MASK 0xFFFFUL
202 #define _LETIMER_COMP1_COMP1_DEFAULT 0x00000000UL
203 #define LETIMER_COMP1_COMP1_DEFAULT (_LETIMER_COMP1_COMP1_DEFAULT << 0)
205 /* Bit fields for LETIMER REP0 */
206 #define _LETIMER_REP0_RESETVALUE 0x00000000UL
207 #define _LETIMER_REP0_MASK 0x000000FFUL
208 #define _LETIMER_REP0_REP0_SHIFT 0
209 #define _LETIMER_REP0_REP0_MASK 0xFFUL
210 #define _LETIMER_REP0_REP0_DEFAULT 0x00000000UL
211 #define LETIMER_REP0_REP0_DEFAULT (_LETIMER_REP0_REP0_DEFAULT << 0)
213 /* Bit fields for LETIMER REP1 */
214 #define _LETIMER_REP1_RESETVALUE 0x00000000UL
215 #define _LETIMER_REP1_MASK 0x000000FFUL
216 #define _LETIMER_REP1_REP1_SHIFT 0
217 #define _LETIMER_REP1_REP1_MASK 0xFFUL
218 #define _LETIMER_REP1_REP1_DEFAULT 0x00000000UL
219 #define LETIMER_REP1_REP1_DEFAULT (_LETIMER_REP1_REP1_DEFAULT << 0)
221 /* Bit fields for LETIMER IF */
222 #define _LETIMER_IF_RESETVALUE 0x00000000UL
223 #define _LETIMER_IF_MASK 0x0000001FUL
224 #define LETIMER_IF_COMP0 (0x1UL << 0)
225 #define _LETIMER_IF_COMP0_SHIFT 0
226 #define _LETIMER_IF_COMP0_MASK 0x1UL
227 #define _LETIMER_IF_COMP0_DEFAULT 0x00000000UL
228 #define LETIMER_IF_COMP0_DEFAULT (_LETIMER_IF_COMP0_DEFAULT << 0)
229 #define LETIMER_IF_COMP1 (0x1UL << 1)
230 #define _LETIMER_IF_COMP1_SHIFT 1
231 #define _LETIMER_IF_COMP1_MASK 0x2UL
232 #define _LETIMER_IF_COMP1_DEFAULT 0x00000000UL
233 #define LETIMER_IF_COMP1_DEFAULT (_LETIMER_IF_COMP1_DEFAULT << 1)
234 #define LETIMER_IF_UF (0x1UL << 2)
235 #define _LETIMER_IF_UF_SHIFT 2
236 #define _LETIMER_IF_UF_MASK 0x4UL
237 #define _LETIMER_IF_UF_DEFAULT 0x00000000UL
238 #define LETIMER_IF_UF_DEFAULT (_LETIMER_IF_UF_DEFAULT << 2)
239 #define LETIMER_IF_REP0 (0x1UL << 3)
240 #define _LETIMER_IF_REP0_SHIFT 3
241 #define _LETIMER_IF_REP0_MASK 0x8UL
242 #define _LETIMER_IF_REP0_DEFAULT 0x00000000UL
243 #define LETIMER_IF_REP0_DEFAULT (_LETIMER_IF_REP0_DEFAULT << 3)
244 #define LETIMER_IF_REP1 (0x1UL << 4)
245 #define _LETIMER_IF_REP1_SHIFT 4
246 #define _LETIMER_IF_REP1_MASK 0x10UL
247 #define _LETIMER_IF_REP1_DEFAULT 0x00000000UL
248 #define LETIMER_IF_REP1_DEFAULT (_LETIMER_IF_REP1_DEFAULT << 4)
250 /* Bit fields for LETIMER IFS */
251 #define _LETIMER_IFS_RESETVALUE 0x00000000UL
252 #define _LETIMER_IFS_MASK 0x0000001FUL
253 #define LETIMER_IFS_COMP0 (0x1UL << 0)
254 #define _LETIMER_IFS_COMP0_SHIFT 0
255 #define _LETIMER_IFS_COMP0_MASK 0x1UL
256 #define _LETIMER_IFS_COMP0_DEFAULT 0x00000000UL
257 #define LETIMER_IFS_COMP0_DEFAULT (_LETIMER_IFS_COMP0_DEFAULT << 0)
258 #define LETIMER_IFS_COMP1 (0x1UL << 1)
259 #define _LETIMER_IFS_COMP1_SHIFT 1
260 #define _LETIMER_IFS_COMP1_MASK 0x2UL
261 #define _LETIMER_IFS_COMP1_DEFAULT 0x00000000UL
262 #define LETIMER_IFS_COMP1_DEFAULT (_LETIMER_IFS_COMP1_DEFAULT << 1)
263 #define LETIMER_IFS_UF (0x1UL << 2)
264 #define _LETIMER_IFS_UF_SHIFT 2
265 #define _LETIMER_IFS_UF_MASK 0x4UL
266 #define _LETIMER_IFS_UF_DEFAULT 0x00000000UL
267 #define LETIMER_IFS_UF_DEFAULT (_LETIMER_IFS_UF_DEFAULT << 2)
268 #define LETIMER_IFS_REP0 (0x1UL << 3)
269 #define _LETIMER_IFS_REP0_SHIFT 3
270 #define _LETIMER_IFS_REP0_MASK 0x8UL
271 #define _LETIMER_IFS_REP0_DEFAULT 0x00000000UL
272 #define LETIMER_IFS_REP0_DEFAULT (_LETIMER_IFS_REP0_DEFAULT << 3)
273 #define LETIMER_IFS_REP1 (0x1UL << 4)
274 #define _LETIMER_IFS_REP1_SHIFT 4
275 #define _LETIMER_IFS_REP1_MASK 0x10UL
276 #define _LETIMER_IFS_REP1_DEFAULT 0x00000000UL
277 #define LETIMER_IFS_REP1_DEFAULT (_LETIMER_IFS_REP1_DEFAULT << 4)
279 /* Bit fields for LETIMER IFC */
280 #define _LETIMER_IFC_RESETVALUE 0x00000000UL
281 #define _LETIMER_IFC_MASK 0x0000001FUL
282 #define LETIMER_IFC_COMP0 (0x1UL << 0)
283 #define _LETIMER_IFC_COMP0_SHIFT 0
284 #define _LETIMER_IFC_COMP0_MASK 0x1UL
285 #define _LETIMER_IFC_COMP0_DEFAULT 0x00000000UL
286 #define LETIMER_IFC_COMP0_DEFAULT (_LETIMER_IFC_COMP0_DEFAULT << 0)
287 #define LETIMER_IFC_COMP1 (0x1UL << 1)
288 #define _LETIMER_IFC_COMP1_SHIFT 1
289 #define _LETIMER_IFC_COMP1_MASK 0x2UL
290 #define _LETIMER_IFC_COMP1_DEFAULT 0x00000000UL
291 #define LETIMER_IFC_COMP1_DEFAULT (_LETIMER_IFC_COMP1_DEFAULT << 1)
292 #define LETIMER_IFC_UF (0x1UL << 2)
293 #define _LETIMER_IFC_UF_SHIFT 2
294 #define _LETIMER_IFC_UF_MASK 0x4UL
295 #define _LETIMER_IFC_UF_DEFAULT 0x00000000UL
296 #define LETIMER_IFC_UF_DEFAULT (_LETIMER_IFC_UF_DEFAULT << 2)
297 #define LETIMER_IFC_REP0 (0x1UL << 3)
298 #define _LETIMER_IFC_REP0_SHIFT 3
299 #define _LETIMER_IFC_REP0_MASK 0x8UL
300 #define _LETIMER_IFC_REP0_DEFAULT 0x00000000UL
301 #define LETIMER_IFC_REP0_DEFAULT (_LETIMER_IFC_REP0_DEFAULT << 3)
302 #define LETIMER_IFC_REP1 (0x1UL << 4)
303 #define _LETIMER_IFC_REP1_SHIFT 4
304 #define _LETIMER_IFC_REP1_MASK 0x10UL
305 #define _LETIMER_IFC_REP1_DEFAULT 0x00000000UL
306 #define LETIMER_IFC_REP1_DEFAULT (_LETIMER_IFC_REP1_DEFAULT << 4)
308 /* Bit fields for LETIMER IEN */
309 #define _LETIMER_IEN_RESETVALUE 0x00000000UL
310 #define _LETIMER_IEN_MASK 0x0000001FUL
311 #define LETIMER_IEN_COMP0 (0x1UL << 0)
312 #define _LETIMER_IEN_COMP0_SHIFT 0
313 #define _LETIMER_IEN_COMP0_MASK 0x1UL
314 #define _LETIMER_IEN_COMP0_DEFAULT 0x00000000UL
315 #define LETIMER_IEN_COMP0_DEFAULT (_LETIMER_IEN_COMP0_DEFAULT << 0)
316 #define LETIMER_IEN_COMP1 (0x1UL << 1)
317 #define _LETIMER_IEN_COMP1_SHIFT 1
318 #define _LETIMER_IEN_COMP1_MASK 0x2UL
319 #define _LETIMER_IEN_COMP1_DEFAULT 0x00000000UL
320 #define LETIMER_IEN_COMP1_DEFAULT (_LETIMER_IEN_COMP1_DEFAULT << 1)
321 #define LETIMER_IEN_UF (0x1UL << 2)
322 #define _LETIMER_IEN_UF_SHIFT 2
323 #define _LETIMER_IEN_UF_MASK 0x4UL
324 #define _LETIMER_IEN_UF_DEFAULT 0x00000000UL
325 #define LETIMER_IEN_UF_DEFAULT (_LETIMER_IEN_UF_DEFAULT << 2)
326 #define LETIMER_IEN_REP0 (0x1UL << 3)
327 #define _LETIMER_IEN_REP0_SHIFT 3
328 #define _LETIMER_IEN_REP0_MASK 0x8UL
329 #define _LETIMER_IEN_REP0_DEFAULT 0x00000000UL
330 #define LETIMER_IEN_REP0_DEFAULT (_LETIMER_IEN_REP0_DEFAULT << 3)
331 #define LETIMER_IEN_REP1 (0x1UL << 4)
332 #define _LETIMER_IEN_REP1_SHIFT 4
333 #define _LETIMER_IEN_REP1_MASK 0x10UL
334 #define _LETIMER_IEN_REP1_DEFAULT 0x00000000UL
335 #define LETIMER_IEN_REP1_DEFAULT (_LETIMER_IEN_REP1_DEFAULT << 4)
337 /* Bit fields for LETIMER FREEZE */
338 #define _LETIMER_FREEZE_RESETVALUE 0x00000000UL
339 #define _LETIMER_FREEZE_MASK 0x00000001UL
340 #define LETIMER_FREEZE_REGFREEZE (0x1UL << 0)
341 #define _LETIMER_FREEZE_REGFREEZE_SHIFT 0
342 #define _LETIMER_FREEZE_REGFREEZE_MASK 0x1UL
343 #define _LETIMER_FREEZE_REGFREEZE_DEFAULT 0x00000000UL
344 #define _LETIMER_FREEZE_REGFREEZE_UPDATE 0x00000000UL
345 #define _LETIMER_FREEZE_REGFREEZE_FREEZE 0x00000001UL
346 #define LETIMER_FREEZE_REGFREEZE_DEFAULT (_LETIMER_FREEZE_REGFREEZE_DEFAULT << 0)
347 #define LETIMER_FREEZE_REGFREEZE_UPDATE (_LETIMER_FREEZE_REGFREEZE_UPDATE << 0)
348 #define LETIMER_FREEZE_REGFREEZE_FREEZE (_LETIMER_FREEZE_REGFREEZE_FREEZE << 0)
350 /* Bit fields for LETIMER SYNCBUSY */
351 #define _LETIMER_SYNCBUSY_RESETVALUE 0x00000000UL
352 #define _LETIMER_SYNCBUSY_MASK 0x0000003FUL
353 #define LETIMER_SYNCBUSY_CTRL (0x1UL << 0)
354 #define _LETIMER_SYNCBUSY_CTRL_SHIFT 0
355 #define _LETIMER_SYNCBUSY_CTRL_MASK 0x1UL
356 #define _LETIMER_SYNCBUSY_CTRL_DEFAULT 0x00000000UL
357 #define LETIMER_SYNCBUSY_CTRL_DEFAULT (_LETIMER_SYNCBUSY_CTRL_DEFAULT << 0)
358 #define LETIMER_SYNCBUSY_CMD (0x1UL << 1)
359 #define _LETIMER_SYNCBUSY_CMD_SHIFT 1
360 #define _LETIMER_SYNCBUSY_CMD_MASK 0x2UL
361 #define _LETIMER_SYNCBUSY_CMD_DEFAULT 0x00000000UL
362 #define LETIMER_SYNCBUSY_CMD_DEFAULT (_LETIMER_SYNCBUSY_CMD_DEFAULT << 1)
363 #define LETIMER_SYNCBUSY_COMP0 (0x1UL << 2)
364 #define _LETIMER_SYNCBUSY_COMP0_SHIFT 2
365 #define _LETIMER_SYNCBUSY_COMP0_MASK 0x4UL
366 #define _LETIMER_SYNCBUSY_COMP0_DEFAULT 0x00000000UL
367 #define LETIMER_SYNCBUSY_COMP0_DEFAULT (_LETIMER_SYNCBUSY_COMP0_DEFAULT << 2)
368 #define LETIMER_SYNCBUSY_COMP1 (0x1UL << 3)
369 #define _LETIMER_SYNCBUSY_COMP1_SHIFT 3
370 #define _LETIMER_SYNCBUSY_COMP1_MASK 0x8UL
371 #define _LETIMER_SYNCBUSY_COMP1_DEFAULT 0x00000000UL
372 #define LETIMER_SYNCBUSY_COMP1_DEFAULT (_LETIMER_SYNCBUSY_COMP1_DEFAULT << 3)
373 #define LETIMER_SYNCBUSY_REP0 (0x1UL << 4)
374 #define _LETIMER_SYNCBUSY_REP0_SHIFT 4
375 #define _LETIMER_SYNCBUSY_REP0_MASK 0x10UL
376 #define _LETIMER_SYNCBUSY_REP0_DEFAULT 0x00000000UL
377 #define LETIMER_SYNCBUSY_REP0_DEFAULT (_LETIMER_SYNCBUSY_REP0_DEFAULT << 4)
378 #define LETIMER_SYNCBUSY_REP1 (0x1UL << 5)
379 #define _LETIMER_SYNCBUSY_REP1_SHIFT 5
380 #define _LETIMER_SYNCBUSY_REP1_MASK 0x20UL
381 #define _LETIMER_SYNCBUSY_REP1_DEFAULT 0x00000000UL
382 #define LETIMER_SYNCBUSY_REP1_DEFAULT (_LETIMER_SYNCBUSY_REP1_DEFAULT << 5)
384 /* Bit fields for LETIMER ROUTE */
385 #define _LETIMER_ROUTE_RESETVALUE 0x00000000UL
386 #define _LETIMER_ROUTE_MASK 0x00000303UL
387 #define LETIMER_ROUTE_OUT0PEN (0x1UL << 0)
388 #define _LETIMER_ROUTE_OUT0PEN_SHIFT 0
389 #define _LETIMER_ROUTE_OUT0PEN_MASK 0x1UL
390 #define _LETIMER_ROUTE_OUT0PEN_DEFAULT 0x00000000UL
391 #define LETIMER_ROUTE_OUT0PEN_DEFAULT (_LETIMER_ROUTE_OUT0PEN_DEFAULT << 0)
392 #define LETIMER_ROUTE_OUT1PEN (0x1UL << 1)
393 #define _LETIMER_ROUTE_OUT1PEN_SHIFT 1
394 #define _LETIMER_ROUTE_OUT1PEN_MASK 0x2UL
395 #define _LETIMER_ROUTE_OUT1PEN_DEFAULT 0x00000000UL
396 #define LETIMER_ROUTE_OUT1PEN_DEFAULT (_LETIMER_ROUTE_OUT1PEN_DEFAULT << 1)
397 #define _LETIMER_ROUTE_LOCATION_SHIFT 8
398 #define _LETIMER_ROUTE_LOCATION_MASK 0x300UL
399 #define _LETIMER_ROUTE_LOCATION_LOC0 0x00000000UL
400 #define _LETIMER_ROUTE_LOCATION_DEFAULT 0x00000000UL
401 #define _LETIMER_ROUTE_LOCATION_LOC1 0x00000001UL
402 #define _LETIMER_ROUTE_LOCATION_LOC2 0x00000002UL
403 #define _LETIMER_ROUTE_LOCATION_LOC3 0x00000003UL
404 #define LETIMER_ROUTE_LOCATION_LOC0 (_LETIMER_ROUTE_LOCATION_LOC0 << 8)
405 #define LETIMER_ROUTE_LOCATION_DEFAULT (_LETIMER_ROUTE_LOCATION_DEFAULT << 8)
406 #define LETIMER_ROUTE_LOCATION_LOC1 (_LETIMER_ROUTE_LOCATION_LOC1 << 8)
407 #define LETIMER_ROUTE_LOCATION_LOC2 (_LETIMER_ROUTE_LOCATION_LOC2 << 8)
408 #define LETIMER_ROUTE_LOCATION_LOC3 (_LETIMER_ROUTE_LOCATION_LOC3 << 8)
__IOM uint32_t REP1
__IM uint32_t SYNCBUSY
__IOM uint32_t CTRL
__IOM uint32_t IEN
__IOM uint32_t CMD
__IOM uint32_t REP0
__IOM uint32_t COMP0
__IM uint32_t STATUS
__IOM uint32_t IFC
__IOM uint32_t ROUTE
__IM uint32_t IF
__IM uint32_t CNT
__IOM uint32_t FREEZE
__IOM uint32_t IFS
__IOM uint32_t COMP1