EFR32 Mighty Gecko 1 Software Documentation  efr32mg1-doc-5.1.2
efr32mg1p_pcnt.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  __IM uint32_t TOP;
48  __IOM uint32_t TOPB;
49  __IM uint32_t IF;
50  __IOM uint32_t IFS;
51  __IOM uint32_t IFC;
52  __IOM uint32_t IEN;
53  uint32_t RESERVED0[1];
54  __IOM uint32_t ROUTELOC0;
56  uint32_t RESERVED1[4];
57  __IOM uint32_t FREEZE;
58  __IM uint32_t SYNCBUSY;
60  uint32_t RESERVED2[7];
61  __IM uint32_t AUXCNT;
62  __IOM uint32_t INPUT;
63  __IOM uint32_t OVSCFG;
64 } PCNT_TypeDef;
66 /**************************************************************************/
71 /* Bit fields for PCNT CTRL */
72 #define _PCNT_CTRL_RESETVALUE 0x00000000UL
73 #define _PCNT_CTRL_MASK 0xBFDBFFFFUL
74 #define _PCNT_CTRL_MODE_SHIFT 0
75 #define _PCNT_CTRL_MODE_MASK 0x7UL
76 #define _PCNT_CTRL_MODE_DEFAULT 0x00000000UL
77 #define _PCNT_CTRL_MODE_DISABLE 0x00000000UL
78 #define _PCNT_CTRL_MODE_OVSSINGLE 0x00000001UL
79 #define _PCNT_CTRL_MODE_EXTCLKSINGLE 0x00000002UL
80 #define _PCNT_CTRL_MODE_EXTCLKQUAD 0x00000003UL
81 #define _PCNT_CTRL_MODE_OVSQUAD1X 0x00000004UL
82 #define _PCNT_CTRL_MODE_OVSQUAD2X 0x00000005UL
83 #define _PCNT_CTRL_MODE_OVSQUAD4X 0x00000006UL
84 #define PCNT_CTRL_MODE_DEFAULT (_PCNT_CTRL_MODE_DEFAULT << 0)
85 #define PCNT_CTRL_MODE_DISABLE (_PCNT_CTRL_MODE_DISABLE << 0)
86 #define PCNT_CTRL_MODE_OVSSINGLE (_PCNT_CTRL_MODE_OVSSINGLE << 0)
87 #define PCNT_CTRL_MODE_EXTCLKSINGLE (_PCNT_CTRL_MODE_EXTCLKSINGLE << 0)
88 #define PCNT_CTRL_MODE_EXTCLKQUAD (_PCNT_CTRL_MODE_EXTCLKQUAD << 0)
89 #define PCNT_CTRL_MODE_OVSQUAD1X (_PCNT_CTRL_MODE_OVSQUAD1X << 0)
90 #define PCNT_CTRL_MODE_OVSQUAD2X (_PCNT_CTRL_MODE_OVSQUAD2X << 0)
91 #define PCNT_CTRL_MODE_OVSQUAD4X (_PCNT_CTRL_MODE_OVSQUAD4X << 0)
92 #define PCNT_CTRL_FILT (0x1UL << 3)
93 #define _PCNT_CTRL_FILT_SHIFT 3
94 #define _PCNT_CTRL_FILT_MASK 0x8UL
95 #define _PCNT_CTRL_FILT_DEFAULT 0x00000000UL
96 #define PCNT_CTRL_FILT_DEFAULT (_PCNT_CTRL_FILT_DEFAULT << 3)
97 #define PCNT_CTRL_RSTEN (0x1UL << 4)
98 #define _PCNT_CTRL_RSTEN_SHIFT 4
99 #define _PCNT_CTRL_RSTEN_MASK 0x10UL
100 #define _PCNT_CTRL_RSTEN_DEFAULT 0x00000000UL
101 #define PCNT_CTRL_RSTEN_DEFAULT (_PCNT_CTRL_RSTEN_DEFAULT << 4)
102 #define PCNT_CTRL_CNTRSTEN (0x1UL << 5)
103 #define _PCNT_CTRL_CNTRSTEN_SHIFT 5
104 #define _PCNT_CTRL_CNTRSTEN_MASK 0x20UL
105 #define _PCNT_CTRL_CNTRSTEN_DEFAULT 0x00000000UL
106 #define PCNT_CTRL_CNTRSTEN_DEFAULT (_PCNT_CTRL_CNTRSTEN_DEFAULT << 5)
107 #define PCNT_CTRL_AUXCNTRSTEN (0x1UL << 6)
108 #define _PCNT_CTRL_AUXCNTRSTEN_SHIFT 6
109 #define _PCNT_CTRL_AUXCNTRSTEN_MASK 0x40UL
110 #define _PCNT_CTRL_AUXCNTRSTEN_DEFAULT 0x00000000UL
111 #define PCNT_CTRL_AUXCNTRSTEN_DEFAULT (_PCNT_CTRL_AUXCNTRSTEN_DEFAULT << 6)
112 #define PCNT_CTRL_DEBUGHALT (0x1UL << 7)
113 #define _PCNT_CTRL_DEBUGHALT_SHIFT 7
114 #define _PCNT_CTRL_DEBUGHALT_MASK 0x80UL
115 #define _PCNT_CTRL_DEBUGHALT_DEFAULT 0x00000000UL
116 #define PCNT_CTRL_DEBUGHALT_DEFAULT (_PCNT_CTRL_DEBUGHALT_DEFAULT << 7)
117 #define PCNT_CTRL_HYST (0x1UL << 8)
118 #define _PCNT_CTRL_HYST_SHIFT 8
119 #define _PCNT_CTRL_HYST_MASK 0x100UL
120 #define _PCNT_CTRL_HYST_DEFAULT 0x00000000UL
121 #define PCNT_CTRL_HYST_DEFAULT (_PCNT_CTRL_HYST_DEFAULT << 8)
122 #define PCNT_CTRL_S1CDIR (0x1UL << 9)
123 #define _PCNT_CTRL_S1CDIR_SHIFT 9
124 #define _PCNT_CTRL_S1CDIR_MASK 0x200UL
125 #define _PCNT_CTRL_S1CDIR_DEFAULT 0x00000000UL
126 #define PCNT_CTRL_S1CDIR_DEFAULT (_PCNT_CTRL_S1CDIR_DEFAULT << 9)
127 #define _PCNT_CTRL_CNTEV_SHIFT 10
128 #define _PCNT_CTRL_CNTEV_MASK 0xC00UL
129 #define _PCNT_CTRL_CNTEV_DEFAULT 0x00000000UL
130 #define _PCNT_CTRL_CNTEV_BOTH 0x00000000UL
131 #define _PCNT_CTRL_CNTEV_UP 0x00000001UL
132 #define _PCNT_CTRL_CNTEV_DOWN 0x00000002UL
133 #define _PCNT_CTRL_CNTEV_NONE 0x00000003UL
134 #define PCNT_CTRL_CNTEV_DEFAULT (_PCNT_CTRL_CNTEV_DEFAULT << 10)
135 #define PCNT_CTRL_CNTEV_BOTH (_PCNT_CTRL_CNTEV_BOTH << 10)
136 #define PCNT_CTRL_CNTEV_UP (_PCNT_CTRL_CNTEV_UP << 10)
137 #define PCNT_CTRL_CNTEV_DOWN (_PCNT_CTRL_CNTEV_DOWN << 10)
138 #define PCNT_CTRL_CNTEV_NONE (_PCNT_CTRL_CNTEV_NONE << 10)
139 #define _PCNT_CTRL_AUXCNTEV_SHIFT 12
140 #define _PCNT_CTRL_AUXCNTEV_MASK 0x3000UL
141 #define _PCNT_CTRL_AUXCNTEV_DEFAULT 0x00000000UL
142 #define _PCNT_CTRL_AUXCNTEV_NONE 0x00000000UL
143 #define _PCNT_CTRL_AUXCNTEV_UP 0x00000001UL
144 #define _PCNT_CTRL_AUXCNTEV_DOWN 0x00000002UL
145 #define _PCNT_CTRL_AUXCNTEV_BOTH 0x00000003UL
146 #define PCNT_CTRL_AUXCNTEV_DEFAULT (_PCNT_CTRL_AUXCNTEV_DEFAULT << 12)
147 #define PCNT_CTRL_AUXCNTEV_NONE (_PCNT_CTRL_AUXCNTEV_NONE << 12)
148 #define PCNT_CTRL_AUXCNTEV_UP (_PCNT_CTRL_AUXCNTEV_UP << 12)
149 #define PCNT_CTRL_AUXCNTEV_DOWN (_PCNT_CTRL_AUXCNTEV_DOWN << 12)
150 #define PCNT_CTRL_AUXCNTEV_BOTH (_PCNT_CTRL_AUXCNTEV_BOTH << 12)
151 #define PCNT_CTRL_CNTDIR (0x1UL << 14)
152 #define _PCNT_CTRL_CNTDIR_SHIFT 14
153 #define _PCNT_CTRL_CNTDIR_MASK 0x4000UL
154 #define _PCNT_CTRL_CNTDIR_DEFAULT 0x00000000UL
155 #define _PCNT_CTRL_CNTDIR_UP 0x00000000UL
156 #define _PCNT_CTRL_CNTDIR_DOWN 0x00000001UL
157 #define PCNT_CTRL_CNTDIR_DEFAULT (_PCNT_CTRL_CNTDIR_DEFAULT << 14)
158 #define PCNT_CTRL_CNTDIR_UP (_PCNT_CTRL_CNTDIR_UP << 14)
159 #define PCNT_CTRL_CNTDIR_DOWN (_PCNT_CTRL_CNTDIR_DOWN << 14)
160 #define PCNT_CTRL_EDGE (0x1UL << 15)
161 #define _PCNT_CTRL_EDGE_SHIFT 15
162 #define _PCNT_CTRL_EDGE_MASK 0x8000UL
163 #define _PCNT_CTRL_EDGE_DEFAULT 0x00000000UL
164 #define _PCNT_CTRL_EDGE_POS 0x00000000UL
165 #define _PCNT_CTRL_EDGE_NEG 0x00000001UL
166 #define PCNT_CTRL_EDGE_DEFAULT (_PCNT_CTRL_EDGE_DEFAULT << 15)
167 #define PCNT_CTRL_EDGE_POS (_PCNT_CTRL_EDGE_POS << 15)
168 #define PCNT_CTRL_EDGE_NEG (_PCNT_CTRL_EDGE_NEG << 15)
169 #define _PCNT_CTRL_TCCMODE_SHIFT 16
170 #define _PCNT_CTRL_TCCMODE_MASK 0x30000UL
171 #define _PCNT_CTRL_TCCMODE_DEFAULT 0x00000000UL
172 #define _PCNT_CTRL_TCCMODE_DISABLED 0x00000000UL
173 #define _PCNT_CTRL_TCCMODE_LFA 0x00000001UL
174 #define _PCNT_CTRL_TCCMODE_PRS 0x00000002UL
175 #define PCNT_CTRL_TCCMODE_DEFAULT (_PCNT_CTRL_TCCMODE_DEFAULT << 16)
176 #define PCNT_CTRL_TCCMODE_DISABLED (_PCNT_CTRL_TCCMODE_DISABLED << 16)
177 #define PCNT_CTRL_TCCMODE_LFA (_PCNT_CTRL_TCCMODE_LFA << 16)
178 #define PCNT_CTRL_TCCMODE_PRS (_PCNT_CTRL_TCCMODE_PRS << 16)
179 #define _PCNT_CTRL_TCCPRESC_SHIFT 19
180 #define _PCNT_CTRL_TCCPRESC_MASK 0x180000UL
181 #define _PCNT_CTRL_TCCPRESC_DEFAULT 0x00000000UL
182 #define _PCNT_CTRL_TCCPRESC_DIV1 0x00000000UL
183 #define _PCNT_CTRL_TCCPRESC_DIV2 0x00000001UL
184 #define _PCNT_CTRL_TCCPRESC_DIV4 0x00000002UL
185 #define _PCNT_CTRL_TCCPRESC_DIV8 0x00000003UL
186 #define PCNT_CTRL_TCCPRESC_DEFAULT (_PCNT_CTRL_TCCPRESC_DEFAULT << 19)
187 #define PCNT_CTRL_TCCPRESC_DIV1 (_PCNT_CTRL_TCCPRESC_DIV1 << 19)
188 #define PCNT_CTRL_TCCPRESC_DIV2 (_PCNT_CTRL_TCCPRESC_DIV2 << 19)
189 #define PCNT_CTRL_TCCPRESC_DIV4 (_PCNT_CTRL_TCCPRESC_DIV4 << 19)
190 #define PCNT_CTRL_TCCPRESC_DIV8 (_PCNT_CTRL_TCCPRESC_DIV8 << 19)
191 #define _PCNT_CTRL_TCCCOMP_SHIFT 22
192 #define _PCNT_CTRL_TCCCOMP_MASK 0xC00000UL
193 #define _PCNT_CTRL_TCCCOMP_DEFAULT 0x00000000UL
194 #define _PCNT_CTRL_TCCCOMP_LTOE 0x00000000UL
195 #define _PCNT_CTRL_TCCCOMP_GTOE 0x00000001UL
196 #define _PCNT_CTRL_TCCCOMP_RANGE 0x00000002UL
197 #define PCNT_CTRL_TCCCOMP_DEFAULT (_PCNT_CTRL_TCCCOMP_DEFAULT << 22)
198 #define PCNT_CTRL_TCCCOMP_LTOE (_PCNT_CTRL_TCCCOMP_LTOE << 22)
199 #define PCNT_CTRL_TCCCOMP_GTOE (_PCNT_CTRL_TCCCOMP_GTOE << 22)
200 #define PCNT_CTRL_TCCCOMP_RANGE (_PCNT_CTRL_TCCCOMP_RANGE << 22)
201 #define PCNT_CTRL_PRSGATEEN (0x1UL << 24)
202 #define _PCNT_CTRL_PRSGATEEN_SHIFT 24
203 #define _PCNT_CTRL_PRSGATEEN_MASK 0x1000000UL
204 #define _PCNT_CTRL_PRSGATEEN_DEFAULT 0x00000000UL
205 #define PCNT_CTRL_PRSGATEEN_DEFAULT (_PCNT_CTRL_PRSGATEEN_DEFAULT << 24)
206 #define PCNT_CTRL_TCCPRSPOL (0x1UL << 25)
207 #define _PCNT_CTRL_TCCPRSPOL_SHIFT 25
208 #define _PCNT_CTRL_TCCPRSPOL_MASK 0x2000000UL
209 #define _PCNT_CTRL_TCCPRSPOL_DEFAULT 0x00000000UL
210 #define _PCNT_CTRL_TCCPRSPOL_RISING 0x00000000UL
211 #define _PCNT_CTRL_TCCPRSPOL_FALLING 0x00000001UL
212 #define PCNT_CTRL_TCCPRSPOL_DEFAULT (_PCNT_CTRL_TCCPRSPOL_DEFAULT << 25)
213 #define PCNT_CTRL_TCCPRSPOL_RISING (_PCNT_CTRL_TCCPRSPOL_RISING << 25)
214 #define PCNT_CTRL_TCCPRSPOL_FALLING (_PCNT_CTRL_TCCPRSPOL_FALLING << 25)
215 #define _PCNT_CTRL_TCCPRSSEL_SHIFT 26
216 #define _PCNT_CTRL_TCCPRSSEL_MASK 0x3C000000UL
217 #define _PCNT_CTRL_TCCPRSSEL_DEFAULT 0x00000000UL
218 #define _PCNT_CTRL_TCCPRSSEL_PRSCH0 0x00000000UL
219 #define _PCNT_CTRL_TCCPRSSEL_PRSCH1 0x00000001UL
220 #define _PCNT_CTRL_TCCPRSSEL_PRSCH2 0x00000002UL
221 #define _PCNT_CTRL_TCCPRSSEL_PRSCH3 0x00000003UL
222 #define _PCNT_CTRL_TCCPRSSEL_PRSCH4 0x00000004UL
223 #define _PCNT_CTRL_TCCPRSSEL_PRSCH5 0x00000005UL
224 #define _PCNT_CTRL_TCCPRSSEL_PRSCH6 0x00000006UL
225 #define _PCNT_CTRL_TCCPRSSEL_PRSCH7 0x00000007UL
226 #define _PCNT_CTRL_TCCPRSSEL_PRSCH8 0x00000008UL
227 #define _PCNT_CTRL_TCCPRSSEL_PRSCH9 0x00000009UL
228 #define _PCNT_CTRL_TCCPRSSEL_PRSCH10 0x0000000AUL
229 #define _PCNT_CTRL_TCCPRSSEL_PRSCH11 0x0000000BUL
230 #define PCNT_CTRL_TCCPRSSEL_DEFAULT (_PCNT_CTRL_TCCPRSSEL_DEFAULT << 26)
231 #define PCNT_CTRL_TCCPRSSEL_PRSCH0 (_PCNT_CTRL_TCCPRSSEL_PRSCH0 << 26)
232 #define PCNT_CTRL_TCCPRSSEL_PRSCH1 (_PCNT_CTRL_TCCPRSSEL_PRSCH1 << 26)
233 #define PCNT_CTRL_TCCPRSSEL_PRSCH2 (_PCNT_CTRL_TCCPRSSEL_PRSCH2 << 26)
234 #define PCNT_CTRL_TCCPRSSEL_PRSCH3 (_PCNT_CTRL_TCCPRSSEL_PRSCH3 << 26)
235 #define PCNT_CTRL_TCCPRSSEL_PRSCH4 (_PCNT_CTRL_TCCPRSSEL_PRSCH4 << 26)
236 #define PCNT_CTRL_TCCPRSSEL_PRSCH5 (_PCNT_CTRL_TCCPRSSEL_PRSCH5 << 26)
237 #define PCNT_CTRL_TCCPRSSEL_PRSCH6 (_PCNT_CTRL_TCCPRSSEL_PRSCH6 << 26)
238 #define PCNT_CTRL_TCCPRSSEL_PRSCH7 (_PCNT_CTRL_TCCPRSSEL_PRSCH7 << 26)
239 #define PCNT_CTRL_TCCPRSSEL_PRSCH8 (_PCNT_CTRL_TCCPRSSEL_PRSCH8 << 26)
240 #define PCNT_CTRL_TCCPRSSEL_PRSCH9 (_PCNT_CTRL_TCCPRSSEL_PRSCH9 << 26)
241 #define PCNT_CTRL_TCCPRSSEL_PRSCH10 (_PCNT_CTRL_TCCPRSSEL_PRSCH10 << 26)
242 #define PCNT_CTRL_TCCPRSSEL_PRSCH11 (_PCNT_CTRL_TCCPRSSEL_PRSCH11 << 26)
243 #define PCNT_CTRL_TOPBHFSEL (0x1UL << 31)
244 #define _PCNT_CTRL_TOPBHFSEL_SHIFT 31
245 #define _PCNT_CTRL_TOPBHFSEL_MASK 0x80000000UL
246 #define _PCNT_CTRL_TOPBHFSEL_DEFAULT 0x00000000UL
247 #define PCNT_CTRL_TOPBHFSEL_DEFAULT (_PCNT_CTRL_TOPBHFSEL_DEFAULT << 31)
249 /* Bit fields for PCNT CMD */
250 #define _PCNT_CMD_RESETVALUE 0x00000000UL
251 #define _PCNT_CMD_MASK 0x00000003UL
252 #define PCNT_CMD_LCNTIM (0x1UL << 0)
253 #define _PCNT_CMD_LCNTIM_SHIFT 0
254 #define _PCNT_CMD_LCNTIM_MASK 0x1UL
255 #define _PCNT_CMD_LCNTIM_DEFAULT 0x00000000UL
256 #define PCNT_CMD_LCNTIM_DEFAULT (_PCNT_CMD_LCNTIM_DEFAULT << 0)
257 #define PCNT_CMD_LTOPBIM (0x1UL << 1)
258 #define _PCNT_CMD_LTOPBIM_SHIFT 1
259 #define _PCNT_CMD_LTOPBIM_MASK 0x2UL
260 #define _PCNT_CMD_LTOPBIM_DEFAULT 0x00000000UL
261 #define PCNT_CMD_LTOPBIM_DEFAULT (_PCNT_CMD_LTOPBIM_DEFAULT << 1)
263 /* Bit fields for PCNT STATUS */
264 #define _PCNT_STATUS_RESETVALUE 0x00000000UL
265 #define _PCNT_STATUS_MASK 0x00000001UL
266 #define PCNT_STATUS_DIR (0x1UL << 0)
267 #define _PCNT_STATUS_DIR_SHIFT 0
268 #define _PCNT_STATUS_DIR_MASK 0x1UL
269 #define _PCNT_STATUS_DIR_DEFAULT 0x00000000UL
270 #define _PCNT_STATUS_DIR_UP 0x00000000UL
271 #define _PCNT_STATUS_DIR_DOWN 0x00000001UL
272 #define PCNT_STATUS_DIR_DEFAULT (_PCNT_STATUS_DIR_DEFAULT << 0)
273 #define PCNT_STATUS_DIR_UP (_PCNT_STATUS_DIR_UP << 0)
274 #define PCNT_STATUS_DIR_DOWN (_PCNT_STATUS_DIR_DOWN << 0)
276 /* Bit fields for PCNT CNT */
277 #define _PCNT_CNT_RESETVALUE 0x00000000UL
278 #define _PCNT_CNT_MASK 0x0000FFFFUL
279 #define _PCNT_CNT_CNT_SHIFT 0
280 #define _PCNT_CNT_CNT_MASK 0xFFFFUL
281 #define _PCNT_CNT_CNT_DEFAULT 0x00000000UL
282 #define PCNT_CNT_CNT_DEFAULT (_PCNT_CNT_CNT_DEFAULT << 0)
284 /* Bit fields for PCNT TOP */
285 #define _PCNT_TOP_RESETVALUE 0x000000FFUL
286 #define _PCNT_TOP_MASK 0x0000FFFFUL
287 #define _PCNT_TOP_TOP_SHIFT 0
288 #define _PCNT_TOP_TOP_MASK 0xFFFFUL
289 #define _PCNT_TOP_TOP_DEFAULT 0x000000FFUL
290 #define PCNT_TOP_TOP_DEFAULT (_PCNT_TOP_TOP_DEFAULT << 0)
292 /* Bit fields for PCNT TOPB */
293 #define _PCNT_TOPB_RESETVALUE 0x000000FFUL
294 #define _PCNT_TOPB_MASK 0x0000FFFFUL
295 #define _PCNT_TOPB_TOPB_SHIFT 0
296 #define _PCNT_TOPB_TOPB_MASK 0xFFFFUL
297 #define _PCNT_TOPB_TOPB_DEFAULT 0x000000FFUL
298 #define PCNT_TOPB_TOPB_DEFAULT (_PCNT_TOPB_TOPB_DEFAULT << 0)
300 /* Bit fields for PCNT IF */
301 #define _PCNT_IF_RESETVALUE 0x00000000UL
302 #define _PCNT_IF_MASK 0x0000003FUL
303 #define PCNT_IF_UF (0x1UL << 0)
304 #define _PCNT_IF_UF_SHIFT 0
305 #define _PCNT_IF_UF_MASK 0x1UL
306 #define _PCNT_IF_UF_DEFAULT 0x00000000UL
307 #define PCNT_IF_UF_DEFAULT (_PCNT_IF_UF_DEFAULT << 0)
308 #define PCNT_IF_OF (0x1UL << 1)
309 #define _PCNT_IF_OF_SHIFT 1
310 #define _PCNT_IF_OF_MASK 0x2UL
311 #define _PCNT_IF_OF_DEFAULT 0x00000000UL
312 #define PCNT_IF_OF_DEFAULT (_PCNT_IF_OF_DEFAULT << 1)
313 #define PCNT_IF_DIRCNG (0x1UL << 2)
314 #define _PCNT_IF_DIRCNG_SHIFT 2
315 #define _PCNT_IF_DIRCNG_MASK 0x4UL
316 #define _PCNT_IF_DIRCNG_DEFAULT 0x00000000UL
317 #define PCNT_IF_DIRCNG_DEFAULT (_PCNT_IF_DIRCNG_DEFAULT << 2)
318 #define PCNT_IF_AUXOF (0x1UL << 3)
319 #define _PCNT_IF_AUXOF_SHIFT 3
320 #define _PCNT_IF_AUXOF_MASK 0x8UL
321 #define _PCNT_IF_AUXOF_DEFAULT 0x00000000UL
322 #define PCNT_IF_AUXOF_DEFAULT (_PCNT_IF_AUXOF_DEFAULT << 3)
323 #define PCNT_IF_TCC (0x1UL << 4)
324 #define _PCNT_IF_TCC_SHIFT 4
325 #define _PCNT_IF_TCC_MASK 0x10UL
326 #define _PCNT_IF_TCC_DEFAULT 0x00000000UL
327 #define PCNT_IF_TCC_DEFAULT (_PCNT_IF_TCC_DEFAULT << 4)
328 #define PCNT_IF_OQSTERR (0x1UL << 5)
329 #define _PCNT_IF_OQSTERR_SHIFT 5
330 #define _PCNT_IF_OQSTERR_MASK 0x20UL
331 #define _PCNT_IF_OQSTERR_DEFAULT 0x00000000UL
332 #define PCNT_IF_OQSTERR_DEFAULT (_PCNT_IF_OQSTERR_DEFAULT << 5)
334 /* Bit fields for PCNT IFS */
335 #define _PCNT_IFS_RESETVALUE 0x00000000UL
336 #define _PCNT_IFS_MASK 0x0000003FUL
337 #define PCNT_IFS_UF (0x1UL << 0)
338 #define _PCNT_IFS_UF_SHIFT 0
339 #define _PCNT_IFS_UF_MASK 0x1UL
340 #define _PCNT_IFS_UF_DEFAULT 0x00000000UL
341 #define PCNT_IFS_UF_DEFAULT (_PCNT_IFS_UF_DEFAULT << 0)
342 #define PCNT_IFS_OF (0x1UL << 1)
343 #define _PCNT_IFS_OF_SHIFT 1
344 #define _PCNT_IFS_OF_MASK 0x2UL
345 #define _PCNT_IFS_OF_DEFAULT 0x00000000UL
346 #define PCNT_IFS_OF_DEFAULT (_PCNT_IFS_OF_DEFAULT << 1)
347 #define PCNT_IFS_DIRCNG (0x1UL << 2)
348 #define _PCNT_IFS_DIRCNG_SHIFT 2
349 #define _PCNT_IFS_DIRCNG_MASK 0x4UL
350 #define _PCNT_IFS_DIRCNG_DEFAULT 0x00000000UL
351 #define PCNT_IFS_DIRCNG_DEFAULT (_PCNT_IFS_DIRCNG_DEFAULT << 2)
352 #define PCNT_IFS_AUXOF (0x1UL << 3)
353 #define _PCNT_IFS_AUXOF_SHIFT 3
354 #define _PCNT_IFS_AUXOF_MASK 0x8UL
355 #define _PCNT_IFS_AUXOF_DEFAULT 0x00000000UL
356 #define PCNT_IFS_AUXOF_DEFAULT (_PCNT_IFS_AUXOF_DEFAULT << 3)
357 #define PCNT_IFS_TCC (0x1UL << 4)
358 #define _PCNT_IFS_TCC_SHIFT 4
359 #define _PCNT_IFS_TCC_MASK 0x10UL
360 #define _PCNT_IFS_TCC_DEFAULT 0x00000000UL
361 #define PCNT_IFS_TCC_DEFAULT (_PCNT_IFS_TCC_DEFAULT << 4)
362 #define PCNT_IFS_OQSTERR (0x1UL << 5)
363 #define _PCNT_IFS_OQSTERR_SHIFT 5
364 #define _PCNT_IFS_OQSTERR_MASK 0x20UL
365 #define _PCNT_IFS_OQSTERR_DEFAULT 0x00000000UL
366 #define PCNT_IFS_OQSTERR_DEFAULT (_PCNT_IFS_OQSTERR_DEFAULT << 5)
368 /* Bit fields for PCNT IFC */
369 #define _PCNT_IFC_RESETVALUE 0x00000000UL
370 #define _PCNT_IFC_MASK 0x0000003FUL
371 #define PCNT_IFC_UF (0x1UL << 0)
372 #define _PCNT_IFC_UF_SHIFT 0
373 #define _PCNT_IFC_UF_MASK 0x1UL
374 #define _PCNT_IFC_UF_DEFAULT 0x00000000UL
375 #define PCNT_IFC_UF_DEFAULT (_PCNT_IFC_UF_DEFAULT << 0)
376 #define PCNT_IFC_OF (0x1UL << 1)
377 #define _PCNT_IFC_OF_SHIFT 1
378 #define _PCNT_IFC_OF_MASK 0x2UL
379 #define _PCNT_IFC_OF_DEFAULT 0x00000000UL
380 #define PCNT_IFC_OF_DEFAULT (_PCNT_IFC_OF_DEFAULT << 1)
381 #define PCNT_IFC_DIRCNG (0x1UL << 2)
382 #define _PCNT_IFC_DIRCNG_SHIFT 2
383 #define _PCNT_IFC_DIRCNG_MASK 0x4UL
384 #define _PCNT_IFC_DIRCNG_DEFAULT 0x00000000UL
385 #define PCNT_IFC_DIRCNG_DEFAULT (_PCNT_IFC_DIRCNG_DEFAULT << 2)
386 #define PCNT_IFC_AUXOF (0x1UL << 3)
387 #define _PCNT_IFC_AUXOF_SHIFT 3
388 #define _PCNT_IFC_AUXOF_MASK 0x8UL
389 #define _PCNT_IFC_AUXOF_DEFAULT 0x00000000UL
390 #define PCNT_IFC_AUXOF_DEFAULT (_PCNT_IFC_AUXOF_DEFAULT << 3)
391 #define PCNT_IFC_TCC (0x1UL << 4)
392 #define _PCNT_IFC_TCC_SHIFT 4
393 #define _PCNT_IFC_TCC_MASK 0x10UL
394 #define _PCNT_IFC_TCC_DEFAULT 0x00000000UL
395 #define PCNT_IFC_TCC_DEFAULT (_PCNT_IFC_TCC_DEFAULT << 4)
396 #define PCNT_IFC_OQSTERR (0x1UL << 5)
397 #define _PCNT_IFC_OQSTERR_SHIFT 5
398 #define _PCNT_IFC_OQSTERR_MASK 0x20UL
399 #define _PCNT_IFC_OQSTERR_DEFAULT 0x00000000UL
400 #define PCNT_IFC_OQSTERR_DEFAULT (_PCNT_IFC_OQSTERR_DEFAULT << 5)
402 /* Bit fields for PCNT IEN */
403 #define _PCNT_IEN_RESETVALUE 0x00000000UL
404 #define _PCNT_IEN_MASK 0x0000003FUL
405 #define PCNT_IEN_UF (0x1UL << 0)
406 #define _PCNT_IEN_UF_SHIFT 0
407 #define _PCNT_IEN_UF_MASK 0x1UL
408 #define _PCNT_IEN_UF_DEFAULT 0x00000000UL
409 #define PCNT_IEN_UF_DEFAULT (_PCNT_IEN_UF_DEFAULT << 0)
410 #define PCNT_IEN_OF (0x1UL << 1)
411 #define _PCNT_IEN_OF_SHIFT 1
412 #define _PCNT_IEN_OF_MASK 0x2UL
413 #define _PCNT_IEN_OF_DEFAULT 0x00000000UL
414 #define PCNT_IEN_OF_DEFAULT (_PCNT_IEN_OF_DEFAULT << 1)
415 #define PCNT_IEN_DIRCNG (0x1UL << 2)
416 #define _PCNT_IEN_DIRCNG_SHIFT 2
417 #define _PCNT_IEN_DIRCNG_MASK 0x4UL
418 #define _PCNT_IEN_DIRCNG_DEFAULT 0x00000000UL
419 #define PCNT_IEN_DIRCNG_DEFAULT (_PCNT_IEN_DIRCNG_DEFAULT << 2)
420 #define PCNT_IEN_AUXOF (0x1UL << 3)
421 #define _PCNT_IEN_AUXOF_SHIFT 3
422 #define _PCNT_IEN_AUXOF_MASK 0x8UL
423 #define _PCNT_IEN_AUXOF_DEFAULT 0x00000000UL
424 #define PCNT_IEN_AUXOF_DEFAULT (_PCNT_IEN_AUXOF_DEFAULT << 3)
425 #define PCNT_IEN_TCC (0x1UL << 4)
426 #define _PCNT_IEN_TCC_SHIFT 4
427 #define _PCNT_IEN_TCC_MASK 0x10UL
428 #define _PCNT_IEN_TCC_DEFAULT 0x00000000UL
429 #define PCNT_IEN_TCC_DEFAULT (_PCNT_IEN_TCC_DEFAULT << 4)
430 #define PCNT_IEN_OQSTERR (0x1UL << 5)
431 #define _PCNT_IEN_OQSTERR_SHIFT 5
432 #define _PCNT_IEN_OQSTERR_MASK 0x20UL
433 #define _PCNT_IEN_OQSTERR_DEFAULT 0x00000000UL
434 #define PCNT_IEN_OQSTERR_DEFAULT (_PCNT_IEN_OQSTERR_DEFAULT << 5)
436 /* Bit fields for PCNT ROUTELOC0 */
437 #define _PCNT_ROUTELOC0_RESETVALUE 0x00000000UL
438 #define _PCNT_ROUTELOC0_MASK 0x00001F1FUL
439 #define _PCNT_ROUTELOC0_S0INLOC_SHIFT 0
440 #define _PCNT_ROUTELOC0_S0INLOC_MASK 0x1FUL
441 #define _PCNT_ROUTELOC0_S0INLOC_LOC0 0x00000000UL
442 #define _PCNT_ROUTELOC0_S0INLOC_DEFAULT 0x00000000UL
443 #define _PCNT_ROUTELOC0_S0INLOC_LOC1 0x00000001UL
444 #define _PCNT_ROUTELOC0_S0INLOC_LOC2 0x00000002UL
445 #define _PCNT_ROUTELOC0_S0INLOC_LOC3 0x00000003UL
446 #define _PCNT_ROUTELOC0_S0INLOC_LOC4 0x00000004UL
447 #define _PCNT_ROUTELOC0_S0INLOC_LOC5 0x00000005UL
448 #define _PCNT_ROUTELOC0_S0INLOC_LOC6 0x00000006UL
449 #define _PCNT_ROUTELOC0_S0INLOC_LOC7 0x00000007UL
450 #define _PCNT_ROUTELOC0_S0INLOC_LOC8 0x00000008UL
451 #define _PCNT_ROUTELOC0_S0INLOC_LOC9 0x00000009UL
452 #define _PCNT_ROUTELOC0_S0INLOC_LOC10 0x0000000AUL
453 #define _PCNT_ROUTELOC0_S0INLOC_LOC11 0x0000000BUL
454 #define _PCNT_ROUTELOC0_S0INLOC_LOC12 0x0000000CUL
455 #define _PCNT_ROUTELOC0_S0INLOC_LOC13 0x0000000DUL
456 #define _PCNT_ROUTELOC0_S0INLOC_LOC14 0x0000000EUL
457 #define _PCNT_ROUTELOC0_S0INLOC_LOC15 0x0000000FUL
458 #define _PCNT_ROUTELOC0_S0INLOC_LOC16 0x00000010UL
459 #define _PCNT_ROUTELOC0_S0INLOC_LOC17 0x00000011UL
460 #define _PCNT_ROUTELOC0_S0INLOC_LOC18 0x00000012UL
461 #define _PCNT_ROUTELOC0_S0INLOC_LOC19 0x00000013UL
462 #define _PCNT_ROUTELOC0_S0INLOC_LOC20 0x00000014UL
463 #define _PCNT_ROUTELOC0_S0INLOC_LOC21 0x00000015UL
464 #define _PCNT_ROUTELOC0_S0INLOC_LOC22 0x00000016UL
465 #define _PCNT_ROUTELOC0_S0INLOC_LOC23 0x00000017UL
466 #define _PCNT_ROUTELOC0_S0INLOC_LOC24 0x00000018UL
467 #define _PCNT_ROUTELOC0_S0INLOC_LOC25 0x00000019UL
468 #define _PCNT_ROUTELOC0_S0INLOC_LOC26 0x0000001AUL
469 #define _PCNT_ROUTELOC0_S0INLOC_LOC27 0x0000001BUL
470 #define _PCNT_ROUTELOC0_S0INLOC_LOC28 0x0000001CUL
471 #define _PCNT_ROUTELOC0_S0INLOC_LOC29 0x0000001DUL
472 #define _PCNT_ROUTELOC0_S0INLOC_LOC30 0x0000001EUL
473 #define _PCNT_ROUTELOC0_S0INLOC_LOC31 0x0000001FUL
474 #define PCNT_ROUTELOC0_S0INLOC_LOC0 (_PCNT_ROUTELOC0_S0INLOC_LOC0 << 0)
475 #define PCNT_ROUTELOC0_S0INLOC_DEFAULT (_PCNT_ROUTELOC0_S0INLOC_DEFAULT << 0)
476 #define PCNT_ROUTELOC0_S0INLOC_LOC1 (_PCNT_ROUTELOC0_S0INLOC_LOC1 << 0)
477 #define PCNT_ROUTELOC0_S0INLOC_LOC2 (_PCNT_ROUTELOC0_S0INLOC_LOC2 << 0)
478 #define PCNT_ROUTELOC0_S0INLOC_LOC3 (_PCNT_ROUTELOC0_S0INLOC_LOC3 << 0)
479 #define PCNT_ROUTELOC0_S0INLOC_LOC4 (_PCNT_ROUTELOC0_S0INLOC_LOC4 << 0)
480 #define PCNT_ROUTELOC0_S0INLOC_LOC5 (_PCNT_ROUTELOC0_S0INLOC_LOC5 << 0)
481 #define PCNT_ROUTELOC0_S0INLOC_LOC6 (_PCNT_ROUTELOC0_S0INLOC_LOC6 << 0)
482 #define PCNT_ROUTELOC0_S0INLOC_LOC7 (_PCNT_ROUTELOC0_S0INLOC_LOC7 << 0)
483 #define PCNT_ROUTELOC0_S0INLOC_LOC8 (_PCNT_ROUTELOC0_S0INLOC_LOC8 << 0)
484 #define PCNT_ROUTELOC0_S0INLOC_LOC9 (_PCNT_ROUTELOC0_S0INLOC_LOC9 << 0)
485 #define PCNT_ROUTELOC0_S0INLOC_LOC10 (_PCNT_ROUTELOC0_S0INLOC_LOC10 << 0)
486 #define PCNT_ROUTELOC0_S0INLOC_LOC11 (_PCNT_ROUTELOC0_S0INLOC_LOC11 << 0)
487 #define PCNT_ROUTELOC0_S0INLOC_LOC12 (_PCNT_ROUTELOC0_S0INLOC_LOC12 << 0)
488 #define PCNT_ROUTELOC0_S0INLOC_LOC13 (_PCNT_ROUTELOC0_S0INLOC_LOC13 << 0)
489 #define PCNT_ROUTELOC0_S0INLOC_LOC14 (_PCNT_ROUTELOC0_S0INLOC_LOC14 << 0)
490 #define PCNT_ROUTELOC0_S0INLOC_LOC15 (_PCNT_ROUTELOC0_S0INLOC_LOC15 << 0)
491 #define PCNT_ROUTELOC0_S0INLOC_LOC16 (_PCNT_ROUTELOC0_S0INLOC_LOC16 << 0)
492 #define PCNT_ROUTELOC0_S0INLOC_LOC17 (_PCNT_ROUTELOC0_S0INLOC_LOC17 << 0)
493 #define PCNT_ROUTELOC0_S0INLOC_LOC18 (_PCNT_ROUTELOC0_S0INLOC_LOC18 << 0)
494 #define PCNT_ROUTELOC0_S0INLOC_LOC19 (_PCNT_ROUTELOC0_S0INLOC_LOC19 << 0)
495 #define PCNT_ROUTELOC0_S0INLOC_LOC20 (_PCNT_ROUTELOC0_S0INLOC_LOC20 << 0)
496 #define PCNT_ROUTELOC0_S0INLOC_LOC21 (_PCNT_ROUTELOC0_S0INLOC_LOC21 << 0)
497 #define PCNT_ROUTELOC0_S0INLOC_LOC22 (_PCNT_ROUTELOC0_S0INLOC_LOC22 << 0)
498 #define PCNT_ROUTELOC0_S0INLOC_LOC23 (_PCNT_ROUTELOC0_S0INLOC_LOC23 << 0)
499 #define PCNT_ROUTELOC0_S0INLOC_LOC24 (_PCNT_ROUTELOC0_S0INLOC_LOC24 << 0)
500 #define PCNT_ROUTELOC0_S0INLOC_LOC25 (_PCNT_ROUTELOC0_S0INLOC_LOC25 << 0)
501 #define PCNT_ROUTELOC0_S0INLOC_LOC26 (_PCNT_ROUTELOC0_S0INLOC_LOC26 << 0)
502 #define PCNT_ROUTELOC0_S0INLOC_LOC27 (_PCNT_ROUTELOC0_S0INLOC_LOC27 << 0)
503 #define PCNT_ROUTELOC0_S0INLOC_LOC28 (_PCNT_ROUTELOC0_S0INLOC_LOC28 << 0)
504 #define PCNT_ROUTELOC0_S0INLOC_LOC29 (_PCNT_ROUTELOC0_S0INLOC_LOC29 << 0)
505 #define PCNT_ROUTELOC0_S0INLOC_LOC30 (_PCNT_ROUTELOC0_S0INLOC_LOC30 << 0)
506 #define PCNT_ROUTELOC0_S0INLOC_LOC31 (_PCNT_ROUTELOC0_S0INLOC_LOC31 << 0)
507 #define _PCNT_ROUTELOC0_S1INLOC_SHIFT 8
508 #define _PCNT_ROUTELOC0_S1INLOC_MASK 0x1F00UL
509 #define _PCNT_ROUTELOC0_S1INLOC_LOC0 0x00000000UL
510 #define _PCNT_ROUTELOC0_S1INLOC_DEFAULT 0x00000000UL
511 #define _PCNT_ROUTELOC0_S1INLOC_LOC1 0x00000001UL
512 #define _PCNT_ROUTELOC0_S1INLOC_LOC2 0x00000002UL
513 #define _PCNT_ROUTELOC0_S1INLOC_LOC3 0x00000003UL
514 #define _PCNT_ROUTELOC0_S1INLOC_LOC4 0x00000004UL
515 #define _PCNT_ROUTELOC0_S1INLOC_LOC5 0x00000005UL
516 #define _PCNT_ROUTELOC0_S1INLOC_LOC6 0x00000006UL
517 #define _PCNT_ROUTELOC0_S1INLOC_LOC7 0x00000007UL
518 #define _PCNT_ROUTELOC0_S1INLOC_LOC8 0x00000008UL
519 #define _PCNT_ROUTELOC0_S1INLOC_LOC9 0x00000009UL
520 #define _PCNT_ROUTELOC0_S1INLOC_LOC10 0x0000000AUL
521 #define _PCNT_ROUTELOC0_S1INLOC_LOC11 0x0000000BUL
522 #define _PCNT_ROUTELOC0_S1INLOC_LOC12 0x0000000CUL
523 #define _PCNT_ROUTELOC0_S1INLOC_LOC13 0x0000000DUL
524 #define _PCNT_ROUTELOC0_S1INLOC_LOC14 0x0000000EUL
525 #define _PCNT_ROUTELOC0_S1INLOC_LOC15 0x0000000FUL
526 #define _PCNT_ROUTELOC0_S1INLOC_LOC16 0x00000010UL
527 #define _PCNT_ROUTELOC0_S1INLOC_LOC17 0x00000011UL
528 #define _PCNT_ROUTELOC0_S1INLOC_LOC18 0x00000012UL
529 #define _PCNT_ROUTELOC0_S1INLOC_LOC19 0x00000013UL
530 #define _PCNT_ROUTELOC0_S1INLOC_LOC20 0x00000014UL
531 #define _PCNT_ROUTELOC0_S1INLOC_LOC21 0x00000015UL
532 #define _PCNT_ROUTELOC0_S1INLOC_LOC22 0x00000016UL
533 #define _PCNT_ROUTELOC0_S1INLOC_LOC23 0x00000017UL
534 #define _PCNT_ROUTELOC0_S1INLOC_LOC24 0x00000018UL
535 #define _PCNT_ROUTELOC0_S1INLOC_LOC25 0x00000019UL
536 #define _PCNT_ROUTELOC0_S1INLOC_LOC26 0x0000001AUL
537 #define _PCNT_ROUTELOC0_S1INLOC_LOC27 0x0000001BUL
538 #define _PCNT_ROUTELOC0_S1INLOC_LOC28 0x0000001CUL
539 #define _PCNT_ROUTELOC0_S1INLOC_LOC29 0x0000001DUL
540 #define _PCNT_ROUTELOC0_S1INLOC_LOC30 0x0000001EUL
541 #define _PCNT_ROUTELOC0_S1INLOC_LOC31 0x0000001FUL
542 #define PCNT_ROUTELOC0_S1INLOC_LOC0 (_PCNT_ROUTELOC0_S1INLOC_LOC0 << 8)
543 #define PCNT_ROUTELOC0_S1INLOC_DEFAULT (_PCNT_ROUTELOC0_S1INLOC_DEFAULT << 8)
544 #define PCNT_ROUTELOC0_S1INLOC_LOC1 (_PCNT_ROUTELOC0_S1INLOC_LOC1 << 8)
545 #define PCNT_ROUTELOC0_S1INLOC_LOC2 (_PCNT_ROUTELOC0_S1INLOC_LOC2 << 8)
546 #define PCNT_ROUTELOC0_S1INLOC_LOC3 (_PCNT_ROUTELOC0_S1INLOC_LOC3 << 8)
547 #define PCNT_ROUTELOC0_S1INLOC_LOC4 (_PCNT_ROUTELOC0_S1INLOC_LOC4 << 8)
548 #define PCNT_ROUTELOC0_S1INLOC_LOC5 (_PCNT_ROUTELOC0_S1INLOC_LOC5 << 8)
549 #define PCNT_ROUTELOC0_S1INLOC_LOC6 (_PCNT_ROUTELOC0_S1INLOC_LOC6 << 8)
550 #define PCNT_ROUTELOC0_S1INLOC_LOC7 (_PCNT_ROUTELOC0_S1INLOC_LOC7 << 8)
551 #define PCNT_ROUTELOC0_S1INLOC_LOC8 (_PCNT_ROUTELOC0_S1INLOC_LOC8 << 8)
552 #define PCNT_ROUTELOC0_S1INLOC_LOC9 (_PCNT_ROUTELOC0_S1INLOC_LOC9 << 8)
553 #define PCNT_ROUTELOC0_S1INLOC_LOC10 (_PCNT_ROUTELOC0_S1INLOC_LOC10 << 8)
554 #define PCNT_ROUTELOC0_S1INLOC_LOC11 (_PCNT_ROUTELOC0_S1INLOC_LOC11 << 8)
555 #define PCNT_ROUTELOC0_S1INLOC_LOC12 (_PCNT_ROUTELOC0_S1INLOC_LOC12 << 8)
556 #define PCNT_ROUTELOC0_S1INLOC_LOC13 (_PCNT_ROUTELOC0_S1INLOC_LOC13 << 8)
557 #define PCNT_ROUTELOC0_S1INLOC_LOC14 (_PCNT_ROUTELOC0_S1INLOC_LOC14 << 8)
558 #define PCNT_ROUTELOC0_S1INLOC_LOC15 (_PCNT_ROUTELOC0_S1INLOC_LOC15 << 8)
559 #define PCNT_ROUTELOC0_S1INLOC_LOC16 (_PCNT_ROUTELOC0_S1INLOC_LOC16 << 8)
560 #define PCNT_ROUTELOC0_S1INLOC_LOC17 (_PCNT_ROUTELOC0_S1INLOC_LOC17 << 8)
561 #define PCNT_ROUTELOC0_S1INLOC_LOC18 (_PCNT_ROUTELOC0_S1INLOC_LOC18 << 8)
562 #define PCNT_ROUTELOC0_S1INLOC_LOC19 (_PCNT_ROUTELOC0_S1INLOC_LOC19 << 8)
563 #define PCNT_ROUTELOC0_S1INLOC_LOC20 (_PCNT_ROUTELOC0_S1INLOC_LOC20 << 8)
564 #define PCNT_ROUTELOC0_S1INLOC_LOC21 (_PCNT_ROUTELOC0_S1INLOC_LOC21 << 8)
565 #define PCNT_ROUTELOC0_S1INLOC_LOC22 (_PCNT_ROUTELOC0_S1INLOC_LOC22 << 8)
566 #define PCNT_ROUTELOC0_S1INLOC_LOC23 (_PCNT_ROUTELOC0_S1INLOC_LOC23 << 8)
567 #define PCNT_ROUTELOC0_S1INLOC_LOC24 (_PCNT_ROUTELOC0_S1INLOC_LOC24 << 8)
568 #define PCNT_ROUTELOC0_S1INLOC_LOC25 (_PCNT_ROUTELOC0_S1INLOC_LOC25 << 8)
569 #define PCNT_ROUTELOC0_S1INLOC_LOC26 (_PCNT_ROUTELOC0_S1INLOC_LOC26 << 8)
570 #define PCNT_ROUTELOC0_S1INLOC_LOC27 (_PCNT_ROUTELOC0_S1INLOC_LOC27 << 8)
571 #define PCNT_ROUTELOC0_S1INLOC_LOC28 (_PCNT_ROUTELOC0_S1INLOC_LOC28 << 8)
572 #define PCNT_ROUTELOC0_S1INLOC_LOC29 (_PCNT_ROUTELOC0_S1INLOC_LOC29 << 8)
573 #define PCNT_ROUTELOC0_S1INLOC_LOC30 (_PCNT_ROUTELOC0_S1INLOC_LOC30 << 8)
574 #define PCNT_ROUTELOC0_S1INLOC_LOC31 (_PCNT_ROUTELOC0_S1INLOC_LOC31 << 8)
576 /* Bit fields for PCNT FREEZE */
577 #define _PCNT_FREEZE_RESETVALUE 0x00000000UL
578 #define _PCNT_FREEZE_MASK 0x00000001UL
579 #define PCNT_FREEZE_REGFREEZE (0x1UL << 0)
580 #define _PCNT_FREEZE_REGFREEZE_SHIFT 0
581 #define _PCNT_FREEZE_REGFREEZE_MASK 0x1UL
582 #define _PCNT_FREEZE_REGFREEZE_DEFAULT 0x00000000UL
583 #define _PCNT_FREEZE_REGFREEZE_UPDATE 0x00000000UL
584 #define _PCNT_FREEZE_REGFREEZE_FREEZE 0x00000001UL
585 #define PCNT_FREEZE_REGFREEZE_DEFAULT (_PCNT_FREEZE_REGFREEZE_DEFAULT << 0)
586 #define PCNT_FREEZE_REGFREEZE_UPDATE (_PCNT_FREEZE_REGFREEZE_UPDATE << 0)
587 #define PCNT_FREEZE_REGFREEZE_FREEZE (_PCNT_FREEZE_REGFREEZE_FREEZE << 0)
589 /* Bit fields for PCNT SYNCBUSY */
590 #define _PCNT_SYNCBUSY_RESETVALUE 0x00000000UL
591 #define _PCNT_SYNCBUSY_MASK 0x0000000FUL
592 #define PCNT_SYNCBUSY_CTRL (0x1UL << 0)
593 #define _PCNT_SYNCBUSY_CTRL_SHIFT 0
594 #define _PCNT_SYNCBUSY_CTRL_MASK 0x1UL
595 #define _PCNT_SYNCBUSY_CTRL_DEFAULT 0x00000000UL
596 #define PCNT_SYNCBUSY_CTRL_DEFAULT (_PCNT_SYNCBUSY_CTRL_DEFAULT << 0)
597 #define PCNT_SYNCBUSY_CMD (0x1UL << 1)
598 #define _PCNT_SYNCBUSY_CMD_SHIFT 1
599 #define _PCNT_SYNCBUSY_CMD_MASK 0x2UL
600 #define _PCNT_SYNCBUSY_CMD_DEFAULT 0x00000000UL
601 #define PCNT_SYNCBUSY_CMD_DEFAULT (_PCNT_SYNCBUSY_CMD_DEFAULT << 1)
602 #define PCNT_SYNCBUSY_TOPB (0x1UL << 2)
603 #define _PCNT_SYNCBUSY_TOPB_SHIFT 2
604 #define _PCNT_SYNCBUSY_TOPB_MASK 0x4UL
605 #define _PCNT_SYNCBUSY_TOPB_DEFAULT 0x00000000UL
606 #define PCNT_SYNCBUSY_TOPB_DEFAULT (_PCNT_SYNCBUSY_TOPB_DEFAULT << 2)
607 #define PCNT_SYNCBUSY_OVSCFG (0x1UL << 3)
608 #define _PCNT_SYNCBUSY_OVSCFG_SHIFT 3
609 #define _PCNT_SYNCBUSY_OVSCFG_MASK 0x8UL
610 #define _PCNT_SYNCBUSY_OVSCFG_DEFAULT 0x00000000UL
611 #define PCNT_SYNCBUSY_OVSCFG_DEFAULT (_PCNT_SYNCBUSY_OVSCFG_DEFAULT << 3)
613 /* Bit fields for PCNT AUXCNT */
614 #define _PCNT_AUXCNT_RESETVALUE 0x00000000UL
615 #define _PCNT_AUXCNT_MASK 0x0000FFFFUL
616 #define _PCNT_AUXCNT_AUXCNT_SHIFT 0
617 #define _PCNT_AUXCNT_AUXCNT_MASK 0xFFFFUL
618 #define _PCNT_AUXCNT_AUXCNT_DEFAULT 0x00000000UL
619 #define PCNT_AUXCNT_AUXCNT_DEFAULT (_PCNT_AUXCNT_AUXCNT_DEFAULT << 0)
621 /* Bit fields for PCNT INPUT */
622 #define _PCNT_INPUT_RESETVALUE 0x00000000UL
623 #define _PCNT_INPUT_MASK 0x00000BEFUL
624 #define _PCNT_INPUT_S0PRSSEL_SHIFT 0
625 #define _PCNT_INPUT_S0PRSSEL_MASK 0xFUL
626 #define _PCNT_INPUT_S0PRSSEL_DEFAULT 0x00000000UL
627 #define _PCNT_INPUT_S0PRSSEL_PRSCH0 0x00000000UL
628 #define _PCNT_INPUT_S0PRSSEL_PRSCH1 0x00000001UL
629 #define _PCNT_INPUT_S0PRSSEL_PRSCH2 0x00000002UL
630 #define _PCNT_INPUT_S0PRSSEL_PRSCH3 0x00000003UL
631 #define _PCNT_INPUT_S0PRSSEL_PRSCH4 0x00000004UL
632 #define _PCNT_INPUT_S0PRSSEL_PRSCH5 0x00000005UL
633 #define _PCNT_INPUT_S0PRSSEL_PRSCH6 0x00000006UL
634 #define _PCNT_INPUT_S0PRSSEL_PRSCH7 0x00000007UL
635 #define _PCNT_INPUT_S0PRSSEL_PRSCH8 0x00000008UL
636 #define _PCNT_INPUT_S0PRSSEL_PRSCH9 0x00000009UL
637 #define _PCNT_INPUT_S0PRSSEL_PRSCH10 0x0000000AUL
638 #define _PCNT_INPUT_S0PRSSEL_PRSCH11 0x0000000BUL
639 #define PCNT_INPUT_S0PRSSEL_DEFAULT (_PCNT_INPUT_S0PRSSEL_DEFAULT << 0)
640 #define PCNT_INPUT_S0PRSSEL_PRSCH0 (_PCNT_INPUT_S0PRSSEL_PRSCH0 << 0)
641 #define PCNT_INPUT_S0PRSSEL_PRSCH1 (_PCNT_INPUT_S0PRSSEL_PRSCH1 << 0)
642 #define PCNT_INPUT_S0PRSSEL_PRSCH2 (_PCNT_INPUT_S0PRSSEL_PRSCH2 << 0)
643 #define PCNT_INPUT_S0PRSSEL_PRSCH3 (_PCNT_INPUT_S0PRSSEL_PRSCH3 << 0)
644 #define PCNT_INPUT_S0PRSSEL_PRSCH4 (_PCNT_INPUT_S0PRSSEL_PRSCH4 << 0)
645 #define PCNT_INPUT_S0PRSSEL_PRSCH5 (_PCNT_INPUT_S0PRSSEL_PRSCH5 << 0)
646 #define PCNT_INPUT_S0PRSSEL_PRSCH6 (_PCNT_INPUT_S0PRSSEL_PRSCH6 << 0)
647 #define PCNT_INPUT_S0PRSSEL_PRSCH7 (_PCNT_INPUT_S0PRSSEL_PRSCH7 << 0)
648 #define PCNT_INPUT_S0PRSSEL_PRSCH8 (_PCNT_INPUT_S0PRSSEL_PRSCH8 << 0)
649 #define PCNT_INPUT_S0PRSSEL_PRSCH9 (_PCNT_INPUT_S0PRSSEL_PRSCH9 << 0)
650 #define PCNT_INPUT_S0PRSSEL_PRSCH10 (_PCNT_INPUT_S0PRSSEL_PRSCH10 << 0)
651 #define PCNT_INPUT_S0PRSSEL_PRSCH11 (_PCNT_INPUT_S0PRSSEL_PRSCH11 << 0)
652 #define PCNT_INPUT_S0PRSEN (0x1UL << 5)
653 #define _PCNT_INPUT_S0PRSEN_SHIFT 5
654 #define _PCNT_INPUT_S0PRSEN_MASK 0x20UL
655 #define _PCNT_INPUT_S0PRSEN_DEFAULT 0x00000000UL
656 #define PCNT_INPUT_S0PRSEN_DEFAULT (_PCNT_INPUT_S0PRSEN_DEFAULT << 5)
657 #define _PCNT_INPUT_S1PRSSEL_SHIFT 6
658 #define _PCNT_INPUT_S1PRSSEL_MASK 0x3C0UL
659 #define _PCNT_INPUT_S1PRSSEL_DEFAULT 0x00000000UL
660 #define _PCNT_INPUT_S1PRSSEL_PRSCH0 0x00000000UL
661 #define _PCNT_INPUT_S1PRSSEL_PRSCH1 0x00000001UL
662 #define _PCNT_INPUT_S1PRSSEL_PRSCH2 0x00000002UL
663 #define _PCNT_INPUT_S1PRSSEL_PRSCH3 0x00000003UL
664 #define _PCNT_INPUT_S1PRSSEL_PRSCH4 0x00000004UL
665 #define _PCNT_INPUT_S1PRSSEL_PRSCH5 0x00000005UL
666 #define _PCNT_INPUT_S1PRSSEL_PRSCH6 0x00000006UL
667 #define _PCNT_INPUT_S1PRSSEL_PRSCH7 0x00000007UL
668 #define _PCNT_INPUT_S1PRSSEL_PRSCH8 0x00000008UL
669 #define _PCNT_INPUT_S1PRSSEL_PRSCH9 0x00000009UL
670 #define _PCNT_INPUT_S1PRSSEL_PRSCH10 0x0000000AUL
671 #define _PCNT_INPUT_S1PRSSEL_PRSCH11 0x0000000BUL
672 #define PCNT_INPUT_S1PRSSEL_DEFAULT (_PCNT_INPUT_S1PRSSEL_DEFAULT << 6)
673 #define PCNT_INPUT_S1PRSSEL_PRSCH0 (_PCNT_INPUT_S1PRSSEL_PRSCH0 << 6)
674 #define PCNT_INPUT_S1PRSSEL_PRSCH1 (_PCNT_INPUT_S1PRSSEL_PRSCH1 << 6)
675 #define PCNT_INPUT_S1PRSSEL_PRSCH2 (_PCNT_INPUT_S1PRSSEL_PRSCH2 << 6)
676 #define PCNT_INPUT_S1PRSSEL_PRSCH3 (_PCNT_INPUT_S1PRSSEL_PRSCH3 << 6)
677 #define PCNT_INPUT_S1PRSSEL_PRSCH4 (_PCNT_INPUT_S1PRSSEL_PRSCH4 << 6)
678 #define PCNT_INPUT_S1PRSSEL_PRSCH5 (_PCNT_INPUT_S1PRSSEL_PRSCH5 << 6)
679 #define PCNT_INPUT_S1PRSSEL_PRSCH6 (_PCNT_INPUT_S1PRSSEL_PRSCH6 << 6)
680 #define PCNT_INPUT_S1PRSSEL_PRSCH7 (_PCNT_INPUT_S1PRSSEL_PRSCH7 << 6)
681 #define PCNT_INPUT_S1PRSSEL_PRSCH8 (_PCNT_INPUT_S1PRSSEL_PRSCH8 << 6)
682 #define PCNT_INPUT_S1PRSSEL_PRSCH9 (_PCNT_INPUT_S1PRSSEL_PRSCH9 << 6)
683 #define PCNT_INPUT_S1PRSSEL_PRSCH10 (_PCNT_INPUT_S1PRSSEL_PRSCH10 << 6)
684 #define PCNT_INPUT_S1PRSSEL_PRSCH11 (_PCNT_INPUT_S1PRSSEL_PRSCH11 << 6)
685 #define PCNT_INPUT_S1PRSEN (0x1UL << 11)
686 #define _PCNT_INPUT_S1PRSEN_SHIFT 11
687 #define _PCNT_INPUT_S1PRSEN_MASK 0x800UL
688 #define _PCNT_INPUT_S1PRSEN_DEFAULT 0x00000000UL
689 #define PCNT_INPUT_S1PRSEN_DEFAULT (_PCNT_INPUT_S1PRSEN_DEFAULT << 11)
691 /* Bit fields for PCNT OVSCFG */
692 #define _PCNT_OVSCFG_RESETVALUE 0x00000000UL
693 #define _PCNT_OVSCFG_MASK 0x000010FFUL
694 #define _PCNT_OVSCFG_FILTLEN_SHIFT 0
695 #define _PCNT_OVSCFG_FILTLEN_MASK 0xFFUL
696 #define _PCNT_OVSCFG_FILTLEN_DEFAULT 0x00000000UL
697 #define PCNT_OVSCFG_FILTLEN_DEFAULT (_PCNT_OVSCFG_FILTLEN_DEFAULT << 0)
698 #define PCNT_OVSCFG_FLUTTERRM (0x1UL << 12)
699 #define _PCNT_OVSCFG_FLUTTERRM_SHIFT 12
700 #define _PCNT_OVSCFG_FLUTTERRM_MASK 0x1000UL
701 #define _PCNT_OVSCFG_FLUTTERRM_DEFAULT 0x00000000UL
702 #define PCNT_OVSCFG_FLUTTERRM_DEFAULT (_PCNT_OVSCFG_FLUTTERRM_DEFAULT << 12)
__IM uint32_t TOP
__IOM uint32_t INPUT
__IOM uint32_t IFC
__IOM uint32_t CMD
__IOM uint32_t OVSCFG
__IM uint32_t SYNCBUSY
__IM uint32_t AUXCNT
__IM uint32_t STATUS
__IM uint32_t IF
__IOM uint32_t ROUTELOC0
__IOM uint32_t TOPB
__IM uint32_t CNT
__IOM uint32_t CTRL
__IOM uint32_t FREEZE
__IOM uint32_t IFS
__IOM uint32_t IEN