EFM32 Happy Gecko Software Documentation  efm32hg-doc-5.1.2
efm32hg_usb.h
Go to the documentation of this file.
1 /**************************************************************************/
32 /**************************************************************************/
36 /**************************************************************************/
41 typedef struct
42 {
43  __IOM uint32_t CTRL;
44  __IM uint32_t STATUS;
45  __IM uint32_t IF;
46  __IOM uint32_t IFS;
47  __IOM uint32_t IFC;
48  __IOM uint32_t IEN;
49  __IOM uint32_t ROUTE;
51  uint32_t RESERVED0[61435];
52  __IOM uint32_t GAHBCFG;
53  __IOM uint32_t GUSBCFG;
54  __IOM uint32_t GRSTCTL;
55  __IOM uint32_t GINTSTS;
56  __IOM uint32_t GINTMSK;
57  __IM uint32_t GRXSTSR;
58  __IM uint32_t GRXSTSP;
59  __IOM uint32_t GRXFSIZ;
60  __IOM uint32_t GNPTXFSIZ;
62  uint32_t RESERVED1[12];
63  __IOM uint32_t GDFIFOCFG;
65  uint32_t RESERVED2[41];
66  __IOM uint32_t DIEPTXF1;
67  __IOM uint32_t DIEPTXF2;
68  __IOM uint32_t DIEPTXF3;
70  uint32_t RESERVED3[444];
71  __IOM uint32_t DCFG;
72  __IOM uint32_t DCTL;
73  __IM uint32_t DSTS;
74  uint32_t RESERVED4[1];
75  __IOM uint32_t DIEPMSK;
76  __IOM uint32_t DOEPMSK;
77  __IM uint32_t DAINT;
78  __IOM uint32_t DAINTMSK;
80  uint32_t RESERVED5[5];
81  __IOM uint32_t DIEPEMPMSK;
83  uint32_t RESERVED6[50];
84  __IOM uint32_t DIEP0CTL;
85  uint32_t RESERVED7[1];
86  __IOM uint32_t DIEP0INT;
87  uint32_t RESERVED8[1];
88  __IOM uint32_t DIEP0TSIZ;
89  __IOM uint32_t DIEP0DMAADDR;
90  __IM uint32_t DIEP0TXFSTS;
92  uint32_t RESERVED9[1];
93  USB_DIEP_TypeDef DIEP[3];
95  uint32_t RESERVED10[96];
96  __IOM uint32_t DOEP0CTL;
97  uint32_t RESERVED11[1];
98  __IOM uint32_t DOEP0INT;
99  uint32_t RESERVED12[1];
100  __IOM uint32_t DOEP0TSIZ;
101  __IOM uint32_t DOEP0DMAADDR;
103  uint32_t RESERVED13[2];
106  uint32_t RESERVED14[160];
107  __IOM uint32_t PCGCCTL;
109  uint32_t RESERVED15[127];
110  __IOM uint32_t FIFO0D[384];
112  uint32_t RESERVED16[640];
113  __IOM uint32_t FIFO1D[384];
115  uint32_t RESERVED17[640];
116  __IOM uint32_t FIFO2D[384];
118  uint32_t RESERVED18[640];
119  __IOM uint32_t FIFO3D[384];
121  uint32_t RESERVED19[28288];
122  __IOM uint32_t FIFORAM[512];
123 } USB_TypeDef;
125 /**************************************************************************/
130 /* Bit fields for USB CTRL */
131 #define _USB_CTRL_RESETVALUE 0x00000020UL
132 #define _USB_CTRL_MASK 0x03330EB2UL
133 #define USB_CTRL_DMPUAP (0x1UL << 1)
134 #define _USB_CTRL_DMPUAP_SHIFT 1
135 #define _USB_CTRL_DMPUAP_MASK 0x2UL
136 #define _USB_CTRL_DMPUAP_DEFAULT 0x00000000UL
137 #define _USB_CTRL_DMPUAP_LOW 0x00000000UL
138 #define _USB_CTRL_DMPUAP_HIGH 0x00000001UL
139 #define USB_CTRL_DMPUAP_DEFAULT (_USB_CTRL_DMPUAP_DEFAULT << 1)
140 #define USB_CTRL_DMPUAP_LOW (_USB_CTRL_DMPUAP_LOW << 1)
141 #define USB_CTRL_DMPUAP_HIGH (_USB_CTRL_DMPUAP_HIGH << 1)
142 #define _USB_CTRL_LEMOSCCTRL_SHIFT 4
143 #define _USB_CTRL_LEMOSCCTRL_MASK 0x30UL
144 #define _USB_CTRL_LEMOSCCTRL_NONE 0x00000000UL
145 #define _USB_CTRL_LEMOSCCTRL_GATE 0x00000001UL
146 #define _USB_CTRL_LEMOSCCTRL_DEFAULT 0x00000002UL
147 #define _USB_CTRL_LEMOSCCTRL_SUSPEND 0x00000002UL
148 #define USB_CTRL_LEMOSCCTRL_NONE (_USB_CTRL_LEMOSCCTRL_NONE << 4)
149 #define USB_CTRL_LEMOSCCTRL_GATE (_USB_CTRL_LEMOSCCTRL_GATE << 4)
150 #define USB_CTRL_LEMOSCCTRL_DEFAULT (_USB_CTRL_LEMOSCCTRL_DEFAULT << 4)
151 #define USB_CTRL_LEMOSCCTRL_SUSPEND (_USB_CTRL_LEMOSCCTRL_SUSPEND << 4)
152 #define USB_CTRL_LEMPHYCTRL (0x1UL << 7)
153 #define _USB_CTRL_LEMPHYCTRL_SHIFT 7
154 #define _USB_CTRL_LEMPHYCTRL_MASK 0x80UL
155 #define _USB_CTRL_LEMPHYCTRL_DEFAULT 0x00000000UL
156 #define _USB_CTRL_LEMPHYCTRL_NONE 0x00000000UL
157 #define _USB_CTRL_LEMPHYCTRL_LEM 0x00000001UL
158 #define USB_CTRL_LEMPHYCTRL_DEFAULT (_USB_CTRL_LEMPHYCTRL_DEFAULT << 7)
159 #define USB_CTRL_LEMPHYCTRL_NONE (_USB_CTRL_LEMPHYCTRL_NONE << 7)
160 #define USB_CTRL_LEMPHYCTRL_LEM (_USB_CTRL_LEMPHYCTRL_LEM << 7)
161 #define USB_CTRL_LEMIDLEEN (0x1UL << 9)
162 #define _USB_CTRL_LEMIDLEEN_SHIFT 9
163 #define _USB_CTRL_LEMIDLEEN_MASK 0x200UL
164 #define _USB_CTRL_LEMIDLEEN_DEFAULT 0x00000000UL
165 #define USB_CTRL_LEMIDLEEN_DEFAULT (_USB_CTRL_LEMIDLEEN_DEFAULT << 9)
166 #define USB_CTRL_LEMNAKEN (0x1UL << 10)
167 #define _USB_CTRL_LEMNAKEN_SHIFT 10
168 #define _USB_CTRL_LEMNAKEN_MASK 0x400UL
169 #define _USB_CTRL_LEMNAKEN_DEFAULT 0x00000000UL
170 #define USB_CTRL_LEMNAKEN_DEFAULT (_USB_CTRL_LEMNAKEN_DEFAULT << 10)
171 #define USB_CTRL_LEMADDRMEN (0x1UL << 11)
172 #define _USB_CTRL_LEMADDRMEN_SHIFT 11
173 #define _USB_CTRL_LEMADDRMEN_MASK 0x800UL
174 #define _USB_CTRL_LEMADDRMEN_DEFAULT 0x00000000UL
175 #define USB_CTRL_LEMADDRMEN_DEFAULT (_USB_CTRL_LEMADDRMEN_DEFAULT << 11)
176 #define USB_CTRL_VREGDIS (0x1UL << 16)
177 #define _USB_CTRL_VREGDIS_SHIFT 16
178 #define _USB_CTRL_VREGDIS_MASK 0x10000UL
179 #define _USB_CTRL_VREGDIS_DEFAULT 0x00000000UL
180 #define USB_CTRL_VREGDIS_DEFAULT (_USB_CTRL_VREGDIS_DEFAULT << 16)
181 #define USB_CTRL_VREGOSEN (0x1UL << 17)
182 #define _USB_CTRL_VREGOSEN_SHIFT 17
183 #define _USB_CTRL_VREGOSEN_MASK 0x20000UL
184 #define _USB_CTRL_VREGOSEN_DEFAULT 0x00000000UL
185 #define USB_CTRL_VREGOSEN_DEFAULT (_USB_CTRL_VREGOSEN_DEFAULT << 17)
186 #define _USB_CTRL_BIASPROGEM01_SHIFT 20
187 #define _USB_CTRL_BIASPROGEM01_MASK 0x300000UL
188 #define _USB_CTRL_BIASPROGEM01_DEFAULT 0x00000000UL
189 #define USB_CTRL_BIASPROGEM01_DEFAULT (_USB_CTRL_BIASPROGEM01_DEFAULT << 20)
190 #define _USB_CTRL_BIASPROGEM23_SHIFT 24
191 #define _USB_CTRL_BIASPROGEM23_MASK 0x3000000UL
192 #define _USB_CTRL_BIASPROGEM23_DEFAULT 0x00000000UL
193 #define USB_CTRL_BIASPROGEM23_DEFAULT (_USB_CTRL_BIASPROGEM23_DEFAULT << 24)
195 /* Bit fields for USB STATUS */
196 #define _USB_STATUS_RESETVALUE 0x00000000UL
197 #define _USB_STATUS_MASK 0x00000005UL
198 #define USB_STATUS_VREGOS (0x1UL << 0)
199 #define _USB_STATUS_VREGOS_SHIFT 0
200 #define _USB_STATUS_VREGOS_MASK 0x1UL
201 #define _USB_STATUS_VREGOS_DEFAULT 0x00000000UL
202 #define USB_STATUS_VREGOS_DEFAULT (_USB_STATUS_VREGOS_DEFAULT << 0)
203 #define USB_STATUS_LEMACTIVE (0x1UL << 2)
204 #define _USB_STATUS_LEMACTIVE_SHIFT 2
205 #define _USB_STATUS_LEMACTIVE_MASK 0x4UL
206 #define _USB_STATUS_LEMACTIVE_DEFAULT 0x00000000UL
207 #define USB_STATUS_LEMACTIVE_DEFAULT (_USB_STATUS_LEMACTIVE_DEFAULT << 2)
209 /* Bit fields for USB IF */
210 #define _USB_IF_RESETVALUE 0x00000003UL
211 #define _USB_IF_MASK 0x00000003UL
212 #define USB_IF_VREGOSH (0x1UL << 0)
213 #define _USB_IF_VREGOSH_SHIFT 0
214 #define _USB_IF_VREGOSH_MASK 0x1UL
215 #define _USB_IF_VREGOSH_DEFAULT 0x00000001UL
216 #define USB_IF_VREGOSH_DEFAULT (_USB_IF_VREGOSH_DEFAULT << 0)
217 #define USB_IF_VREGOSL (0x1UL << 1)
218 #define _USB_IF_VREGOSL_SHIFT 1
219 #define _USB_IF_VREGOSL_MASK 0x2UL
220 #define _USB_IF_VREGOSL_DEFAULT 0x00000001UL
221 #define USB_IF_VREGOSL_DEFAULT (_USB_IF_VREGOSL_DEFAULT << 1)
223 /* Bit fields for USB IFS */
224 #define _USB_IFS_RESETVALUE 0x00000000UL
225 #define _USB_IFS_MASK 0x00000003UL
226 #define USB_IFS_VREGOSH (0x1UL << 0)
227 #define _USB_IFS_VREGOSH_SHIFT 0
228 #define _USB_IFS_VREGOSH_MASK 0x1UL
229 #define _USB_IFS_VREGOSH_DEFAULT 0x00000000UL
230 #define USB_IFS_VREGOSH_DEFAULT (_USB_IFS_VREGOSH_DEFAULT << 0)
231 #define USB_IFS_VREGOSL (0x1UL << 1)
232 #define _USB_IFS_VREGOSL_SHIFT 1
233 #define _USB_IFS_VREGOSL_MASK 0x2UL
234 #define _USB_IFS_VREGOSL_DEFAULT 0x00000000UL
235 #define USB_IFS_VREGOSL_DEFAULT (_USB_IFS_VREGOSL_DEFAULT << 1)
237 /* Bit fields for USB IFC */
238 #define _USB_IFC_RESETVALUE 0x00000000UL
239 #define _USB_IFC_MASK 0x00000003UL
240 #define USB_IFC_VREGOSH (0x1UL << 0)
241 #define _USB_IFC_VREGOSH_SHIFT 0
242 #define _USB_IFC_VREGOSH_MASK 0x1UL
243 #define _USB_IFC_VREGOSH_DEFAULT 0x00000000UL
244 #define USB_IFC_VREGOSH_DEFAULT (_USB_IFC_VREGOSH_DEFAULT << 0)
245 #define USB_IFC_VREGOSL (0x1UL << 1)
246 #define _USB_IFC_VREGOSL_SHIFT 1
247 #define _USB_IFC_VREGOSL_MASK 0x2UL
248 #define _USB_IFC_VREGOSL_DEFAULT 0x00000000UL
249 #define USB_IFC_VREGOSL_DEFAULT (_USB_IFC_VREGOSL_DEFAULT << 1)
251 /* Bit fields for USB IEN */
252 #define _USB_IEN_RESETVALUE 0x00000000UL
253 #define _USB_IEN_MASK 0x00000003UL
254 #define USB_IEN_VREGOSH (0x1UL << 0)
255 #define _USB_IEN_VREGOSH_SHIFT 0
256 #define _USB_IEN_VREGOSH_MASK 0x1UL
257 #define _USB_IEN_VREGOSH_DEFAULT 0x00000000UL
258 #define USB_IEN_VREGOSH_DEFAULT (_USB_IEN_VREGOSH_DEFAULT << 0)
259 #define USB_IEN_VREGOSL (0x1UL << 1)
260 #define _USB_IEN_VREGOSL_SHIFT 1
261 #define _USB_IEN_VREGOSL_MASK 0x2UL
262 #define _USB_IEN_VREGOSL_DEFAULT 0x00000000UL
263 #define USB_IEN_VREGOSL_DEFAULT (_USB_IEN_VREGOSL_DEFAULT << 1)
265 /* Bit fields for USB ROUTE */
266 #define _USB_ROUTE_RESETVALUE 0x00000000UL
267 #define _USB_ROUTE_MASK 0x00000005UL
268 #define USB_ROUTE_PHYPEN (0x1UL << 0)
269 #define _USB_ROUTE_PHYPEN_SHIFT 0
270 #define _USB_ROUTE_PHYPEN_MASK 0x1UL
271 #define _USB_ROUTE_PHYPEN_DEFAULT 0x00000000UL
272 #define USB_ROUTE_PHYPEN_DEFAULT (_USB_ROUTE_PHYPEN_DEFAULT << 0)
273 #define USB_ROUTE_DMPUPEN (0x1UL << 2)
274 #define _USB_ROUTE_DMPUPEN_SHIFT 2
275 #define _USB_ROUTE_DMPUPEN_MASK 0x4UL
276 #define _USB_ROUTE_DMPUPEN_DEFAULT 0x00000000UL
277 #define USB_ROUTE_DMPUPEN_DEFAULT (_USB_ROUTE_DMPUPEN_DEFAULT << 2)
279 /* Bit fields for USB GAHBCFG */
280 #define _USB_GAHBCFG_RESETVALUE 0x00000000UL
281 #define _USB_GAHBCFG_MASK 0x00E000BFUL
282 #define USB_GAHBCFG_GLBLINTRMSK (0x1UL << 0)
283 #define _USB_GAHBCFG_GLBLINTRMSK_SHIFT 0
284 #define _USB_GAHBCFG_GLBLINTRMSK_MASK 0x1UL
285 #define _USB_GAHBCFG_GLBLINTRMSK_DEFAULT 0x00000000UL
286 #define USB_GAHBCFG_GLBLINTRMSK_DEFAULT (_USB_GAHBCFG_GLBLINTRMSK_DEFAULT << 0)
287 #define _USB_GAHBCFG_HBSTLEN_SHIFT 1
288 #define _USB_GAHBCFG_HBSTLEN_MASK 0x1EUL
289 #define _USB_GAHBCFG_HBSTLEN_DEFAULT 0x00000000UL
290 #define _USB_GAHBCFG_HBSTLEN_SINGLE 0x00000000UL
291 #define _USB_GAHBCFG_HBSTLEN_INCR 0x00000001UL
292 #define _USB_GAHBCFG_HBSTLEN_INCR4 0x00000003UL
293 #define _USB_GAHBCFG_HBSTLEN_INCR8 0x00000005UL
294 #define _USB_GAHBCFG_HBSTLEN_INCR16 0x00000007UL
295 #define USB_GAHBCFG_HBSTLEN_DEFAULT (_USB_GAHBCFG_HBSTLEN_DEFAULT << 1)
296 #define USB_GAHBCFG_HBSTLEN_SINGLE (_USB_GAHBCFG_HBSTLEN_SINGLE << 1)
297 #define USB_GAHBCFG_HBSTLEN_INCR (_USB_GAHBCFG_HBSTLEN_INCR << 1)
298 #define USB_GAHBCFG_HBSTLEN_INCR4 (_USB_GAHBCFG_HBSTLEN_INCR4 << 1)
299 #define USB_GAHBCFG_HBSTLEN_INCR8 (_USB_GAHBCFG_HBSTLEN_INCR8 << 1)
300 #define USB_GAHBCFG_HBSTLEN_INCR16 (_USB_GAHBCFG_HBSTLEN_INCR16 << 1)
301 #define USB_GAHBCFG_DMAEN (0x1UL << 5)
302 #define _USB_GAHBCFG_DMAEN_SHIFT 5
303 #define _USB_GAHBCFG_DMAEN_MASK 0x20UL
304 #define _USB_GAHBCFG_DMAEN_DEFAULT 0x00000000UL
305 #define USB_GAHBCFG_DMAEN_DEFAULT (_USB_GAHBCFG_DMAEN_DEFAULT << 5)
306 #define USB_GAHBCFG_NPTXFEMPLVL (0x1UL << 7)
307 #define _USB_GAHBCFG_NPTXFEMPLVL_SHIFT 7
308 #define _USB_GAHBCFG_NPTXFEMPLVL_MASK 0x80UL
309 #define _USB_GAHBCFG_NPTXFEMPLVL_DEFAULT 0x00000000UL
310 #define _USB_GAHBCFG_NPTXFEMPLVL_HALFEMPTY 0x00000000UL
311 #define _USB_GAHBCFG_NPTXFEMPLVL_EMPTY 0x00000001UL
312 #define USB_GAHBCFG_NPTXFEMPLVL_DEFAULT (_USB_GAHBCFG_NPTXFEMPLVL_DEFAULT << 7)
313 #define USB_GAHBCFG_NPTXFEMPLVL_HALFEMPTY (_USB_GAHBCFG_NPTXFEMPLVL_HALFEMPTY << 7)
314 #define USB_GAHBCFG_NPTXFEMPLVL_EMPTY (_USB_GAHBCFG_NPTXFEMPLVL_EMPTY << 7)
315 #define USB_GAHBCFG_REMMEMSUPP (0x1UL << 21)
316 #define _USB_GAHBCFG_REMMEMSUPP_SHIFT 21
317 #define _USB_GAHBCFG_REMMEMSUPP_MASK 0x200000UL
318 #define _USB_GAHBCFG_REMMEMSUPP_DEFAULT 0x00000000UL
319 #define USB_GAHBCFG_REMMEMSUPP_DEFAULT (_USB_GAHBCFG_REMMEMSUPP_DEFAULT << 21)
320 #define USB_GAHBCFG_NOTIALLDMAWRIT (0x1UL << 22)
321 #define _USB_GAHBCFG_NOTIALLDMAWRIT_SHIFT 22
322 #define _USB_GAHBCFG_NOTIALLDMAWRIT_MASK 0x400000UL
323 #define _USB_GAHBCFG_NOTIALLDMAWRIT_DEFAULT 0x00000000UL
324 #define USB_GAHBCFG_NOTIALLDMAWRIT_DEFAULT (_USB_GAHBCFG_NOTIALLDMAWRIT_DEFAULT << 22)
325 #define USB_GAHBCFG_AHBSINGLE (0x1UL << 23)
326 #define _USB_GAHBCFG_AHBSINGLE_SHIFT 23
327 #define _USB_GAHBCFG_AHBSINGLE_MASK 0x800000UL
328 #define _USB_GAHBCFG_AHBSINGLE_DEFAULT 0x00000000UL
329 #define USB_GAHBCFG_AHBSINGLE_DEFAULT (_USB_GAHBCFG_AHBSINGLE_DEFAULT << 23)
331 /* Bit fields for USB GUSBCFG */
332 #define _USB_GUSBCFG_RESETVALUE 0x00001440UL
333 #define _USB_GUSBCFG_MASK 0x90403C27UL
334 #define _USB_GUSBCFG_TOUTCAL_SHIFT 0
335 #define _USB_GUSBCFG_TOUTCAL_MASK 0x7UL
336 #define _USB_GUSBCFG_TOUTCAL_DEFAULT 0x00000000UL
337 #define USB_GUSBCFG_TOUTCAL_DEFAULT (_USB_GUSBCFG_TOUTCAL_DEFAULT << 0)
338 #define USB_GUSBCFG_FSINTF (0x1UL << 5)
339 #define _USB_GUSBCFG_FSINTF_SHIFT 5
340 #define _USB_GUSBCFG_FSINTF_MASK 0x20UL
341 #define _USB_GUSBCFG_FSINTF_DEFAULT 0x00000000UL
342 #define USB_GUSBCFG_FSINTF_DEFAULT (_USB_GUSBCFG_FSINTF_DEFAULT << 5)
343 #define _USB_GUSBCFG_USBTRDTIM_SHIFT 10
344 #define _USB_GUSBCFG_USBTRDTIM_MASK 0x3C00UL
345 #define _USB_GUSBCFG_USBTRDTIM_DEFAULT 0x00000005UL
346 #define USB_GUSBCFG_USBTRDTIM_DEFAULT (_USB_GUSBCFG_USBTRDTIM_DEFAULT << 10)
347 #define USB_GUSBCFG_TERMSELDLPULSE (0x1UL << 22)
348 #define _USB_GUSBCFG_TERMSELDLPULSE_SHIFT 22
349 #define _USB_GUSBCFG_TERMSELDLPULSE_MASK 0x400000UL
350 #define _USB_GUSBCFG_TERMSELDLPULSE_DEFAULT 0x00000000UL
351 #define _USB_GUSBCFG_TERMSELDLPULSE_TXVALID 0x00000000UL
352 #define _USB_GUSBCFG_TERMSELDLPULSE_TERMSEL 0x00000001UL
353 #define USB_GUSBCFG_TERMSELDLPULSE_DEFAULT (_USB_GUSBCFG_TERMSELDLPULSE_DEFAULT << 22)
354 #define USB_GUSBCFG_TERMSELDLPULSE_TXVALID (_USB_GUSBCFG_TERMSELDLPULSE_TXVALID << 22)
355 #define USB_GUSBCFG_TERMSELDLPULSE_TERMSEL (_USB_GUSBCFG_TERMSELDLPULSE_TERMSEL << 22)
356 #define USB_GUSBCFG_TXENDDELAY (0x1UL << 28)
357 #define _USB_GUSBCFG_TXENDDELAY_SHIFT 28
358 #define _USB_GUSBCFG_TXENDDELAY_MASK 0x10000000UL
359 #define _USB_GUSBCFG_TXENDDELAY_DEFAULT 0x00000000UL
360 #define USB_GUSBCFG_TXENDDELAY_DEFAULT (_USB_GUSBCFG_TXENDDELAY_DEFAULT << 28)
361 #define USB_GUSBCFG_CORRUPTTXPKT (0x1UL << 31)
362 #define _USB_GUSBCFG_CORRUPTTXPKT_SHIFT 31
363 #define _USB_GUSBCFG_CORRUPTTXPKT_MASK 0x80000000UL
364 #define _USB_GUSBCFG_CORRUPTTXPKT_DEFAULT 0x00000000UL
365 #define USB_GUSBCFG_CORRUPTTXPKT_DEFAULT (_USB_GUSBCFG_CORRUPTTXPKT_DEFAULT << 31)
367 /* Bit fields for USB GRSTCTL */
368 #define _USB_GRSTCTL_RESETVALUE 0x80000000UL
369 #define _USB_GRSTCTL_MASK 0xC00007F3UL
370 #define USB_GRSTCTL_CSFTRST (0x1UL << 0)
371 #define _USB_GRSTCTL_CSFTRST_SHIFT 0
372 #define _USB_GRSTCTL_CSFTRST_MASK 0x1UL
373 #define _USB_GRSTCTL_CSFTRST_DEFAULT 0x00000000UL
374 #define USB_GRSTCTL_CSFTRST_DEFAULT (_USB_GRSTCTL_CSFTRST_DEFAULT << 0)
375 #define USB_GRSTCTL_PIUFSSFTRST (0x1UL << 1)
376 #define _USB_GRSTCTL_PIUFSSFTRST_SHIFT 1
377 #define _USB_GRSTCTL_PIUFSSFTRST_MASK 0x2UL
378 #define _USB_GRSTCTL_PIUFSSFTRST_DEFAULT 0x00000000UL
379 #define USB_GRSTCTL_PIUFSSFTRST_DEFAULT (_USB_GRSTCTL_PIUFSSFTRST_DEFAULT << 1)
380 #define USB_GRSTCTL_RXFFLSH (0x1UL << 4)
381 #define _USB_GRSTCTL_RXFFLSH_SHIFT 4
382 #define _USB_GRSTCTL_RXFFLSH_MASK 0x10UL
383 #define _USB_GRSTCTL_RXFFLSH_DEFAULT 0x00000000UL
384 #define USB_GRSTCTL_RXFFLSH_DEFAULT (_USB_GRSTCTL_RXFFLSH_DEFAULT << 4)
385 #define USB_GRSTCTL_TXFFLSH (0x1UL << 5)
386 #define _USB_GRSTCTL_TXFFLSH_SHIFT 5
387 #define _USB_GRSTCTL_TXFFLSH_MASK 0x20UL
388 #define _USB_GRSTCTL_TXFFLSH_DEFAULT 0x00000000UL
389 #define USB_GRSTCTL_TXFFLSH_DEFAULT (_USB_GRSTCTL_TXFFLSH_DEFAULT << 5)
390 #define _USB_GRSTCTL_TXFNUM_SHIFT 6
391 #define _USB_GRSTCTL_TXFNUM_MASK 0x7C0UL
392 #define _USB_GRSTCTL_TXFNUM_DEFAULT 0x00000000UL
393 #define _USB_GRSTCTL_TXFNUM_F0 0x00000000UL
394 #define _USB_GRSTCTL_TXFNUM_F1 0x00000001UL
395 #define _USB_GRSTCTL_TXFNUM_F2 0x00000002UL
396 #define _USB_GRSTCTL_TXFNUM_F3 0x00000003UL
397 #define _USB_GRSTCTL_TXFNUM_F4 0x00000004UL
398 #define _USB_GRSTCTL_TXFNUM_F5 0x00000005UL
399 #define _USB_GRSTCTL_TXFNUM_F6 0x00000006UL
400 #define _USB_GRSTCTL_TXFNUM_FALL 0x00000010UL
401 #define USB_GRSTCTL_TXFNUM_DEFAULT (_USB_GRSTCTL_TXFNUM_DEFAULT << 6)
402 #define USB_GRSTCTL_TXFNUM_F0 (_USB_GRSTCTL_TXFNUM_F0 << 6)
403 #define USB_GRSTCTL_TXFNUM_F1 (_USB_GRSTCTL_TXFNUM_F1 << 6)
404 #define USB_GRSTCTL_TXFNUM_F2 (_USB_GRSTCTL_TXFNUM_F2 << 6)
405 #define USB_GRSTCTL_TXFNUM_F3 (_USB_GRSTCTL_TXFNUM_F3 << 6)
406 #define USB_GRSTCTL_TXFNUM_F4 (_USB_GRSTCTL_TXFNUM_F4 << 6)
407 #define USB_GRSTCTL_TXFNUM_F5 (_USB_GRSTCTL_TXFNUM_F5 << 6)
408 #define USB_GRSTCTL_TXFNUM_F6 (_USB_GRSTCTL_TXFNUM_F6 << 6)
409 #define USB_GRSTCTL_TXFNUM_FALL (_USB_GRSTCTL_TXFNUM_FALL << 6)
410 #define USB_GRSTCTL_DMAREQ (0x1UL << 30)
411 #define _USB_GRSTCTL_DMAREQ_SHIFT 30
412 #define _USB_GRSTCTL_DMAREQ_MASK 0x40000000UL
413 #define _USB_GRSTCTL_DMAREQ_DEFAULT 0x00000000UL
414 #define USB_GRSTCTL_DMAREQ_DEFAULT (_USB_GRSTCTL_DMAREQ_DEFAULT << 30)
415 #define USB_GRSTCTL_AHBIDLE (0x1UL << 31)
416 #define _USB_GRSTCTL_AHBIDLE_SHIFT 31
417 #define _USB_GRSTCTL_AHBIDLE_MASK 0x80000000UL
418 #define _USB_GRSTCTL_AHBIDLE_DEFAULT 0x00000001UL
419 #define USB_GRSTCTL_AHBIDLE_DEFAULT (_USB_GRSTCTL_AHBIDLE_DEFAULT << 31)
421 /* Bit fields for USB GINTSTS */
422 #define _USB_GINTSTS_RESETVALUE 0x00000000UL
423 #define _USB_GINTSTS_MASK 0x80FCFCD9UL
424 #define USB_GINTSTS_CURMOD (0x1UL << 0)
425 #define _USB_GINTSTS_CURMOD_SHIFT 0
426 #define _USB_GINTSTS_CURMOD_MASK 0x1UL
427 #define _USB_GINTSTS_CURMOD_DEFAULT 0x00000000UL
428 #define _USB_GINTSTS_CURMOD_DEVICE 0x00000000UL
429 #define USB_GINTSTS_CURMOD_DEFAULT (_USB_GINTSTS_CURMOD_DEFAULT << 0)
430 #define USB_GINTSTS_CURMOD_DEVICE (_USB_GINTSTS_CURMOD_DEVICE << 0)
431 #define USB_GINTSTS_SOF (0x1UL << 3)
432 #define _USB_GINTSTS_SOF_SHIFT 3
433 #define _USB_GINTSTS_SOF_MASK 0x8UL
434 #define _USB_GINTSTS_SOF_DEFAULT 0x00000000UL
435 #define USB_GINTSTS_SOF_DEFAULT (_USB_GINTSTS_SOF_DEFAULT << 3)
436 #define USB_GINTSTS_RXFLVL (0x1UL << 4)
437 #define _USB_GINTSTS_RXFLVL_SHIFT 4
438 #define _USB_GINTSTS_RXFLVL_MASK 0x10UL
439 #define _USB_GINTSTS_RXFLVL_DEFAULT 0x00000000UL
440 #define USB_GINTSTS_RXFLVL_DEFAULT (_USB_GINTSTS_RXFLVL_DEFAULT << 4)
441 #define USB_GINTSTS_GINNAKEFF (0x1UL << 6)
442 #define _USB_GINTSTS_GINNAKEFF_SHIFT 6
443 #define _USB_GINTSTS_GINNAKEFF_MASK 0x40UL
444 #define _USB_GINTSTS_GINNAKEFF_DEFAULT 0x00000000UL
445 #define USB_GINTSTS_GINNAKEFF_DEFAULT (_USB_GINTSTS_GINNAKEFF_DEFAULT << 6)
446 #define USB_GINTSTS_GOUTNAKEFF (0x1UL << 7)
447 #define _USB_GINTSTS_GOUTNAKEFF_SHIFT 7
448 #define _USB_GINTSTS_GOUTNAKEFF_MASK 0x80UL
449 #define _USB_GINTSTS_GOUTNAKEFF_DEFAULT 0x00000000UL
450 #define USB_GINTSTS_GOUTNAKEFF_DEFAULT (_USB_GINTSTS_GOUTNAKEFF_DEFAULT << 7)
451 #define USB_GINTSTS_ERLYSUSP (0x1UL << 10)
452 #define _USB_GINTSTS_ERLYSUSP_SHIFT 10
453 #define _USB_GINTSTS_ERLYSUSP_MASK 0x400UL
454 #define _USB_GINTSTS_ERLYSUSP_DEFAULT 0x00000000UL
455 #define USB_GINTSTS_ERLYSUSP_DEFAULT (_USB_GINTSTS_ERLYSUSP_DEFAULT << 10)
456 #define USB_GINTSTS_USBSUSP (0x1UL << 11)
457 #define _USB_GINTSTS_USBSUSP_SHIFT 11
458 #define _USB_GINTSTS_USBSUSP_MASK 0x800UL
459 #define _USB_GINTSTS_USBSUSP_DEFAULT 0x00000000UL
460 #define USB_GINTSTS_USBSUSP_DEFAULT (_USB_GINTSTS_USBSUSP_DEFAULT << 11)
461 #define USB_GINTSTS_USBRST (0x1UL << 12)
462 #define _USB_GINTSTS_USBRST_SHIFT 12
463 #define _USB_GINTSTS_USBRST_MASK 0x1000UL
464 #define _USB_GINTSTS_USBRST_DEFAULT 0x00000000UL
465 #define USB_GINTSTS_USBRST_DEFAULT (_USB_GINTSTS_USBRST_DEFAULT << 12)
466 #define USB_GINTSTS_ENUMDONE (0x1UL << 13)
467 #define _USB_GINTSTS_ENUMDONE_SHIFT 13
468 #define _USB_GINTSTS_ENUMDONE_MASK 0x2000UL
469 #define _USB_GINTSTS_ENUMDONE_DEFAULT 0x00000000UL
470 #define USB_GINTSTS_ENUMDONE_DEFAULT (_USB_GINTSTS_ENUMDONE_DEFAULT << 13)
471 #define USB_GINTSTS_ISOOUTDROP (0x1UL << 14)
472 #define _USB_GINTSTS_ISOOUTDROP_SHIFT 14
473 #define _USB_GINTSTS_ISOOUTDROP_MASK 0x4000UL
474 #define _USB_GINTSTS_ISOOUTDROP_DEFAULT 0x00000000UL
475 #define USB_GINTSTS_ISOOUTDROP_DEFAULT (_USB_GINTSTS_ISOOUTDROP_DEFAULT << 14)
476 #define USB_GINTSTS_EOPF (0x1UL << 15)
477 #define _USB_GINTSTS_EOPF_SHIFT 15
478 #define _USB_GINTSTS_EOPF_MASK 0x8000UL
479 #define _USB_GINTSTS_EOPF_DEFAULT 0x00000000UL
480 #define USB_GINTSTS_EOPF_DEFAULT (_USB_GINTSTS_EOPF_DEFAULT << 15)
481 #define USB_GINTSTS_IEPINT (0x1UL << 18)
482 #define _USB_GINTSTS_IEPINT_SHIFT 18
483 #define _USB_GINTSTS_IEPINT_MASK 0x40000UL
484 #define _USB_GINTSTS_IEPINT_DEFAULT 0x00000000UL
485 #define USB_GINTSTS_IEPINT_DEFAULT (_USB_GINTSTS_IEPINT_DEFAULT << 18)
486 #define USB_GINTSTS_OEPINT (0x1UL << 19)
487 #define _USB_GINTSTS_OEPINT_SHIFT 19
488 #define _USB_GINTSTS_OEPINT_MASK 0x80000UL
489 #define _USB_GINTSTS_OEPINT_DEFAULT 0x00000000UL
490 #define USB_GINTSTS_OEPINT_DEFAULT (_USB_GINTSTS_OEPINT_DEFAULT << 19)
491 #define USB_GINTSTS_INCOMPISOIN (0x1UL << 20)
492 #define _USB_GINTSTS_INCOMPISOIN_SHIFT 20
493 #define _USB_GINTSTS_INCOMPISOIN_MASK 0x100000UL
494 #define _USB_GINTSTS_INCOMPISOIN_DEFAULT 0x00000000UL
495 #define USB_GINTSTS_INCOMPISOIN_DEFAULT (_USB_GINTSTS_INCOMPISOIN_DEFAULT << 20)
496 #define USB_GINTSTS_INCOMPLP (0x1UL << 21)
497 #define _USB_GINTSTS_INCOMPLP_SHIFT 21
498 #define _USB_GINTSTS_INCOMPLP_MASK 0x200000UL
499 #define _USB_GINTSTS_INCOMPLP_DEFAULT 0x00000000UL
500 #define USB_GINTSTS_INCOMPLP_DEFAULT (_USB_GINTSTS_INCOMPLP_DEFAULT << 21)
501 #define USB_GINTSTS_FETSUSP (0x1UL << 22)
502 #define _USB_GINTSTS_FETSUSP_SHIFT 22
503 #define _USB_GINTSTS_FETSUSP_MASK 0x400000UL
504 #define _USB_GINTSTS_FETSUSP_DEFAULT 0x00000000UL
505 #define USB_GINTSTS_FETSUSP_DEFAULT (_USB_GINTSTS_FETSUSP_DEFAULT << 22)
506 #define USB_GINTSTS_RESETDET (0x1UL << 23)
507 #define _USB_GINTSTS_RESETDET_SHIFT 23
508 #define _USB_GINTSTS_RESETDET_MASK 0x800000UL
509 #define _USB_GINTSTS_RESETDET_DEFAULT 0x00000000UL
510 #define USB_GINTSTS_RESETDET_DEFAULT (_USB_GINTSTS_RESETDET_DEFAULT << 23)
511 #define USB_GINTSTS_WKUPINT (0x1UL << 31)
512 #define _USB_GINTSTS_WKUPINT_SHIFT 31
513 #define _USB_GINTSTS_WKUPINT_MASK 0x80000000UL
514 #define _USB_GINTSTS_WKUPINT_DEFAULT 0x00000000UL
515 #define USB_GINTSTS_WKUPINT_DEFAULT (_USB_GINTSTS_WKUPINT_DEFAULT << 31)
517 /* Bit fields for USB GINTMSK */
518 #define _USB_GINTMSK_RESETVALUE 0x00000000UL
519 #define _USB_GINTMSK_MASK 0x80FCFCDAUL
520 #define USB_GINTMSK_MODEMISMSK (0x1UL << 1)
521 #define _USB_GINTMSK_MODEMISMSK_SHIFT 1
522 #define _USB_GINTMSK_MODEMISMSK_MASK 0x2UL
523 #define _USB_GINTMSK_MODEMISMSK_DEFAULT 0x00000000UL
524 #define USB_GINTMSK_MODEMISMSK_DEFAULT (_USB_GINTMSK_MODEMISMSK_DEFAULT << 1)
525 #define USB_GINTMSK_SOFMSK (0x1UL << 3)
526 #define _USB_GINTMSK_SOFMSK_SHIFT 3
527 #define _USB_GINTMSK_SOFMSK_MASK 0x8UL
528 #define _USB_GINTMSK_SOFMSK_DEFAULT 0x00000000UL
529 #define USB_GINTMSK_SOFMSK_DEFAULT (_USB_GINTMSK_SOFMSK_DEFAULT << 3)
530 #define USB_GINTMSK_RXFLVLMSK (0x1UL << 4)
531 #define _USB_GINTMSK_RXFLVLMSK_SHIFT 4
532 #define _USB_GINTMSK_RXFLVLMSK_MASK 0x10UL
533 #define _USB_GINTMSK_RXFLVLMSK_DEFAULT 0x00000000UL
534 #define USB_GINTMSK_RXFLVLMSK_DEFAULT (_USB_GINTMSK_RXFLVLMSK_DEFAULT << 4)
535 #define USB_GINTMSK_GINNAKEFFMSK (0x1UL << 6)
536 #define _USB_GINTMSK_GINNAKEFFMSK_SHIFT 6
537 #define _USB_GINTMSK_GINNAKEFFMSK_MASK 0x40UL
538 #define _USB_GINTMSK_GINNAKEFFMSK_DEFAULT 0x00000000UL
539 #define USB_GINTMSK_GINNAKEFFMSK_DEFAULT (_USB_GINTMSK_GINNAKEFFMSK_DEFAULT << 6)
540 #define USB_GINTMSK_GOUTNAKEFFMSK (0x1UL << 7)
541 #define _USB_GINTMSK_GOUTNAKEFFMSK_SHIFT 7
542 #define _USB_GINTMSK_GOUTNAKEFFMSK_MASK 0x80UL
543 #define _USB_GINTMSK_GOUTNAKEFFMSK_DEFAULT 0x00000000UL
544 #define USB_GINTMSK_GOUTNAKEFFMSK_DEFAULT (_USB_GINTMSK_GOUTNAKEFFMSK_DEFAULT << 7)
545 #define USB_GINTMSK_ERLYSUSPMSK (0x1UL << 10)
546 #define _USB_GINTMSK_ERLYSUSPMSK_SHIFT 10
547 #define _USB_GINTMSK_ERLYSUSPMSK_MASK 0x400UL
548 #define _USB_GINTMSK_ERLYSUSPMSK_DEFAULT 0x00000000UL
549 #define USB_GINTMSK_ERLYSUSPMSK_DEFAULT (_USB_GINTMSK_ERLYSUSPMSK_DEFAULT << 10)
550 #define USB_GINTMSK_USBSUSPMSK (0x1UL << 11)
551 #define _USB_GINTMSK_USBSUSPMSK_SHIFT 11
552 #define _USB_GINTMSK_USBSUSPMSK_MASK 0x800UL
553 #define _USB_GINTMSK_USBSUSPMSK_DEFAULT 0x00000000UL
554 #define USB_GINTMSK_USBSUSPMSK_DEFAULT (_USB_GINTMSK_USBSUSPMSK_DEFAULT << 11)
555 #define USB_GINTMSK_USBRSTMSK (0x1UL << 12)
556 #define _USB_GINTMSK_USBRSTMSK_SHIFT 12
557 #define _USB_GINTMSK_USBRSTMSK_MASK 0x1000UL
558 #define _USB_GINTMSK_USBRSTMSK_DEFAULT 0x00000000UL
559 #define USB_GINTMSK_USBRSTMSK_DEFAULT (_USB_GINTMSK_USBRSTMSK_DEFAULT << 12)
560 #define USB_GINTMSK_ENUMDONEMSK (0x1UL << 13)
561 #define _USB_GINTMSK_ENUMDONEMSK_SHIFT 13
562 #define _USB_GINTMSK_ENUMDONEMSK_MASK 0x2000UL
563 #define _USB_GINTMSK_ENUMDONEMSK_DEFAULT 0x00000000UL
564 #define USB_GINTMSK_ENUMDONEMSK_DEFAULT (_USB_GINTMSK_ENUMDONEMSK_DEFAULT << 13)
565 #define USB_GINTMSK_ISOOUTDROPMSK (0x1UL << 14)
566 #define _USB_GINTMSK_ISOOUTDROPMSK_SHIFT 14
567 #define _USB_GINTMSK_ISOOUTDROPMSK_MASK 0x4000UL
568 #define _USB_GINTMSK_ISOOUTDROPMSK_DEFAULT 0x00000000UL
569 #define USB_GINTMSK_ISOOUTDROPMSK_DEFAULT (_USB_GINTMSK_ISOOUTDROPMSK_DEFAULT << 14)
570 #define USB_GINTMSK_EOPFMSK (0x1UL << 15)
571 #define _USB_GINTMSK_EOPFMSK_SHIFT 15
572 #define _USB_GINTMSK_EOPFMSK_MASK 0x8000UL
573 #define _USB_GINTMSK_EOPFMSK_DEFAULT 0x00000000UL
574 #define USB_GINTMSK_EOPFMSK_DEFAULT (_USB_GINTMSK_EOPFMSK_DEFAULT << 15)
575 #define USB_GINTMSK_IEPINTMSK (0x1UL << 18)
576 #define _USB_GINTMSK_IEPINTMSK_SHIFT 18
577 #define _USB_GINTMSK_IEPINTMSK_MASK 0x40000UL
578 #define _USB_GINTMSK_IEPINTMSK_DEFAULT 0x00000000UL
579 #define USB_GINTMSK_IEPINTMSK_DEFAULT (_USB_GINTMSK_IEPINTMSK_DEFAULT << 18)
580 #define USB_GINTMSK_OEPINTMSK (0x1UL << 19)
581 #define _USB_GINTMSK_OEPINTMSK_SHIFT 19
582 #define _USB_GINTMSK_OEPINTMSK_MASK 0x80000UL
583 #define _USB_GINTMSK_OEPINTMSK_DEFAULT 0x00000000UL
584 #define USB_GINTMSK_OEPINTMSK_DEFAULT (_USB_GINTMSK_OEPINTMSK_DEFAULT << 19)
585 #define USB_GINTMSK_INCOMPISOINMSK (0x1UL << 20)
586 #define _USB_GINTMSK_INCOMPISOINMSK_SHIFT 20
587 #define _USB_GINTMSK_INCOMPISOINMSK_MASK 0x100000UL
588 #define _USB_GINTMSK_INCOMPISOINMSK_DEFAULT 0x00000000UL
589 #define USB_GINTMSK_INCOMPISOINMSK_DEFAULT (_USB_GINTMSK_INCOMPISOINMSK_DEFAULT << 20)
590 #define USB_GINTMSK_INCOMPLPMSK (0x1UL << 21)
591 #define _USB_GINTMSK_INCOMPLPMSK_SHIFT 21
592 #define _USB_GINTMSK_INCOMPLPMSK_MASK 0x200000UL
593 #define _USB_GINTMSK_INCOMPLPMSK_DEFAULT 0x00000000UL
594 #define USB_GINTMSK_INCOMPLPMSK_DEFAULT (_USB_GINTMSK_INCOMPLPMSK_DEFAULT << 21)
595 #define USB_GINTMSK_FETSUSPMSK (0x1UL << 22)
596 #define _USB_GINTMSK_FETSUSPMSK_SHIFT 22
597 #define _USB_GINTMSK_FETSUSPMSK_MASK 0x400000UL
598 #define _USB_GINTMSK_FETSUSPMSK_DEFAULT 0x00000000UL
599 #define USB_GINTMSK_FETSUSPMSK_DEFAULT (_USB_GINTMSK_FETSUSPMSK_DEFAULT << 22)
600 #define USB_GINTMSK_RESETDETMSK (0x1UL << 23)
601 #define _USB_GINTMSK_RESETDETMSK_SHIFT 23
602 #define _USB_GINTMSK_RESETDETMSK_MASK 0x800000UL
603 #define _USB_GINTMSK_RESETDETMSK_DEFAULT 0x00000000UL
604 #define USB_GINTMSK_RESETDETMSK_DEFAULT (_USB_GINTMSK_RESETDETMSK_DEFAULT << 23)
605 #define USB_GINTMSK_WKUPINTMSK (0x1UL << 31)
606 #define _USB_GINTMSK_WKUPINTMSK_SHIFT 31
607 #define _USB_GINTMSK_WKUPINTMSK_MASK 0x80000000UL
608 #define _USB_GINTMSK_WKUPINTMSK_DEFAULT 0x00000000UL
609 #define USB_GINTMSK_WKUPINTMSK_DEFAULT (_USB_GINTMSK_WKUPINTMSK_DEFAULT << 31)
611 /* Bit fields for USB GRXSTSR */
612 #define _USB_GRXSTSR_RESETVALUE 0x00000000UL
613 #define _USB_GRXSTSR_MASK 0x01FFFFFFUL
614 #define _USB_GRXSTSR_CHEPNUM_SHIFT 0
615 #define _USB_GRXSTSR_CHEPNUM_MASK 0xFUL
616 #define _USB_GRXSTSR_CHEPNUM_DEFAULT 0x00000000UL
617 #define USB_GRXSTSR_CHEPNUM_DEFAULT (_USB_GRXSTSR_CHEPNUM_DEFAULT << 0)
618 #define _USB_GRXSTSR_BCNT_SHIFT 4
619 #define _USB_GRXSTSR_BCNT_MASK 0x7FF0UL
620 #define _USB_GRXSTSR_BCNT_DEFAULT 0x00000000UL
621 #define USB_GRXSTSR_BCNT_DEFAULT (_USB_GRXSTSR_BCNT_DEFAULT << 4)
622 #define _USB_GRXSTSR_DPID_SHIFT 15
623 #define _USB_GRXSTSR_DPID_MASK 0x18000UL
624 #define _USB_GRXSTSR_DPID_DEFAULT 0x00000000UL
625 #define _USB_GRXSTSR_DPID_DATA0 0x00000000UL
626 #define _USB_GRXSTSR_DPID_DATA1 0x00000001UL
627 #define _USB_GRXSTSR_DPID_DATA2 0x00000002UL
628 #define _USB_GRXSTSR_DPID_MDATA 0x00000003UL
629 #define USB_GRXSTSR_DPID_DEFAULT (_USB_GRXSTSR_DPID_DEFAULT << 15)
630 #define USB_GRXSTSR_DPID_DATA0 (_USB_GRXSTSR_DPID_DATA0 << 15)
631 #define USB_GRXSTSR_DPID_DATA1 (_USB_GRXSTSR_DPID_DATA1 << 15)
632 #define USB_GRXSTSR_DPID_DATA2 (_USB_GRXSTSR_DPID_DATA2 << 15)
633 #define USB_GRXSTSR_DPID_MDATA (_USB_GRXSTSR_DPID_MDATA << 15)
634 #define _USB_GRXSTSR_PKTSTS_SHIFT 17
635 #define _USB_GRXSTSR_PKTSTS_MASK 0x1E0000UL
636 #define _USB_GRXSTSR_PKTSTS_DEFAULT 0x00000000UL
637 #define _USB_GRXSTSR_PKTSTS_GOUTNAK 0x00000001UL
638 #define _USB_GRXSTSR_PKTSTS_PKTRCV 0x00000002UL
639 #define _USB_GRXSTSR_PKTSTS_XFERCOMPL 0x00000003UL
640 #define _USB_GRXSTSR_PKTSTS_SETUPCOMPL 0x00000004UL
641 #define _USB_GRXSTSR_PKTSTS_TGLERR 0x00000005UL
642 #define _USB_GRXSTSR_PKTSTS_SETUPRCV 0x00000006UL
643 #define _USB_GRXSTSR_PKTSTS_CHLT 0x00000007UL
644 #define USB_GRXSTSR_PKTSTS_DEFAULT (_USB_GRXSTSR_PKTSTS_DEFAULT << 17)
645 #define USB_GRXSTSR_PKTSTS_GOUTNAK (_USB_GRXSTSR_PKTSTS_GOUTNAK << 17)
646 #define USB_GRXSTSR_PKTSTS_PKTRCV (_USB_GRXSTSR_PKTSTS_PKTRCV << 17)
647 #define USB_GRXSTSR_PKTSTS_XFERCOMPL (_USB_GRXSTSR_PKTSTS_XFERCOMPL << 17)
648 #define USB_GRXSTSR_PKTSTS_SETUPCOMPL (_USB_GRXSTSR_PKTSTS_SETUPCOMPL << 17)
649 #define USB_GRXSTSR_PKTSTS_TGLERR (_USB_GRXSTSR_PKTSTS_TGLERR << 17)
650 #define USB_GRXSTSR_PKTSTS_SETUPRCV (_USB_GRXSTSR_PKTSTS_SETUPRCV << 17)
651 #define USB_GRXSTSR_PKTSTS_CHLT (_USB_GRXSTSR_PKTSTS_CHLT << 17)
652 #define _USB_GRXSTSR_FN_SHIFT 21
653 #define _USB_GRXSTSR_FN_MASK 0x1E00000UL
654 #define _USB_GRXSTSR_FN_DEFAULT 0x00000000UL
655 #define USB_GRXSTSR_FN_DEFAULT (_USB_GRXSTSR_FN_DEFAULT << 21)
657 /* Bit fields for USB GRXSTSP */
658 #define _USB_GRXSTSP_RESETVALUE 0x00000000UL
659 #define _USB_GRXSTSP_MASK 0x01FFFFFFUL
660 #define _USB_GRXSTSP_CHEPNUM_SHIFT 0
661 #define _USB_GRXSTSP_CHEPNUM_MASK 0xFUL
662 #define _USB_GRXSTSP_CHEPNUM_DEFAULT 0x00000000UL
663 #define USB_GRXSTSP_CHEPNUM_DEFAULT (_USB_GRXSTSP_CHEPNUM_DEFAULT << 0)
664 #define _USB_GRXSTSP_BCNT_SHIFT 4
665 #define _USB_GRXSTSP_BCNT_MASK 0x7FF0UL
666 #define _USB_GRXSTSP_BCNT_DEFAULT 0x00000000UL
667 #define USB_GRXSTSP_BCNT_DEFAULT (_USB_GRXSTSP_BCNT_DEFAULT << 4)
668 #define _USB_GRXSTSP_DPID_SHIFT 15
669 #define _USB_GRXSTSP_DPID_MASK 0x18000UL
670 #define _USB_GRXSTSP_DPID_DEFAULT 0x00000000UL
671 #define _USB_GRXSTSP_DPID_DATA0 0x00000000UL
672 #define _USB_GRXSTSP_DPID_DATA1 0x00000001UL
673 #define _USB_GRXSTSP_DPID_DATA2 0x00000002UL
674 #define _USB_GRXSTSP_DPID_MDATA 0x00000003UL
675 #define USB_GRXSTSP_DPID_DEFAULT (_USB_GRXSTSP_DPID_DEFAULT << 15)
676 #define USB_GRXSTSP_DPID_DATA0 (_USB_GRXSTSP_DPID_DATA0 << 15)
677 #define USB_GRXSTSP_DPID_DATA1 (_USB_GRXSTSP_DPID_DATA1 << 15)
678 #define USB_GRXSTSP_DPID_DATA2 (_USB_GRXSTSP_DPID_DATA2 << 15)
679 #define USB_GRXSTSP_DPID_MDATA (_USB_GRXSTSP_DPID_MDATA << 15)
680 #define _USB_GRXSTSP_PKTSTS_SHIFT 17
681 #define _USB_GRXSTSP_PKTSTS_MASK 0x1E0000UL
682 #define _USB_GRXSTSP_PKTSTS_DEFAULT 0x00000000UL
683 #define _USB_GRXSTSP_PKTSTS_GOUTNAK 0x00000001UL
684 #define _USB_GRXSTSP_PKTSTS_PKTRCV 0x00000002UL
685 #define _USB_GRXSTSP_PKTSTS_XFERCOMPL 0x00000003UL
686 #define _USB_GRXSTSP_PKTSTS_SETUPCOMPL 0x00000004UL
687 #define _USB_GRXSTSP_PKTSTS_TGLERR 0x00000005UL
688 #define _USB_GRXSTSP_PKTSTS_SETUPRCV 0x00000006UL
689 #define _USB_GRXSTSP_PKTSTS_CHLT 0x00000007UL
690 #define USB_GRXSTSP_PKTSTS_DEFAULT (_USB_GRXSTSP_PKTSTS_DEFAULT << 17)
691 #define USB_GRXSTSP_PKTSTS_GOUTNAK (_USB_GRXSTSP_PKTSTS_GOUTNAK << 17)
692 #define USB_GRXSTSP_PKTSTS_PKTRCV (_USB_GRXSTSP_PKTSTS_PKTRCV << 17)
693 #define USB_GRXSTSP_PKTSTS_XFERCOMPL (_USB_GRXSTSP_PKTSTS_XFERCOMPL << 17)
694 #define USB_GRXSTSP_PKTSTS_SETUPCOMPL (_USB_GRXSTSP_PKTSTS_SETUPCOMPL << 17)
695 #define USB_GRXSTSP_PKTSTS_TGLERR (_USB_GRXSTSP_PKTSTS_TGLERR << 17)
696 #define USB_GRXSTSP_PKTSTS_SETUPRCV (_USB_GRXSTSP_PKTSTS_SETUPRCV << 17)
697 #define USB_GRXSTSP_PKTSTS_CHLT (_USB_GRXSTSP_PKTSTS_CHLT << 17)
698 #define _USB_GRXSTSP_FN_SHIFT 21
699 #define _USB_GRXSTSP_FN_MASK 0x1E00000UL
700 #define _USB_GRXSTSP_FN_DEFAULT 0x00000000UL
701 #define USB_GRXSTSP_FN_DEFAULT (_USB_GRXSTSP_FN_DEFAULT << 21)
703 /* Bit fields for USB GRXFSIZ */
704 #define _USB_GRXFSIZ_RESETVALUE 0x00000200UL
705 #define _USB_GRXFSIZ_MASK 0x000003FFUL
706 #define _USB_GRXFSIZ_RXFDEP_SHIFT 0
707 #define _USB_GRXFSIZ_RXFDEP_MASK 0x3FFUL
708 #define _USB_GRXFSIZ_RXFDEP_DEFAULT 0x00000200UL
709 #define USB_GRXFSIZ_RXFDEP_DEFAULT (_USB_GRXFSIZ_RXFDEP_DEFAULT << 0)
711 /* Bit fields for USB GNPTXFSIZ */
712 #define _USB_GNPTXFSIZ_RESETVALUE 0x02000200UL
713 #define _USB_GNPTXFSIZ_MASK 0xFFFF03FFUL
714 #define _USB_GNPTXFSIZ_NPTXFSTADDR_SHIFT 0
715 #define _USB_GNPTXFSIZ_NPTXFSTADDR_MASK 0x3FFUL
716 #define _USB_GNPTXFSIZ_NPTXFSTADDR_DEFAULT 0x00000200UL
717 #define USB_GNPTXFSIZ_NPTXFSTADDR_DEFAULT (_USB_GNPTXFSIZ_NPTXFSTADDR_DEFAULT << 0)
718 #define _USB_GNPTXFSIZ_NPTXFINEPTXF0DEP_SHIFT 16
719 #define _USB_GNPTXFSIZ_NPTXFINEPTXF0DEP_MASK 0xFFFF0000UL
720 #define _USB_GNPTXFSIZ_NPTXFINEPTXF0DEP_DEFAULT 0x00000200UL
721 #define USB_GNPTXFSIZ_NPTXFINEPTXF0DEP_DEFAULT (_USB_GNPTXFSIZ_NPTXFINEPTXF0DEP_DEFAULT << 16)
723 /* Bit fields for USB GDFIFOCFG */
724 #define _USB_GDFIFOCFG_RESETVALUE 0x05F80600UL
725 #define _USB_GDFIFOCFG_MASK 0xFFFFFFFFUL
726 #define _USB_GDFIFOCFG_GDFIFOCFG_SHIFT 0
727 #define _USB_GDFIFOCFG_GDFIFOCFG_MASK 0xFFFFUL
728 #define _USB_GDFIFOCFG_GDFIFOCFG_DEFAULT 0x00000600UL
729 #define USB_GDFIFOCFG_GDFIFOCFG_DEFAULT (_USB_GDFIFOCFG_GDFIFOCFG_DEFAULT << 0)
730 #define _USB_GDFIFOCFG_EPINFOBASEADDR_SHIFT 16
731 #define _USB_GDFIFOCFG_EPINFOBASEADDR_MASK 0xFFFF0000UL
732 #define _USB_GDFIFOCFG_EPINFOBASEADDR_DEFAULT 0x000005F8UL
733 #define USB_GDFIFOCFG_EPINFOBASEADDR_DEFAULT (_USB_GDFIFOCFG_EPINFOBASEADDR_DEFAULT << 16)
735 /* Bit fields for USB DIEPTXF1 */
736 #define _USB_DIEPTXF1_RESETVALUE 0x02000400UL
737 #define _USB_DIEPTXF1_MASK 0x03FF07FFUL
738 #define _USB_DIEPTXF1_INEPNTXFSTADDR_SHIFT 0
739 #define _USB_DIEPTXF1_INEPNTXFSTADDR_MASK 0x7FFUL
740 #define _USB_DIEPTXF1_INEPNTXFSTADDR_DEFAULT 0x00000400UL
741 #define USB_DIEPTXF1_INEPNTXFSTADDR_DEFAULT (_USB_DIEPTXF1_INEPNTXFSTADDR_DEFAULT << 0)
742 #define _USB_DIEPTXF1_INEPNTXFDEP_SHIFT 16
743 #define _USB_DIEPTXF1_INEPNTXFDEP_MASK 0x3FF0000UL
744 #define _USB_DIEPTXF1_INEPNTXFDEP_DEFAULT 0x00000200UL
745 #define USB_DIEPTXF1_INEPNTXFDEP_DEFAULT (_USB_DIEPTXF1_INEPNTXFDEP_DEFAULT << 16)
747 /* Bit fields for USB DIEPTXF2 */
748 #define _USB_DIEPTXF2_RESETVALUE 0x02000600UL
749 #define _USB_DIEPTXF2_MASK 0x03FF07FFUL
750 #define _USB_DIEPTXF2_INEPNTXFSTADDR_SHIFT 0
751 #define _USB_DIEPTXF2_INEPNTXFSTADDR_MASK 0x7FFUL
752 #define _USB_DIEPTXF2_INEPNTXFSTADDR_DEFAULT 0x00000600UL
753 #define USB_DIEPTXF2_INEPNTXFSTADDR_DEFAULT (_USB_DIEPTXF2_INEPNTXFSTADDR_DEFAULT << 0)
754 #define _USB_DIEPTXF2_INEPNTXFDEP_SHIFT 16
755 #define _USB_DIEPTXF2_INEPNTXFDEP_MASK 0x3FF0000UL
756 #define _USB_DIEPTXF2_INEPNTXFDEP_DEFAULT 0x00000200UL
757 #define USB_DIEPTXF2_INEPNTXFDEP_DEFAULT (_USB_DIEPTXF2_INEPNTXFDEP_DEFAULT << 16)
759 /* Bit fields for USB DIEPTXF3 */
760 #define _USB_DIEPTXF3_RESETVALUE 0x02000800UL
761 #define _USB_DIEPTXF3_MASK 0x03FF0FFFUL
762 #define _USB_DIEPTXF3_INEPNTXFSTADDR_SHIFT 0
763 #define _USB_DIEPTXF3_INEPNTXFSTADDR_MASK 0xFFFUL
764 #define _USB_DIEPTXF3_INEPNTXFSTADDR_DEFAULT 0x00000800UL
765 #define USB_DIEPTXF3_INEPNTXFSTADDR_DEFAULT (_USB_DIEPTXF3_INEPNTXFSTADDR_DEFAULT << 0)
766 #define _USB_DIEPTXF3_INEPNTXFDEP_SHIFT 16
767 #define _USB_DIEPTXF3_INEPNTXFDEP_MASK 0x3FF0000UL
768 #define _USB_DIEPTXF3_INEPNTXFDEP_DEFAULT 0x00000200UL
769 #define USB_DIEPTXF3_INEPNTXFDEP_DEFAULT (_USB_DIEPTXF3_INEPNTXFDEP_DEFAULT << 16)
771 /* Bit fields for USB DCFG */
772 #define _USB_DCFG_RESETVALUE 0x08000000UL
773 #define _USB_DCFG_MASK 0xFC009FFFUL
774 #define _USB_DCFG_DEVSPD_SHIFT 0
775 #define _USB_DCFG_DEVSPD_MASK 0x3UL
776 #define _USB_DCFG_DEVSPD_DEFAULT 0x00000000UL
777 #define _USB_DCFG_DEVSPD_LS 0x00000002UL
778 #define _USB_DCFG_DEVSPD_FS 0x00000003UL
779 #define USB_DCFG_DEVSPD_DEFAULT (_USB_DCFG_DEVSPD_DEFAULT << 0)
780 #define USB_DCFG_DEVSPD_LS (_USB_DCFG_DEVSPD_LS << 0)
781 #define USB_DCFG_DEVSPD_FS (_USB_DCFG_DEVSPD_FS << 0)
782 #define USB_DCFG_NZSTSOUTHSHK (0x1UL << 2)
783 #define _USB_DCFG_NZSTSOUTHSHK_SHIFT 2
784 #define _USB_DCFG_NZSTSOUTHSHK_MASK 0x4UL
785 #define _USB_DCFG_NZSTSOUTHSHK_DEFAULT 0x00000000UL
786 #define USB_DCFG_NZSTSOUTHSHK_DEFAULT (_USB_DCFG_NZSTSOUTHSHK_DEFAULT << 2)
787 #define USB_DCFG_ENA32KHZSUSP (0x1UL << 3)
788 #define _USB_DCFG_ENA32KHZSUSP_SHIFT 3
789 #define _USB_DCFG_ENA32KHZSUSP_MASK 0x8UL
790 #define _USB_DCFG_ENA32KHZSUSP_DEFAULT 0x00000000UL
791 #define USB_DCFG_ENA32KHZSUSP_DEFAULT (_USB_DCFG_ENA32KHZSUSP_DEFAULT << 3)
792 #define _USB_DCFG_DEVADDR_SHIFT 4
793 #define _USB_DCFG_DEVADDR_MASK 0x7F0UL
794 #define _USB_DCFG_DEVADDR_DEFAULT 0x00000000UL
795 #define USB_DCFG_DEVADDR_DEFAULT (_USB_DCFG_DEVADDR_DEFAULT << 4)
796 #define _USB_DCFG_PERFRINT_SHIFT 11
797 #define _USB_DCFG_PERFRINT_MASK 0x1800UL
798 #define _USB_DCFG_PERFRINT_DEFAULT 0x00000000UL
799 #define _USB_DCFG_PERFRINT_80PCNT 0x00000000UL
800 #define _USB_DCFG_PERFRINT_85PCNT 0x00000001UL
801 #define _USB_DCFG_PERFRINT_90PCNT 0x00000002UL
802 #define _USB_DCFG_PERFRINT_95PCNT 0x00000003UL
803 #define USB_DCFG_PERFRINT_DEFAULT (_USB_DCFG_PERFRINT_DEFAULT << 11)
804 #define USB_DCFG_PERFRINT_80PCNT (_USB_DCFG_PERFRINT_80PCNT << 11)
805 #define USB_DCFG_PERFRINT_85PCNT (_USB_DCFG_PERFRINT_85PCNT << 11)
806 #define USB_DCFG_PERFRINT_90PCNT (_USB_DCFG_PERFRINT_90PCNT << 11)
807 #define USB_DCFG_PERFRINT_95PCNT (_USB_DCFG_PERFRINT_95PCNT << 11)
808 #define USB_DCFG_ERRATICINTMSK (0x1UL << 15)
809 #define _USB_DCFG_ERRATICINTMSK_SHIFT 15
810 #define _USB_DCFG_ERRATICINTMSK_MASK 0x8000UL
811 #define _USB_DCFG_ERRATICINTMSK_DEFAULT 0x00000000UL
812 #define USB_DCFG_ERRATICINTMSK_DEFAULT (_USB_DCFG_ERRATICINTMSK_DEFAULT << 15)
813 #define _USB_DCFG_RESVALID_SHIFT 26
814 #define _USB_DCFG_RESVALID_MASK 0xFC000000UL
815 #define _USB_DCFG_RESVALID_DEFAULT 0x00000002UL
816 #define USB_DCFG_RESVALID_DEFAULT (_USB_DCFG_RESVALID_DEFAULT << 26)
818 /* Bit fields for USB DCTL */
819 #define _USB_DCTL_RESETVALUE 0x00000002UL
820 #define _USB_DCTL_MASK 0x00018FFFUL
821 #define USB_DCTL_RMTWKUPSIG (0x1UL << 0)
822 #define _USB_DCTL_RMTWKUPSIG_SHIFT 0
823 #define _USB_DCTL_RMTWKUPSIG_MASK 0x1UL
824 #define _USB_DCTL_RMTWKUPSIG_DEFAULT 0x00000000UL
825 #define USB_DCTL_RMTWKUPSIG_DEFAULT (_USB_DCTL_RMTWKUPSIG_DEFAULT << 0)
826 #define USB_DCTL_SFTDISCON (0x1UL << 1)
827 #define _USB_DCTL_SFTDISCON_SHIFT 1
828 #define _USB_DCTL_SFTDISCON_MASK 0x2UL
829 #define _USB_DCTL_SFTDISCON_DEFAULT 0x00000001UL
830 #define USB_DCTL_SFTDISCON_DEFAULT (_USB_DCTL_SFTDISCON_DEFAULT << 1)
831 #define USB_DCTL_GNPINNAKSTS (0x1UL << 2)
832 #define _USB_DCTL_GNPINNAKSTS_SHIFT 2
833 #define _USB_DCTL_GNPINNAKSTS_MASK 0x4UL
834 #define _USB_DCTL_GNPINNAKSTS_DEFAULT 0x00000000UL
835 #define USB_DCTL_GNPINNAKSTS_DEFAULT (_USB_DCTL_GNPINNAKSTS_DEFAULT << 2)
836 #define USB_DCTL_GOUTNAKSTS (0x1UL << 3)
837 #define _USB_DCTL_GOUTNAKSTS_SHIFT 3
838 #define _USB_DCTL_GOUTNAKSTS_MASK 0x8UL
839 #define _USB_DCTL_GOUTNAKSTS_DEFAULT 0x00000000UL
840 #define USB_DCTL_GOUTNAKSTS_DEFAULT (_USB_DCTL_GOUTNAKSTS_DEFAULT << 3)
841 #define _USB_DCTL_TSTCTL_SHIFT 4
842 #define _USB_DCTL_TSTCTL_MASK 0x70UL
843 #define _USB_DCTL_TSTCTL_DEFAULT 0x00000000UL
844 #define _USB_DCTL_TSTCTL_DISABLE 0x00000000UL
845 #define _USB_DCTL_TSTCTL_J 0x00000001UL
846 #define _USB_DCTL_TSTCTL_K 0x00000002UL
847 #define _USB_DCTL_TSTCTL_SE0NAK 0x00000003UL
848 #define _USB_DCTL_TSTCTL_PACKET 0x00000004UL
849 #define _USB_DCTL_TSTCTL_FORCE 0x00000005UL
850 #define USB_DCTL_TSTCTL_DEFAULT (_USB_DCTL_TSTCTL_DEFAULT << 4)
851 #define USB_DCTL_TSTCTL_DISABLE (_USB_DCTL_TSTCTL_DISABLE << 4)
852 #define USB_DCTL_TSTCTL_J (_USB_DCTL_TSTCTL_J << 4)
853 #define USB_DCTL_TSTCTL_K (_USB_DCTL_TSTCTL_K << 4)
854 #define USB_DCTL_TSTCTL_SE0NAK (_USB_DCTL_TSTCTL_SE0NAK << 4)
855 #define USB_DCTL_TSTCTL_PACKET (_USB_DCTL_TSTCTL_PACKET << 4)
856 #define USB_DCTL_TSTCTL_FORCE (_USB_DCTL_TSTCTL_FORCE << 4)
857 #define USB_DCTL_SGNPINNAK (0x1UL << 7)
858 #define _USB_DCTL_SGNPINNAK_SHIFT 7
859 #define _USB_DCTL_SGNPINNAK_MASK 0x80UL
860 #define _USB_DCTL_SGNPINNAK_DEFAULT 0x00000000UL
861 #define USB_DCTL_SGNPINNAK_DEFAULT (_USB_DCTL_SGNPINNAK_DEFAULT << 7)
862 #define USB_DCTL_CGNPINNAK (0x1UL << 8)
863 #define _USB_DCTL_CGNPINNAK_SHIFT 8
864 #define _USB_DCTL_CGNPINNAK_MASK 0x100UL
865 #define _USB_DCTL_CGNPINNAK_DEFAULT 0x00000000UL
866 #define USB_DCTL_CGNPINNAK_DEFAULT (_USB_DCTL_CGNPINNAK_DEFAULT << 8)
867 #define USB_DCTL_SGOUTNAK (0x1UL << 9)
868 #define _USB_DCTL_SGOUTNAK_SHIFT 9
869 #define _USB_DCTL_SGOUTNAK_MASK 0x200UL
870 #define _USB_DCTL_SGOUTNAK_DEFAULT 0x00000000UL
871 #define USB_DCTL_SGOUTNAK_DEFAULT (_USB_DCTL_SGOUTNAK_DEFAULT << 9)
872 #define USB_DCTL_CGOUTNAK (0x1UL << 10)
873 #define _USB_DCTL_CGOUTNAK_SHIFT 10
874 #define _USB_DCTL_CGOUTNAK_MASK 0x400UL
875 #define _USB_DCTL_CGOUTNAK_DEFAULT 0x00000000UL
876 #define USB_DCTL_CGOUTNAK_DEFAULT (_USB_DCTL_CGOUTNAK_DEFAULT << 10)
877 #define USB_DCTL_PWRONPRGDONE (0x1UL << 11)
878 #define _USB_DCTL_PWRONPRGDONE_SHIFT 11
879 #define _USB_DCTL_PWRONPRGDONE_MASK 0x800UL
880 #define _USB_DCTL_PWRONPRGDONE_DEFAULT 0x00000000UL
881 #define USB_DCTL_PWRONPRGDONE_DEFAULT (_USB_DCTL_PWRONPRGDONE_DEFAULT << 11)
882 #define USB_DCTL_IGNRFRMNUM (0x1UL << 15)
883 #define _USB_DCTL_IGNRFRMNUM_SHIFT 15
884 #define _USB_DCTL_IGNRFRMNUM_MASK 0x8000UL
885 #define _USB_DCTL_IGNRFRMNUM_DEFAULT 0x00000000UL
886 #define USB_DCTL_IGNRFRMNUM_DEFAULT (_USB_DCTL_IGNRFRMNUM_DEFAULT << 15)
887 #define USB_DCTL_NAKONBBLE (0x1UL << 16)
888 #define _USB_DCTL_NAKONBBLE_SHIFT 16
889 #define _USB_DCTL_NAKONBBLE_MASK 0x10000UL
890 #define _USB_DCTL_NAKONBBLE_DEFAULT 0x00000000UL
891 #define USB_DCTL_NAKONBBLE_DEFAULT (_USB_DCTL_NAKONBBLE_DEFAULT << 16)
893 /* Bit fields for USB DSTS */
894 #define _USB_DSTS_RESETVALUE 0x00000002UL
895 #define _USB_DSTS_MASK 0x00FFFF0FUL
896 #define USB_DSTS_SUSPSTS (0x1UL << 0)
897 #define _USB_DSTS_SUSPSTS_SHIFT 0
898 #define _USB_DSTS_SUSPSTS_MASK 0x1UL
899 #define _USB_DSTS_SUSPSTS_DEFAULT 0x00000000UL
900 #define USB_DSTS_SUSPSTS_DEFAULT (_USB_DSTS_SUSPSTS_DEFAULT << 0)
901 #define _USB_DSTS_ENUMSPD_SHIFT 1
902 #define _USB_DSTS_ENUMSPD_MASK 0x6UL
903 #define _USB_DSTS_ENUMSPD_DEFAULT 0x00000001UL
904 #define _USB_DSTS_ENUMSPD_LS 0x00000002UL
905 #define _USB_DSTS_ENUMSPD_FS 0x00000003UL
906 #define USB_DSTS_ENUMSPD_DEFAULT (_USB_DSTS_ENUMSPD_DEFAULT << 1)
907 #define USB_DSTS_ENUMSPD_LS (_USB_DSTS_ENUMSPD_LS << 1)
908 #define USB_DSTS_ENUMSPD_FS (_USB_DSTS_ENUMSPD_FS << 1)
909 #define USB_DSTS_ERRTICERR (0x1UL << 3)
910 #define _USB_DSTS_ERRTICERR_SHIFT 3
911 #define _USB_DSTS_ERRTICERR_MASK 0x8UL
912 #define _USB_DSTS_ERRTICERR_DEFAULT 0x00000000UL
913 #define USB_DSTS_ERRTICERR_DEFAULT (_USB_DSTS_ERRTICERR_DEFAULT << 3)
914 #define _USB_DSTS_SOFFN_SHIFT 8
915 #define _USB_DSTS_SOFFN_MASK 0x3FFF00UL
916 #define _USB_DSTS_SOFFN_DEFAULT 0x00000000UL
917 #define USB_DSTS_SOFFN_DEFAULT (_USB_DSTS_SOFFN_DEFAULT << 8)
918 #define _USB_DSTS_DEVLNSTS_SHIFT 22
919 #define _USB_DSTS_DEVLNSTS_MASK 0xC00000UL
920 #define _USB_DSTS_DEVLNSTS_DEFAULT 0x00000000UL
921 #define USB_DSTS_DEVLNSTS_DEFAULT (_USB_DSTS_DEVLNSTS_DEFAULT << 22)
923 /* Bit fields for USB DIEPMSK */
924 #define _USB_DIEPMSK_RESETVALUE 0x00000000UL
925 #define _USB_DIEPMSK_MASK 0x0000215FUL
926 #define USB_DIEPMSK_XFERCOMPLMSK (0x1UL << 0)
927 #define _USB_DIEPMSK_XFERCOMPLMSK_SHIFT 0
928 #define _USB_DIEPMSK_XFERCOMPLMSK_MASK 0x1UL
929 #define _USB_DIEPMSK_XFERCOMPLMSK_DEFAULT 0x00000000UL
930 #define USB_DIEPMSK_XFERCOMPLMSK_DEFAULT (_USB_DIEPMSK_XFERCOMPLMSK_DEFAULT << 0)
931 #define USB_DIEPMSK_EPDISBLDMSK (0x1UL << 1)
932 #define _USB_DIEPMSK_EPDISBLDMSK_SHIFT 1
933 #define _USB_DIEPMSK_EPDISBLDMSK_MASK 0x2UL
934 #define _USB_DIEPMSK_EPDISBLDMSK_DEFAULT 0x00000000UL
935 #define USB_DIEPMSK_EPDISBLDMSK_DEFAULT (_USB_DIEPMSK_EPDISBLDMSK_DEFAULT << 1)
936 #define USB_DIEPMSK_AHBERRMSK (0x1UL << 2)
937 #define _USB_DIEPMSK_AHBERRMSK_SHIFT 2
938 #define _USB_DIEPMSK_AHBERRMSK_MASK 0x4UL
939 #define _USB_DIEPMSK_AHBERRMSK_DEFAULT 0x00000000UL
940 #define USB_DIEPMSK_AHBERRMSK_DEFAULT (_USB_DIEPMSK_AHBERRMSK_DEFAULT << 2)
941 #define USB_DIEPMSK_TIMEOUTMSK (0x1UL << 3)
942 #define _USB_DIEPMSK_TIMEOUTMSK_SHIFT 3
943 #define _USB_DIEPMSK_TIMEOUTMSK_MASK 0x8UL
944 #define _USB_DIEPMSK_TIMEOUTMSK_DEFAULT 0x00000000UL
945 #define USB_DIEPMSK_TIMEOUTMSK_DEFAULT (_USB_DIEPMSK_TIMEOUTMSK_DEFAULT << 3)
946 #define USB_DIEPMSK_INTKNTXFEMPMSK (0x1UL << 4)
947 #define _USB_DIEPMSK_INTKNTXFEMPMSK_SHIFT 4
948 #define _USB_DIEPMSK_INTKNTXFEMPMSK_MASK 0x10UL
949 #define _USB_DIEPMSK_INTKNTXFEMPMSK_DEFAULT 0x00000000UL
950 #define USB_DIEPMSK_INTKNTXFEMPMSK_DEFAULT (_USB_DIEPMSK_INTKNTXFEMPMSK_DEFAULT << 4)
951 #define USB_DIEPMSK_INEPNAKEFFMSK (0x1UL << 6)
952 #define _USB_DIEPMSK_INEPNAKEFFMSK_SHIFT 6
953 #define _USB_DIEPMSK_INEPNAKEFFMSK_MASK 0x40UL
954 #define _USB_DIEPMSK_INEPNAKEFFMSK_DEFAULT 0x00000000UL
955 #define USB_DIEPMSK_INEPNAKEFFMSK_DEFAULT (_USB_DIEPMSK_INEPNAKEFFMSK_DEFAULT << 6)
956 #define USB_DIEPMSK_TXFIFOUNDRNMSK (0x1UL << 8)
957 #define _USB_DIEPMSK_TXFIFOUNDRNMSK_SHIFT 8
958 #define _USB_DIEPMSK_TXFIFOUNDRNMSK_MASK 0x100UL
959 #define _USB_DIEPMSK_TXFIFOUNDRNMSK_DEFAULT 0x00000000UL
960 #define USB_DIEPMSK_TXFIFOUNDRNMSK_DEFAULT (_USB_DIEPMSK_TXFIFOUNDRNMSK_DEFAULT << 8)
961 #define USB_DIEPMSK_NAKMSK (0x1UL << 13)
962 #define _USB_DIEPMSK_NAKMSK_SHIFT 13
963 #define _USB_DIEPMSK_NAKMSK_MASK 0x2000UL
964 #define _USB_DIEPMSK_NAKMSK_DEFAULT 0x00000000UL
965 #define USB_DIEPMSK_NAKMSK_DEFAULT (_USB_DIEPMSK_NAKMSK_DEFAULT << 13)
967 /* Bit fields for USB DOEPMSK */
968 #define _USB_DOEPMSK_RESETVALUE 0x00000000UL
969 #define _USB_DOEPMSK_MASK 0x0000317FUL
970 #define USB_DOEPMSK_XFERCOMPLMSK (0x1UL << 0)
971 #define _USB_DOEPMSK_XFERCOMPLMSK_SHIFT 0
972 #define _USB_DOEPMSK_XFERCOMPLMSK_MASK 0x1UL
973 #define _USB_DOEPMSK_XFERCOMPLMSK_DEFAULT 0x00000000UL
974 #define USB_DOEPMSK_XFERCOMPLMSK_DEFAULT (_USB_DOEPMSK_XFERCOMPLMSK_DEFAULT << 0)
975 #define USB_DOEPMSK_EPDISBLDMSK (0x1UL << 1)
976 #define _USB_DOEPMSK_EPDISBLDMSK_SHIFT 1
977 #define _USB_DOEPMSK_EPDISBLDMSK_MASK 0x2UL
978 #define _USB_DOEPMSK_EPDISBLDMSK_DEFAULT 0x00000000UL
979 #define USB_DOEPMSK_EPDISBLDMSK_DEFAULT (_USB_DOEPMSK_EPDISBLDMSK_DEFAULT << 1)
980 #define USB_DOEPMSK_AHBERRMSK (0x1UL << 2)
981 #define _USB_DOEPMSK_AHBERRMSK_SHIFT 2
982 #define _USB_DOEPMSK_AHBERRMSK_MASK 0x4UL
983 #define _USB_DOEPMSK_AHBERRMSK_DEFAULT 0x00000000UL
984 #define USB_DOEPMSK_AHBERRMSK_DEFAULT (_USB_DOEPMSK_AHBERRMSK_DEFAULT << 2)
985 #define USB_DOEPMSK_SETUPMSK (0x1UL << 3)
986 #define _USB_DOEPMSK_SETUPMSK_SHIFT 3
987 #define _USB_DOEPMSK_SETUPMSK_MASK 0x8UL
988 #define _USB_DOEPMSK_SETUPMSK_DEFAULT 0x00000000UL
989 #define USB_DOEPMSK_SETUPMSK_DEFAULT (_USB_DOEPMSK_SETUPMSK_DEFAULT << 3)
990 #define USB_DOEPMSK_OUTTKNEPDISMSK (0x1UL << 4)
991 #define _USB_DOEPMSK_OUTTKNEPDISMSK_SHIFT 4
992 #define _USB_DOEPMSK_OUTTKNEPDISMSK_MASK 0x10UL
993 #define _USB_DOEPMSK_OUTTKNEPDISMSK_DEFAULT 0x00000000UL
994 #define USB_DOEPMSK_OUTTKNEPDISMSK_DEFAULT (_USB_DOEPMSK_OUTTKNEPDISMSK_DEFAULT << 4)
995 #define USB_DOEPMSK_STSPHSERCVDMSK (0x1UL << 5)
996 #define _USB_DOEPMSK_STSPHSERCVDMSK_SHIFT 5
997 #define _USB_DOEPMSK_STSPHSERCVDMSK_MASK 0x20UL
998 #define _USB_DOEPMSK_STSPHSERCVDMSK_DEFAULT 0x00000000UL
999 #define USB_DOEPMSK_STSPHSERCVDMSK_DEFAULT (_USB_DOEPMSK_STSPHSERCVDMSK_DEFAULT << 5)
1000 #define USB_DOEPMSK_BACK2BACKSETUP (0x1UL << 6)
1001 #define _USB_DOEPMSK_BACK2BACKSETUP_SHIFT 6
1002 #define _USB_DOEPMSK_BACK2BACKSETUP_MASK 0x40UL
1003 #define _USB_DOEPMSK_BACK2BACKSETUP_DEFAULT 0x00000000UL
1004 #define USB_DOEPMSK_BACK2BACKSETUP_DEFAULT (_USB_DOEPMSK_BACK2BACKSETUP_DEFAULT << 6)
1005 #define USB_DOEPMSK_OUTPKTERRMSK (0x1UL << 8)
1006 #define _USB_DOEPMSK_OUTPKTERRMSK_SHIFT 8
1007 #define _USB_DOEPMSK_OUTPKTERRMSK_MASK 0x100UL
1008 #define _USB_DOEPMSK_OUTPKTERRMSK_DEFAULT 0x00000000UL
1009 #define USB_DOEPMSK_OUTPKTERRMSK_DEFAULT (_USB_DOEPMSK_OUTPKTERRMSK_DEFAULT << 8)
1010 #define USB_DOEPMSK_BBLEERRMSK (0x1UL << 12)
1011 #define _USB_DOEPMSK_BBLEERRMSK_SHIFT 12
1012 #define _USB_DOEPMSK_BBLEERRMSK_MASK 0x1000UL
1013 #define _USB_DOEPMSK_BBLEERRMSK_DEFAULT 0x00000000UL
1014 #define USB_DOEPMSK_BBLEERRMSK_DEFAULT (_USB_DOEPMSK_BBLEERRMSK_DEFAULT << 12)
1015 #define USB_DOEPMSK_NAKMSK (0x1UL << 13)
1016 #define _USB_DOEPMSK_NAKMSK_SHIFT 13
1017 #define _USB_DOEPMSK_NAKMSK_MASK 0x2000UL
1018 #define _USB_DOEPMSK_NAKMSK_DEFAULT 0x00000000UL
1019 #define USB_DOEPMSK_NAKMSK_DEFAULT (_USB_DOEPMSK_NAKMSK_DEFAULT << 13)
1021 /* Bit fields for USB DAINT */
1022 #define _USB_DAINT_RESETVALUE 0x00000000UL
1023 #define _USB_DAINT_MASK 0x000F000FUL
1024 #define USB_DAINT_INEPINT0 (0x1UL << 0)
1025 #define _USB_DAINT_INEPINT0_SHIFT 0
1026 #define _USB_DAINT_INEPINT0_MASK 0x1UL
1027 #define _USB_DAINT_INEPINT0_DEFAULT 0x00000000UL
1028 #define USB_DAINT_INEPINT0_DEFAULT (_USB_DAINT_INEPINT0_DEFAULT << 0)
1029 #define USB_DAINT_INEPINT1 (0x1UL << 1)
1030 #define _USB_DAINT_INEPINT1_SHIFT 1
1031 #define _USB_DAINT_INEPINT1_MASK 0x2UL
1032 #define _USB_DAINT_INEPINT1_DEFAULT 0x00000000UL
1033 #define USB_DAINT_INEPINT1_DEFAULT (_USB_DAINT_INEPINT1_DEFAULT << 1)
1034 #define USB_DAINT_INEPINT2 (0x1UL << 2)
1035 #define _USB_DAINT_INEPINT2_SHIFT 2
1036 #define _USB_DAINT_INEPINT2_MASK 0x4UL
1037 #define _USB_DAINT_INEPINT2_DEFAULT 0x00000000UL
1038 #define USB_DAINT_INEPINT2_DEFAULT (_USB_DAINT_INEPINT2_DEFAULT << 2)
1039 #define USB_DAINT_INEPINT3 (0x1UL << 3)
1040 #define _USB_DAINT_INEPINT3_SHIFT 3
1041 #define _USB_DAINT_INEPINT3_MASK 0x8UL
1042 #define _USB_DAINT_INEPINT3_DEFAULT 0x00000000UL
1043 #define USB_DAINT_INEPINT3_DEFAULT (_USB_DAINT_INEPINT3_DEFAULT << 3)
1044 #define USB_DAINT_OUTEPINT0 (0x1UL << 16)
1045 #define _USB_DAINT_OUTEPINT0_SHIFT 16
1046 #define _USB_DAINT_OUTEPINT0_MASK 0x10000UL
1047 #define _USB_DAINT_OUTEPINT0_DEFAULT 0x00000000UL
1048 #define USB_DAINT_OUTEPINT0_DEFAULT (_USB_DAINT_OUTEPINT0_DEFAULT << 16)
1049 #define USB_DAINT_OUTEPINT1 (0x1UL << 17)
1050 #define _USB_DAINT_OUTEPINT1_SHIFT 17
1051 #define _USB_DAINT_OUTEPINT1_MASK 0x20000UL
1052 #define _USB_DAINT_OUTEPINT1_DEFAULT 0x00000000UL
1053 #define USB_DAINT_OUTEPINT1_DEFAULT (_USB_DAINT_OUTEPINT1_DEFAULT << 17)
1054 #define USB_DAINT_OUTEPINT2 (0x1UL << 18)
1055 #define _USB_DAINT_OUTEPINT2_SHIFT 18
1056 #define _USB_DAINT_OUTEPINT2_MASK 0x40000UL
1057 #define _USB_DAINT_OUTEPINT2_DEFAULT 0x00000000UL
1058 #define USB_DAINT_OUTEPINT2_DEFAULT (_USB_DAINT_OUTEPINT2_DEFAULT << 18)
1059 #define USB_DAINT_OUTEPINT3 (0x1UL << 19)
1060 #define _USB_DAINT_OUTEPINT3_SHIFT 19
1061 #define _USB_DAINT_OUTEPINT3_MASK 0x80000UL
1062 #define _USB_DAINT_OUTEPINT3_DEFAULT 0x00000000UL
1063 #define USB_DAINT_OUTEPINT3_DEFAULT (_USB_DAINT_OUTEPINT3_DEFAULT << 19)
1065 /* Bit fields for USB DAINTMSK */
1066 #define _USB_DAINTMSK_RESETVALUE 0x00000000UL
1067 #define _USB_DAINTMSK_MASK 0x000F000FUL
1068 #define USB_DAINTMSK_INEPMSK0 (0x1UL << 0)
1069 #define _USB_DAINTMSK_INEPMSK0_SHIFT 0
1070 #define _USB_DAINTMSK_INEPMSK0_MASK 0x1UL
1071 #define _USB_DAINTMSK_INEPMSK0_DEFAULT 0x00000000UL
1072 #define USB_DAINTMSK_INEPMSK0_DEFAULT (_USB_DAINTMSK_INEPMSK0_DEFAULT << 0)
1073 #define USB_DAINTMSK_INEPMSK1 (0x1UL << 1)
1074 #define _USB_DAINTMSK_INEPMSK1_SHIFT 1
1075 #define _USB_DAINTMSK_INEPMSK1_MASK 0x2UL
1076 #define _USB_DAINTMSK_INEPMSK1_DEFAULT 0x00000000UL
1077 #define USB_DAINTMSK_INEPMSK1_DEFAULT (_USB_DAINTMSK_INEPMSK1_DEFAULT << 1)
1078 #define USB_DAINTMSK_INEPMSK2 (0x1UL << 2)
1079 #define _USB_DAINTMSK_INEPMSK2_SHIFT 2
1080 #define _USB_DAINTMSK_INEPMSK2_MASK 0x4UL
1081 #define _USB_DAINTMSK_INEPMSK2_DEFAULT 0x00000000UL
1082 #define USB_DAINTMSK_INEPMSK2_DEFAULT (_USB_DAINTMSK_INEPMSK2_DEFAULT << 2)
1083 #define USB_DAINTMSK_INEPMSK3 (0x1UL << 3)
1084 #define _USB_DAINTMSK_INEPMSK3_SHIFT 3
1085 #define _USB_DAINTMSK_INEPMSK3_MASK 0x8UL
1086 #define _USB_DAINTMSK_INEPMSK3_DEFAULT 0x00000000UL
1087 #define USB_DAINTMSK_INEPMSK3_DEFAULT (_USB_DAINTMSK_INEPMSK3_DEFAULT << 3)
1088 #define USB_DAINTMSK_OUTEPMSK0 (0x1UL << 16)
1089 #define _USB_DAINTMSK_OUTEPMSK0_SHIFT 16
1090 #define _USB_DAINTMSK_OUTEPMSK0_MASK 0x10000UL
1091 #define _USB_DAINTMSK_OUTEPMSK0_DEFAULT 0x00000000UL
1092 #define USB_DAINTMSK_OUTEPMSK0_DEFAULT (_USB_DAINTMSK_OUTEPMSK0_DEFAULT << 16)
1093 #define USB_DAINTMSK_OUTEPMSK1 (0x1UL << 17)
1094 #define _USB_DAINTMSK_OUTEPMSK1_SHIFT 17
1095 #define _USB_DAINTMSK_OUTEPMSK1_MASK 0x20000UL
1096 #define _USB_DAINTMSK_OUTEPMSK1_DEFAULT 0x00000000UL
1097 #define USB_DAINTMSK_OUTEPMSK1_DEFAULT (_USB_DAINTMSK_OUTEPMSK1_DEFAULT << 17)
1098 #define USB_DAINTMSK_OUTEPMSK2 (0x1UL << 18)
1099 #define _USB_DAINTMSK_OUTEPMSK2_SHIFT 18
1100 #define _USB_DAINTMSK_OUTEPMSK2_MASK 0x40000UL
1101 #define _USB_DAINTMSK_OUTEPMSK2_DEFAULT 0x00000000UL
1102 #define USB_DAINTMSK_OUTEPMSK2_DEFAULT (_USB_DAINTMSK_OUTEPMSK2_DEFAULT << 18)
1103 #define USB_DAINTMSK_OUTEPMSK3 (0x1UL << 19)
1104 #define _USB_DAINTMSK_OUTEPMSK3_SHIFT 19
1105 #define _USB_DAINTMSK_OUTEPMSK3_MASK 0x80000UL
1106 #define _USB_DAINTMSK_OUTEPMSK3_DEFAULT 0x00000000UL
1107 #define USB_DAINTMSK_OUTEPMSK3_DEFAULT (_USB_DAINTMSK_OUTEPMSK3_DEFAULT << 19)
1109 /* Bit fields for USB DIEPEMPMSK */
1110 #define _USB_DIEPEMPMSK_RESETVALUE 0x00000000UL
1111 #define _USB_DIEPEMPMSK_MASK 0x0000FFFFUL
1112 #define _USB_DIEPEMPMSK_DIEPEMPMSK_SHIFT 0
1113 #define _USB_DIEPEMPMSK_DIEPEMPMSK_MASK 0xFFFFUL
1114 #define _USB_DIEPEMPMSK_DIEPEMPMSK_DEFAULT 0x00000000UL
1115 #define USB_DIEPEMPMSK_DIEPEMPMSK_DEFAULT (_USB_DIEPEMPMSK_DIEPEMPMSK_DEFAULT << 0)
1117 /* Bit fields for USB DIEP0CTL */
1118 #define _USB_DIEP0CTL_RESETVALUE 0x00008000UL
1119 #define _USB_DIEP0CTL_MASK 0xCFEE8003UL
1120 #define _USB_DIEP0CTL_MPS_SHIFT 0
1121 #define _USB_DIEP0CTL_MPS_MASK 0x3UL
1122 #define _USB_DIEP0CTL_MPS_DEFAULT 0x00000000UL
1123 #define _USB_DIEP0CTL_MPS_64B 0x00000000UL
1124 #define _USB_DIEP0CTL_MPS_32B 0x00000001UL
1125 #define _USB_DIEP0CTL_MPS_16B 0x00000002UL
1126 #define _USB_DIEP0CTL_MPS_8B 0x00000003UL
1127 #define USB_DIEP0CTL_MPS_DEFAULT (_USB_DIEP0CTL_MPS_DEFAULT << 0)
1128 #define USB_DIEP0CTL_MPS_64B (_USB_DIEP0CTL_MPS_64B << 0)
1129 #define USB_DIEP0CTL_MPS_32B (_USB_DIEP0CTL_MPS_32B << 0)
1130 #define USB_DIEP0CTL_MPS_16B (_USB_DIEP0CTL_MPS_16B << 0)
1131 #define USB_DIEP0CTL_MPS_8B (_USB_DIEP0CTL_MPS_8B << 0)
1132 #define USB_DIEP0CTL_USBACTEP (0x1UL << 15)
1133 #define _USB_DIEP0CTL_USBACTEP_SHIFT 15
1134 #define _USB_DIEP0CTL_USBACTEP_MASK 0x8000UL
1135 #define _USB_DIEP0CTL_USBACTEP_DEFAULT 0x00000001UL
1136 #define USB_DIEP0CTL_USBACTEP_DEFAULT (_USB_DIEP0CTL_USBACTEP_DEFAULT << 15)
1137 #define USB_DIEP0CTL_NAKSTS (0x1UL << 17)
1138 #define _USB_DIEP0CTL_NAKSTS_SHIFT 17
1139 #define _USB_DIEP0CTL_NAKSTS_MASK 0x20000UL
1140 #define _USB_DIEP0CTL_NAKSTS_DEFAULT 0x00000000UL
1141 #define USB_DIEP0CTL_NAKSTS_DEFAULT (_USB_DIEP0CTL_NAKSTS_DEFAULT << 17)
1142 #define _USB_DIEP0CTL_EPTYPE_SHIFT 18
1143 #define _USB_DIEP0CTL_EPTYPE_MASK 0xC0000UL
1144 #define _USB_DIEP0CTL_EPTYPE_DEFAULT 0x00000000UL
1145 #define USB_DIEP0CTL_EPTYPE_DEFAULT (_USB_DIEP0CTL_EPTYPE_DEFAULT << 18)
1146 #define USB_DIEP0CTL_STALL (0x1UL << 21)
1147 #define _USB_DIEP0CTL_STALL_SHIFT 21
1148 #define _USB_DIEP0CTL_STALL_MASK 0x200000UL
1149 #define _USB_DIEP0CTL_STALL_DEFAULT 0x00000000UL
1150 #define USB_DIEP0CTL_STALL_DEFAULT (_USB_DIEP0CTL_STALL_DEFAULT << 21)
1151 #define _USB_DIEP0CTL_TXFNUM_SHIFT 22
1152 #define _USB_DIEP0CTL_TXFNUM_MASK 0x3C00000UL
1153 #define _USB_DIEP0CTL_TXFNUM_DEFAULT 0x00000000UL
1154 #define USB_DIEP0CTL_TXFNUM_DEFAULT (_USB_DIEP0CTL_TXFNUM_DEFAULT << 22)
1155 #define USB_DIEP0CTL_CNAK (0x1UL << 26)
1156 #define _USB_DIEP0CTL_CNAK_SHIFT 26
1157 #define _USB_DIEP0CTL_CNAK_MASK 0x4000000UL
1158 #define _USB_DIEP0CTL_CNAK_DEFAULT 0x00000000UL
1159 #define USB_DIEP0CTL_CNAK_DEFAULT (_USB_DIEP0CTL_CNAK_DEFAULT << 26)
1160 #define USB_DIEP0CTL_SNAK (0x1UL << 27)
1161 #define _USB_DIEP0CTL_SNAK_SHIFT 27
1162 #define _USB_DIEP0CTL_SNAK_MASK 0x8000000UL
1163 #define _USB_DIEP0CTL_SNAK_DEFAULT 0x00000000UL
1164 #define USB_DIEP0CTL_SNAK_DEFAULT (_USB_DIEP0CTL_SNAK_DEFAULT << 27)
1165 #define USB_DIEP0CTL_EPDIS (0x1UL << 30)
1166 #define _USB_DIEP0CTL_EPDIS_SHIFT 30
1167 #define _USB_DIEP0CTL_EPDIS_MASK 0x40000000UL
1168 #define _USB_DIEP0CTL_EPDIS_DEFAULT 0x00000000UL
1169 #define USB_DIEP0CTL_EPDIS_DEFAULT (_USB_DIEP0CTL_EPDIS_DEFAULT << 30)
1170 #define USB_DIEP0CTL_EPENA (0x1UL << 31)
1171 #define _USB_DIEP0CTL_EPENA_SHIFT 31
1172 #define _USB_DIEP0CTL_EPENA_MASK 0x80000000UL
1173 #define _USB_DIEP0CTL_EPENA_DEFAULT 0x00000000UL
1174 #define USB_DIEP0CTL_EPENA_DEFAULT (_USB_DIEP0CTL_EPENA_DEFAULT << 31)
1176 /* Bit fields for USB DIEP0INT */
1177 #define _USB_DIEP0INT_RESETVALUE 0x00000080UL
1178 #define _USB_DIEP0INT_MASK 0x000038DFUL
1179 #define USB_DIEP0INT_XFERCOMPL (0x1UL << 0)
1180 #define _USB_DIEP0INT_XFERCOMPL_SHIFT 0
1181 #define _USB_DIEP0INT_XFERCOMPL_MASK 0x1UL
1182 #define _USB_DIEP0INT_XFERCOMPL_DEFAULT 0x00000000UL
1183 #define USB_DIEP0INT_XFERCOMPL_DEFAULT (_USB_DIEP0INT_XFERCOMPL_DEFAULT << 0)
1184 #define USB_DIEP0INT_EPDISBLD (0x1UL << 1)
1185 #define _USB_DIEP0INT_EPDISBLD_SHIFT 1
1186 #define _USB_DIEP0INT_EPDISBLD_MASK 0x2UL
1187 #define _USB_DIEP0INT_EPDISBLD_DEFAULT 0x00000000UL
1188 #define USB_DIEP0INT_EPDISBLD_DEFAULT (_USB_DIEP0INT_EPDISBLD_DEFAULT << 1)
1189 #define USB_DIEP0INT_AHBERR (0x1UL << 2)
1190 #define _USB_DIEP0INT_AHBERR_SHIFT 2
1191 #define _USB_DIEP0INT_AHBERR_MASK 0x4UL
1192 #define _USB_DIEP0INT_AHBERR_DEFAULT 0x00000000UL
1193 #define USB_DIEP0INT_AHBERR_DEFAULT (_USB_DIEP0INT_AHBERR_DEFAULT << 2)
1194 #define USB_DIEP0INT_TIMEOUT (0x1UL << 3)
1195 #define _USB_DIEP0INT_TIMEOUT_SHIFT 3
1196 #define _USB_DIEP0INT_TIMEOUT_MASK 0x8UL
1197 #define _USB_DIEP0INT_TIMEOUT_DEFAULT 0x00000000UL
1198 #define USB_DIEP0INT_TIMEOUT_DEFAULT (_USB_DIEP0INT_TIMEOUT_DEFAULT << 3)
1199 #define USB_DIEP0INT_INTKNTXFEMP (0x1UL << 4)
1200 #define _USB_DIEP0INT_INTKNTXFEMP_SHIFT 4
1201 #define _USB_DIEP0INT_INTKNTXFEMP_MASK 0x10UL
1202 #define _USB_DIEP0INT_INTKNTXFEMP_DEFAULT 0x00000000UL
1203 #define USB_DIEP0INT_INTKNTXFEMP_DEFAULT (_USB_DIEP0INT_INTKNTXFEMP_DEFAULT << 4)
1204 #define USB_DIEP0INT_INEPNAKEFF (0x1UL << 6)
1205 #define _USB_DIEP0INT_INEPNAKEFF_SHIFT 6
1206 #define _USB_DIEP0INT_INEPNAKEFF_MASK 0x40UL
1207 #define _USB_DIEP0INT_INEPNAKEFF_DEFAULT 0x00000000UL
1208 #define USB_DIEP0INT_INEPNAKEFF_DEFAULT (_USB_DIEP0INT_INEPNAKEFF_DEFAULT << 6)
1209 #define USB_DIEP0INT_TXFEMP (0x1UL << 7)
1210 #define _USB_DIEP0INT_TXFEMP_SHIFT 7
1211 #define _USB_DIEP0INT_TXFEMP_MASK 0x80UL
1212 #define _USB_DIEP0INT_TXFEMP_DEFAULT 0x00000001UL
1213 #define USB_DIEP0INT_TXFEMP_DEFAULT (_USB_DIEP0INT_TXFEMP_DEFAULT << 7)
1214 #define USB_DIEP0INT_PKTDRPSTS (0x1UL << 11)
1215 #define _USB_DIEP0INT_PKTDRPSTS_SHIFT 11
1216 #define _USB_DIEP0INT_PKTDRPSTS_MASK 0x800UL
1217 #define _USB_DIEP0INT_PKTDRPSTS_DEFAULT 0x00000000UL
1218 #define USB_DIEP0INT_PKTDRPSTS_DEFAULT (_USB_DIEP0INT_PKTDRPSTS_DEFAULT << 11)
1219 #define USB_DIEP0INT_BBLEERR (0x1UL << 12)
1220 #define _USB_DIEP0INT_BBLEERR_SHIFT 12
1221 #define _USB_DIEP0INT_BBLEERR_MASK 0x1000UL
1222 #define _USB_DIEP0INT_BBLEERR_DEFAULT 0x00000000UL
1223 #define USB_DIEP0INT_BBLEERR_DEFAULT (_USB_DIEP0INT_BBLEERR_DEFAULT << 12)
1224 #define USB_DIEP0INT_NAKINTRPT (0x1UL << 13)
1225 #define _USB_DIEP0INT_NAKINTRPT_SHIFT 13
1226 #define _USB_DIEP0INT_NAKINTRPT_MASK 0x2000UL
1227 #define _USB_DIEP0INT_NAKINTRPT_DEFAULT 0x00000000UL
1228 #define USB_DIEP0INT_NAKINTRPT_DEFAULT (_USB_DIEP0INT_NAKINTRPT_DEFAULT << 13)
1230 /* Bit fields for USB DIEP0TSIZ */
1231 #define _USB_DIEP0TSIZ_RESETVALUE 0x00000000UL
1232 #define _USB_DIEP0TSIZ_MASK 0x0018007FUL
1233 #define _USB_DIEP0TSIZ_XFERSIZE_SHIFT 0
1234 #define _USB_DIEP0TSIZ_XFERSIZE_MASK 0x7FUL
1235 #define _USB_DIEP0TSIZ_XFERSIZE_DEFAULT 0x00000000UL
1236 #define USB_DIEP0TSIZ_XFERSIZE_DEFAULT (_USB_DIEP0TSIZ_XFERSIZE_DEFAULT << 0)
1237 #define _USB_DIEP0TSIZ_PKTCNT_SHIFT 19
1238 #define _USB_DIEP0TSIZ_PKTCNT_MASK 0x180000UL
1239 #define _USB_DIEP0TSIZ_PKTCNT_DEFAULT 0x00000000UL
1240 #define USB_DIEP0TSIZ_PKTCNT_DEFAULT (_USB_DIEP0TSIZ_PKTCNT_DEFAULT << 19)
1242 /* Bit fields for USB DIEP0DMAADDR */
1243 #define _USB_DIEP0DMAADDR_RESETVALUE 0x00000000UL
1244 #define _USB_DIEP0DMAADDR_MASK 0xFFFFFFFFUL
1245 #define _USB_DIEP0DMAADDR_DIEP0DMAADDR_SHIFT 0
1246 #define _USB_DIEP0DMAADDR_DIEP0DMAADDR_MASK 0xFFFFFFFFUL
1247 #define _USB_DIEP0DMAADDR_DIEP0DMAADDR_DEFAULT 0x00000000UL
1248 #define USB_DIEP0DMAADDR_DIEP0DMAADDR_DEFAULT (_USB_DIEP0DMAADDR_DIEP0DMAADDR_DEFAULT << 0)
1250 /* Bit fields for USB DIEP0TXFSTS */
1251 #define _USB_DIEP0TXFSTS_RESETVALUE 0x00000200UL
1252 #define _USB_DIEP0TXFSTS_MASK 0x0000FFFFUL
1253 #define _USB_DIEP0TXFSTS_SPCAVAIL_SHIFT 0
1254 #define _USB_DIEP0TXFSTS_SPCAVAIL_MASK 0xFFFFUL
1255 #define _USB_DIEP0TXFSTS_SPCAVAIL_DEFAULT 0x00000200UL
1256 #define USB_DIEP0TXFSTS_SPCAVAIL_DEFAULT (_USB_DIEP0TXFSTS_SPCAVAIL_DEFAULT << 0)
1258 /* Bit fields for USB DIEP_CTL */
1259 #define _USB_DIEP_CTL_RESETVALUE 0x00000000UL
1260 #define _USB_DIEP_CTL_MASK 0xFFEF87FFUL
1261 #define _USB_DIEP_CTL_MPS_SHIFT 0
1262 #define _USB_DIEP_CTL_MPS_MASK 0x7FFUL
1263 #define _USB_DIEP_CTL_MPS_DEFAULT 0x00000000UL
1264 #define USB_DIEP_CTL_MPS_DEFAULT (_USB_DIEP_CTL_MPS_DEFAULT << 0)
1265 #define USB_DIEP_CTL_USBACTEP (0x1UL << 15)
1266 #define _USB_DIEP_CTL_USBACTEP_SHIFT 15
1267 #define _USB_DIEP_CTL_USBACTEP_MASK 0x8000UL
1268 #define _USB_DIEP_CTL_USBACTEP_DEFAULT 0x00000000UL
1269 #define USB_DIEP_CTL_USBACTEP_DEFAULT (_USB_DIEP_CTL_USBACTEP_DEFAULT << 15)
1270 #define USB_DIEP_CTL_DPIDEOF (0x1UL << 16)
1271 #define _USB_DIEP_CTL_DPIDEOF_SHIFT 16
1272 #define _USB_DIEP_CTL_DPIDEOF_MASK 0x10000UL
1273 #define _USB_DIEP_CTL_DPIDEOF_DEFAULT 0x00000000UL
1274 #define _USB_DIEP_CTL_DPIDEOF_DATA0EVEN 0x00000000UL
1275 #define _USB_DIEP_CTL_DPIDEOF_DATA1ODD 0x00000001UL
1276 #define USB_DIEP_CTL_DPIDEOF_DEFAULT (_USB_DIEP_CTL_DPIDEOF_DEFAULT << 16)
1277 #define USB_DIEP_CTL_DPIDEOF_DATA0EVEN (_USB_DIEP_CTL_DPIDEOF_DATA0EVEN << 16)
1278 #define USB_DIEP_CTL_DPIDEOF_DATA1ODD (_USB_DIEP_CTL_DPIDEOF_DATA1ODD << 16)
1279 #define USB_DIEP_CTL_NAKSTS (0x1UL << 17)
1280 #define _USB_DIEP_CTL_NAKSTS_SHIFT 17
1281 #define _USB_DIEP_CTL_NAKSTS_MASK 0x20000UL
1282 #define _USB_DIEP_CTL_NAKSTS_DEFAULT 0x00000000UL
1283 #define USB_DIEP_CTL_NAKSTS_DEFAULT (_USB_DIEP_CTL_NAKSTS_DEFAULT << 17)
1284 #define _USB_DIEP_CTL_EPTYPE_SHIFT 18
1285 #define _USB_DIEP_CTL_EPTYPE_MASK 0xC0000UL
1286 #define _USB_DIEP_CTL_EPTYPE_DEFAULT 0x00000000UL
1287 #define _USB_DIEP_CTL_EPTYPE_CONTROL 0x00000000UL
1288 #define _USB_DIEP_CTL_EPTYPE_ISO 0x00000001UL
1289 #define _USB_DIEP_CTL_EPTYPE_BULK 0x00000002UL
1290 #define _USB_DIEP_CTL_EPTYPE_INT 0x00000003UL
1291 #define USB_DIEP_CTL_EPTYPE_DEFAULT (_USB_DIEP_CTL_EPTYPE_DEFAULT << 18)
1292 #define USB_DIEP_CTL_EPTYPE_CONTROL (_USB_DIEP_CTL_EPTYPE_CONTROL << 18)
1293 #define USB_DIEP_CTL_EPTYPE_ISO (_USB_DIEP_CTL_EPTYPE_ISO << 18)
1294 #define USB_DIEP_CTL_EPTYPE_BULK (_USB_DIEP_CTL_EPTYPE_BULK << 18)
1295 #define USB_DIEP_CTL_EPTYPE_INT (_USB_DIEP_CTL_EPTYPE_INT << 18)
1296 #define USB_DIEP_CTL_STALL (0x1UL << 21)
1297 #define _USB_DIEP_CTL_STALL_SHIFT 21
1298 #define _USB_DIEP_CTL_STALL_MASK 0x200000UL
1299 #define _USB_DIEP_CTL_STALL_DEFAULT 0x00000000UL
1300 #define USB_DIEP_CTL_STALL_DEFAULT (_USB_DIEP_CTL_STALL_DEFAULT << 21)
1301 #define _USB_DIEP_CTL_TXFNUM_SHIFT 22
1302 #define _USB_DIEP_CTL_TXFNUM_MASK 0x3C00000UL
1303 #define _USB_DIEP_CTL_TXFNUM_DEFAULT 0x00000000UL
1304 #define USB_DIEP_CTL_TXFNUM_DEFAULT (_USB_DIEP_CTL_TXFNUM_DEFAULT << 22)
1305 #define USB_DIEP_CTL_CNAK (0x1UL << 26)
1306 #define _USB_DIEP_CTL_CNAK_SHIFT 26
1307 #define _USB_DIEP_CTL_CNAK_MASK 0x4000000UL
1308 #define _USB_DIEP_CTL_CNAK_DEFAULT 0x00000000UL
1309 #define USB_DIEP_CTL_CNAK_DEFAULT (_USB_DIEP_CTL_CNAK_DEFAULT << 26)
1310 #define USB_DIEP_CTL_SNAK (0x1UL << 27)
1311 #define _USB_DIEP_CTL_SNAK_SHIFT 27
1312 #define _USB_DIEP_CTL_SNAK_MASK 0x8000000UL
1313 #define _USB_DIEP_CTL_SNAK_DEFAULT 0x00000000UL
1314 #define USB_DIEP_CTL_SNAK_DEFAULT (_USB_DIEP_CTL_SNAK_DEFAULT << 27)
1315 #define USB_DIEP_CTL_SETD0PIDEF (0x1UL << 28)
1316 #define _USB_DIEP_CTL_SETD0PIDEF_SHIFT 28
1317 #define _USB_DIEP_CTL_SETD0PIDEF_MASK 0x10000000UL
1318 #define _USB_DIEP_CTL_SETD0PIDEF_DEFAULT 0x00000000UL
1319 #define USB_DIEP_CTL_SETD0PIDEF_DEFAULT (_USB_DIEP_CTL_SETD0PIDEF_DEFAULT << 28)
1320 #define USB_DIEP_CTL_SETD1PIDOF (0x1UL << 29)
1321 #define _USB_DIEP_CTL_SETD1PIDOF_SHIFT 29
1322 #define _USB_DIEP_CTL_SETD1PIDOF_MASK 0x20000000UL
1323 #define _USB_DIEP_CTL_SETD1PIDOF_DEFAULT 0x00000000UL
1324 #define USB_DIEP_CTL_SETD1PIDOF_DEFAULT (_USB_DIEP_CTL_SETD1PIDOF_DEFAULT << 29)
1325 #define USB_DIEP_CTL_EPDIS (0x1UL << 30)
1326 #define _USB_DIEP_CTL_EPDIS_SHIFT 30
1327 #define _USB_DIEP_CTL_EPDIS_MASK 0x40000000UL
1328 #define _USB_DIEP_CTL_EPDIS_DEFAULT 0x00000000UL
1329 #define USB_DIEP_CTL_EPDIS_DEFAULT (_USB_DIEP_CTL_EPDIS_DEFAULT << 30)
1330 #define USB_DIEP_CTL_EPENA (0x1UL << 31)
1331 #define _USB_DIEP_CTL_EPENA_SHIFT 31
1332 #define _USB_DIEP_CTL_EPENA_MASK 0x80000000UL
1333 #define _USB_DIEP_CTL_EPENA_DEFAULT 0x00000000UL
1334 #define USB_DIEP_CTL_EPENA_DEFAULT (_USB_DIEP_CTL_EPENA_DEFAULT << 31)
1336 /* Bit fields for USB DIEP_INT */
1337 #define _USB_DIEP_INT_RESETVALUE 0x00000080UL
1338 #define _USB_DIEP_INT_MASK 0x000038DFUL
1339 #define USB_DIEP_INT_XFERCOMPL (0x1UL << 0)
1340 #define _USB_DIEP_INT_XFERCOMPL_SHIFT 0
1341 #define _USB_DIEP_INT_XFERCOMPL_MASK 0x1UL
1342 #define _USB_DIEP_INT_XFERCOMPL_DEFAULT 0x00000000UL
1343 #define USB_DIEP_INT_XFERCOMPL_DEFAULT (_USB_DIEP_INT_XFERCOMPL_DEFAULT << 0)
1344 #define USB_DIEP_INT_EPDISBLD (0x1UL << 1)
1345 #define _USB_DIEP_INT_EPDISBLD_SHIFT 1
1346 #define _USB_DIEP_INT_EPDISBLD_MASK 0x2UL
1347 #define _USB_DIEP_INT_EPDISBLD_DEFAULT 0x00000000UL
1348 #define USB_DIEP_INT_EPDISBLD_DEFAULT (_USB_DIEP_INT_EPDISBLD_DEFAULT << 1)
1349 #define USB_DIEP_INT_AHBERR (0x1UL << 2)
1350 #define _USB_DIEP_INT_AHBERR_SHIFT 2
1351 #define _USB_DIEP_INT_AHBERR_MASK 0x4UL
1352 #define _USB_DIEP_INT_AHBERR_DEFAULT 0x00000000UL
1353 #define USB_DIEP_INT_AHBERR_DEFAULT (_USB_DIEP_INT_AHBERR_DEFAULT << 2)
1354 #define USB_DIEP_INT_TIMEOUT (0x1UL << 3)
1355 #define _USB_DIEP_INT_TIMEOUT_SHIFT 3
1356 #define _USB_DIEP_INT_TIMEOUT_MASK 0x8UL
1357 #define _USB_DIEP_INT_TIMEOUT_DEFAULT 0x00000000UL
1358 #define USB_DIEP_INT_TIMEOUT_DEFAULT (_USB_DIEP_INT_TIMEOUT_DEFAULT << 3)
1359 #define USB_DIEP_INT_INTKNTXFEMP (0x1UL << 4)
1360 #define _USB_DIEP_INT_INTKNTXFEMP_SHIFT 4
1361 #define _USB_DIEP_INT_INTKNTXFEMP_MASK 0x10UL
1362 #define _USB_DIEP_INT_INTKNTXFEMP_DEFAULT 0x00000000UL
1363 #define USB_DIEP_INT_INTKNTXFEMP_DEFAULT (_USB_DIEP_INT_INTKNTXFEMP_DEFAULT << 4)
1364 #define USB_DIEP_INT_INEPNAKEFF (0x1UL << 6)
1365 #define _USB_DIEP_INT_INEPNAKEFF_SHIFT 6
1366 #define _USB_DIEP_INT_INEPNAKEFF_MASK 0x40UL
1367 #define _USB_DIEP_INT_INEPNAKEFF_DEFAULT 0x00000000UL
1368 #define USB_DIEP_INT_INEPNAKEFF_DEFAULT (_USB_DIEP_INT_INEPNAKEFF_DEFAULT << 6)
1369 #define USB_DIEP_INT_TXFEMP (0x1UL << 7)
1370 #define _USB_DIEP_INT_TXFEMP_SHIFT 7
1371 #define _USB_DIEP_INT_TXFEMP_MASK 0x80UL
1372 #define _USB_DIEP_INT_TXFEMP_DEFAULT 0x00000001UL
1373 #define USB_DIEP_INT_TXFEMP_DEFAULT (_USB_DIEP_INT_TXFEMP_DEFAULT << 7)
1374 #define USB_DIEP_INT_PKTDRPSTS (0x1UL << 11)
1375 #define _USB_DIEP_INT_PKTDRPSTS_SHIFT 11
1376 #define _USB_DIEP_INT_PKTDRPSTS_MASK 0x800UL
1377 #define _USB_DIEP_INT_PKTDRPSTS_DEFAULT 0x00000000UL
1378 #define USB_DIEP_INT_PKTDRPSTS_DEFAULT (_USB_DIEP_INT_PKTDRPSTS_DEFAULT << 11)
1379 #define USB_DIEP_INT_BBLEERR (0x1UL << 12)
1380 #define _USB_DIEP_INT_BBLEERR_SHIFT 12
1381 #define _USB_DIEP_INT_BBLEERR_MASK 0x1000UL
1382 #define _USB_DIEP_INT_BBLEERR_DEFAULT 0x00000000UL
1383 #define USB_DIEP_INT_BBLEERR_DEFAULT (_USB_DIEP_INT_BBLEERR_DEFAULT << 12)
1384 #define USB_DIEP_INT_NAKINTRPT (0x1UL << 13)
1385 #define _USB_DIEP_INT_NAKINTRPT_SHIFT 13
1386 #define _USB_DIEP_INT_NAKINTRPT_MASK 0x2000UL
1387 #define _USB_DIEP_INT_NAKINTRPT_DEFAULT 0x00000000UL
1388 #define USB_DIEP_INT_NAKINTRPT_DEFAULT (_USB_DIEP_INT_NAKINTRPT_DEFAULT << 13)
1390 /* Bit fields for USB DIEP_TSIZ */
1391 #define _USB_DIEP_TSIZ_RESETVALUE 0x00000000UL
1392 #define _USB_DIEP_TSIZ_MASK 0x7FFFFFFFUL
1393 #define _USB_DIEP_TSIZ_XFERSIZE_SHIFT 0
1394 #define _USB_DIEP_TSIZ_XFERSIZE_MASK 0x7FFFFUL
1395 #define _USB_DIEP_TSIZ_XFERSIZE_DEFAULT 0x00000000UL
1396 #define USB_DIEP_TSIZ_XFERSIZE_DEFAULT (_USB_DIEP_TSIZ_XFERSIZE_DEFAULT << 0)
1397 #define _USB_DIEP_TSIZ_PKTCNT_SHIFT 19
1398 #define _USB_DIEP_TSIZ_PKTCNT_MASK 0x1FF80000UL
1399 #define _USB_DIEP_TSIZ_PKTCNT_DEFAULT 0x00000000UL
1400 #define USB_DIEP_TSIZ_PKTCNT_DEFAULT (_USB_DIEP_TSIZ_PKTCNT_DEFAULT << 19)
1401 #define _USB_DIEP_TSIZ_MC_SHIFT 29
1402 #define _USB_DIEP_TSIZ_MC_MASK 0x60000000UL
1403 #define _USB_DIEP_TSIZ_MC_DEFAULT 0x00000000UL
1404 #define USB_DIEP_TSIZ_MC_DEFAULT (_USB_DIEP_TSIZ_MC_DEFAULT << 29)
1406 /* Bit fields for USB DIEP_DMAADDR */
1407 #define _USB_DIEP_DMAADDR_RESETVALUE 0x00000000UL
1408 #define _USB_DIEP_DMAADDR_MASK 0xFFFFFFFFUL
1409 #define _USB_DIEP_DMAADDR_DMAADDR_SHIFT 0
1410 #define _USB_DIEP_DMAADDR_DMAADDR_MASK 0xFFFFFFFFUL
1411 #define _USB_DIEP_DMAADDR_DMAADDR_DEFAULT 0x00000000UL
1412 #define USB_DIEP_DMAADDR_DMAADDR_DEFAULT (_USB_DIEP_DMAADDR_DMAADDR_DEFAULT << 0)
1414 /* Bit fields for USB DIEP_TXFSTS */
1415 #define _USB_DIEP_TXFSTS_RESETVALUE 0x00000200UL
1416 #define _USB_DIEP_TXFSTS_MASK 0x0000FFFFUL
1417 #define _USB_DIEP_TXFSTS_SPCAVAIL_SHIFT 0
1418 #define _USB_DIEP_TXFSTS_SPCAVAIL_MASK 0xFFFFUL
1419 #define _USB_DIEP_TXFSTS_SPCAVAIL_DEFAULT 0x00000200UL
1420 #define USB_DIEP_TXFSTS_SPCAVAIL_DEFAULT (_USB_DIEP_TXFSTS_SPCAVAIL_DEFAULT << 0)
1422 /* Bit fields for USB DOEP0CTL */
1423 #define _USB_DOEP0CTL_RESETVALUE 0x00008000UL
1424 #define _USB_DOEP0CTL_MASK 0xCC3E8003UL
1425 #define _USB_DOEP0CTL_MPS_SHIFT 0
1426 #define _USB_DOEP0CTL_MPS_MASK 0x3UL
1427 #define _USB_DOEP0CTL_MPS_DEFAULT 0x00000000UL
1428 #define _USB_DOEP0CTL_MPS_64B 0x00000000UL
1429 #define _USB_DOEP0CTL_MPS_32B 0x00000001UL
1430 #define _USB_DOEP0CTL_MPS_16B 0x00000002UL
1431 #define _USB_DOEP0CTL_MPS_8B 0x00000003UL
1432 #define USB_DOEP0CTL_MPS_DEFAULT (_USB_DOEP0CTL_MPS_DEFAULT << 0)
1433 #define USB_DOEP0CTL_MPS_64B (_USB_DOEP0CTL_MPS_64B << 0)
1434 #define USB_DOEP0CTL_MPS_32B (_USB_DOEP0CTL_MPS_32B << 0)
1435 #define USB_DOEP0CTL_MPS_16B (_USB_DOEP0CTL_MPS_16B << 0)
1436 #define USB_DOEP0CTL_MPS_8B (_USB_DOEP0CTL_MPS_8B << 0)
1437 #define USB_DOEP0CTL_USBACTEP (0x1UL << 15)
1438 #define _USB_DOEP0CTL_USBACTEP_SHIFT 15
1439 #define _USB_DOEP0CTL_USBACTEP_MASK 0x8000UL
1440 #define _USB_DOEP0CTL_USBACTEP_DEFAULT 0x00000001UL
1441 #define USB_DOEP0CTL_USBACTEP_DEFAULT (_USB_DOEP0CTL_USBACTEP_DEFAULT << 15)
1442 #define USB_DOEP0CTL_NAKSTS (0x1UL << 17)
1443 #define _USB_DOEP0CTL_NAKSTS_SHIFT 17
1444 #define _USB_DOEP0CTL_NAKSTS_MASK 0x20000UL
1445 #define _USB_DOEP0CTL_NAKSTS_DEFAULT 0x00000000UL
1446 #define USB_DOEP0CTL_NAKSTS_DEFAULT (_USB_DOEP0CTL_NAKSTS_DEFAULT << 17)
1447 #define _USB_DOEP0CTL_EPTYPE_SHIFT 18
1448 #define _USB_DOEP0CTL_EPTYPE_MASK 0xC0000UL
1449 #define _USB_DOEP0CTL_EPTYPE_DEFAULT 0x00000000UL
1450 #define USB_DOEP0CTL_EPTYPE_DEFAULT (_USB_DOEP0CTL_EPTYPE_DEFAULT << 18)
1451 #define USB_DOEP0CTL_SNP (0x1UL << 20)
1452 #define _USB_DOEP0CTL_SNP_SHIFT 20
1453 #define _USB_DOEP0CTL_SNP_MASK 0x100000UL
1454 #define _USB_DOEP0CTL_SNP_DEFAULT 0x00000000UL
1455 #define USB_DOEP0CTL_SNP_DEFAULT (_USB_DOEP0CTL_SNP_DEFAULT << 20)
1456 #define USB_DOEP0CTL_STALL (0x1UL << 21)
1457 #define _USB_DOEP0CTL_STALL_SHIFT 21
1458 #define _USB_DOEP0CTL_STALL_MASK 0x200000UL
1459 #define _USB_DOEP0CTL_STALL_DEFAULT 0x00000000UL
1460 #define USB_DOEP0CTL_STALL_DEFAULT (_USB_DOEP0CTL_STALL_DEFAULT << 21)
1461 #define USB_DOEP0CTL_CNAK (0x1UL << 26)
1462 #define _USB_DOEP0CTL_CNAK_SHIFT 26
1463 #define _USB_DOEP0CTL_CNAK_MASK 0x4000000UL
1464 #define _USB_DOEP0CTL_CNAK_DEFAULT 0x00000000UL
1465 #define USB_DOEP0CTL_CNAK_DEFAULT (_USB_DOEP0CTL_CNAK_DEFAULT << 26)
1466 #define USB_DOEP0CTL_SNAK (0x1UL << 27)
1467 #define _USB_DOEP0CTL_SNAK_SHIFT 27
1468 #define _USB_DOEP0CTL_SNAK_MASK 0x8000000UL
1469 #define _USB_DOEP0CTL_SNAK_DEFAULT 0x00000000UL
1470 #define USB_DOEP0CTL_SNAK_DEFAULT (_USB_DOEP0CTL_SNAK_DEFAULT << 27)
1471 #define USB_DOEP0CTL_EPDIS (0x1UL << 30)
1472 #define _USB_DOEP0CTL_EPDIS_SHIFT 30
1473 #define _USB_DOEP0CTL_EPDIS_MASK 0x40000000UL
1474 #define _USB_DOEP0CTL_EPDIS_DEFAULT 0x00000000UL
1475 #define USB_DOEP0CTL_EPDIS_DEFAULT (_USB_DOEP0CTL_EPDIS_DEFAULT << 30)
1476 #define USB_DOEP0CTL_EPENA (0x1UL << 31)
1477 #define _USB_DOEP0CTL_EPENA_SHIFT 31
1478 #define _USB_DOEP0CTL_EPENA_MASK 0x80000000UL
1479 #define _USB_DOEP0CTL_EPENA_DEFAULT 0x00000000UL
1480 #define USB_DOEP0CTL_EPENA_DEFAULT (_USB_DOEP0CTL_EPENA_DEFAULT << 31)
1482 /* Bit fields for USB DOEP0INT */
1483 #define _USB_DOEP0INT_RESETVALUE 0x00000000UL
1484 #define _USB_DOEP0INT_MASK 0x0000B87FUL
1485 #define USB_DOEP0INT_XFERCOMPL (0x1UL << 0)
1486 #define _USB_DOEP0INT_XFERCOMPL_SHIFT 0
1487 #define _USB_DOEP0INT_XFERCOMPL_MASK 0x1UL
1488 #define _USB_DOEP0INT_XFERCOMPL_DEFAULT 0x00000000UL
1489 #define USB_DOEP0INT_XFERCOMPL_DEFAULT (_USB_DOEP0INT_XFERCOMPL_DEFAULT << 0)
1490 #define USB_DOEP0INT_EPDISBLD (0x1UL << 1)
1491 #define _USB_DOEP0INT_EPDISBLD_SHIFT 1
1492 #define _USB_DOEP0INT_EPDISBLD_MASK 0x2UL
1493 #define _USB_DOEP0INT_EPDISBLD_DEFAULT 0x00000000UL
1494 #define USB_DOEP0INT_EPDISBLD_DEFAULT (_USB_DOEP0INT_EPDISBLD_DEFAULT << 1)
1495 #define USB_DOEP0INT_AHBERR (0x1UL << 2)
1496 #define _USB_DOEP0INT_AHBERR_SHIFT 2
1497 #define _USB_DOEP0INT_AHBERR_MASK 0x4UL
1498 #define _USB_DOEP0INT_AHBERR_DEFAULT 0x00000000UL
1499 #define USB_DOEP0INT_AHBERR_DEFAULT (_USB_DOEP0INT_AHBERR_DEFAULT << 2)
1500 #define USB_DOEP0INT_SETUP (0x1UL << 3)
1501 #define _USB_DOEP0INT_SETUP_SHIFT 3
1502 #define _USB_DOEP0INT_SETUP_MASK 0x8UL
1503 #define _USB_DOEP0INT_SETUP_DEFAULT 0x00000000UL
1504 #define USB_DOEP0INT_SETUP_DEFAULT (_USB_DOEP0INT_SETUP_DEFAULT << 3)
1505 #define USB_DOEP0INT_OUTTKNEPDIS (0x1UL << 4)
1506 #define _USB_DOEP0INT_OUTTKNEPDIS_SHIFT 4
1507 #define _USB_DOEP0INT_OUTTKNEPDIS_MASK 0x10UL
1508 #define _USB_DOEP0INT_OUTTKNEPDIS_DEFAULT 0x00000000UL
1509 #define USB_DOEP0INT_OUTTKNEPDIS_DEFAULT (_USB_DOEP0INT_OUTTKNEPDIS_DEFAULT << 4)
1510 #define USB_DOEP0INT_STSPHSERCVD (0x1UL << 5)
1511 #define _USB_DOEP0INT_STSPHSERCVD_SHIFT 5
1512 #define _USB_DOEP0INT_STSPHSERCVD_MASK 0x20UL
1513 #define _USB_DOEP0INT_STSPHSERCVD_DEFAULT 0x00000000UL
1514 #define USB_DOEP0INT_STSPHSERCVD_DEFAULT (_USB_DOEP0INT_STSPHSERCVD_DEFAULT << 5)
1515 #define USB_DOEP0INT_BACK2BACKSETUP (0x1UL << 6)
1516 #define _USB_DOEP0INT_BACK2BACKSETUP_SHIFT 6
1517 #define _USB_DOEP0INT_BACK2BACKSETUP_MASK 0x40UL
1518 #define _USB_DOEP0INT_BACK2BACKSETUP_DEFAULT 0x00000000UL
1519 #define USB_DOEP0INT_BACK2BACKSETUP_DEFAULT (_USB_DOEP0INT_BACK2BACKSETUP_DEFAULT << 6)
1520 #define USB_DOEP0INT_PKTDRPSTS (0x1UL << 11)
1521 #define _USB_DOEP0INT_PKTDRPSTS_SHIFT 11
1522 #define _USB_DOEP0INT_PKTDRPSTS_MASK 0x800UL
1523 #define _USB_DOEP0INT_PKTDRPSTS_DEFAULT 0x00000000UL
1524 #define USB_DOEP0INT_PKTDRPSTS_DEFAULT (_USB_DOEP0INT_PKTDRPSTS_DEFAULT << 11)
1525 #define USB_DOEP0INT_BBLEERR (0x1UL << 12)
1526 #define _USB_DOEP0INT_BBLEERR_SHIFT 12
1527 #define _USB_DOEP0INT_BBLEERR_MASK 0x1000UL
1528 #define _USB_DOEP0INT_BBLEERR_DEFAULT 0x00000000UL
1529 #define USB_DOEP0INT_BBLEERR_DEFAULT (_USB_DOEP0INT_BBLEERR_DEFAULT << 12)
1530 #define USB_DOEP0INT_NAKINTRPT (0x1UL << 13)
1531 #define _USB_DOEP0INT_NAKINTRPT_SHIFT 13
1532 #define _USB_DOEP0INT_NAKINTRPT_MASK 0x2000UL
1533 #define _USB_DOEP0INT_NAKINTRPT_DEFAULT 0x00000000UL
1534 #define USB_DOEP0INT_NAKINTRPT_DEFAULT (_USB_DOEP0INT_NAKINTRPT_DEFAULT << 13)
1535 #define USB_DOEP0INT_STUPPKTRCVD (0x1UL << 15)
1536 #define _USB_DOEP0INT_STUPPKTRCVD_SHIFT 15
1537 #define _USB_DOEP0INT_STUPPKTRCVD_MASK 0x8000UL
1538 #define _USB_DOEP0INT_STUPPKTRCVD_DEFAULT 0x00000000UL
1539 #define USB_DOEP0INT_STUPPKTRCVD_DEFAULT (_USB_DOEP0INT_STUPPKTRCVD_DEFAULT << 15)
1541 /* Bit fields for USB DOEP0TSIZ */
1542 #define _USB_DOEP0TSIZ_RESETVALUE 0x00000000UL
1543 #define _USB_DOEP0TSIZ_MASK 0x6008007FUL
1544 #define _USB_DOEP0TSIZ_XFERSIZE_SHIFT 0
1545 #define _USB_DOEP0TSIZ_XFERSIZE_MASK 0x7FUL
1546 #define _USB_DOEP0TSIZ_XFERSIZE_DEFAULT 0x00000000UL
1547 #define USB_DOEP0TSIZ_XFERSIZE_DEFAULT (_USB_DOEP0TSIZ_XFERSIZE_DEFAULT << 0)
1548 #define USB_DOEP0TSIZ_PKTCNT (0x1UL << 19)
1549 #define _USB_DOEP0TSIZ_PKTCNT_SHIFT 19
1550 #define _USB_DOEP0TSIZ_PKTCNT_MASK 0x80000UL
1551 #define _USB_DOEP0TSIZ_PKTCNT_DEFAULT 0x00000000UL
1552 #define USB_DOEP0TSIZ_PKTCNT_DEFAULT (_USB_DOEP0TSIZ_PKTCNT_DEFAULT << 19)
1553 #define _USB_DOEP0TSIZ_SUPCNT_SHIFT 29
1554 #define _USB_DOEP0TSIZ_SUPCNT_MASK 0x60000000UL
1555 #define _USB_DOEP0TSIZ_SUPCNT_DEFAULT 0x00000000UL
1556 #define USB_DOEP0TSIZ_SUPCNT_DEFAULT (_USB_DOEP0TSIZ_SUPCNT_DEFAULT << 29)
1558 /* Bit fields for USB DOEP0DMAADDR */
1559 #define _USB_DOEP0DMAADDR_RESETVALUE 0x00000000UL
1560 #define _USB_DOEP0DMAADDR_MASK 0xFFFFFFFFUL
1561 #define _USB_DOEP0DMAADDR_DOEP0DMAADDR_SHIFT 0
1562 #define _USB_DOEP0DMAADDR_DOEP0DMAADDR_MASK 0xFFFFFFFFUL
1563 #define _USB_DOEP0DMAADDR_DOEP0DMAADDR_DEFAULT 0x00000000UL
1564 #define USB_DOEP0DMAADDR_DOEP0DMAADDR_DEFAULT (_USB_DOEP0DMAADDR_DOEP0DMAADDR_DEFAULT << 0)
1566 /* Bit fields for USB DOEP_CTL */
1567 #define _USB_DOEP_CTL_RESETVALUE 0x00000000UL
1568 #define _USB_DOEP_CTL_MASK 0xFC3F87FFUL
1569 #define _USB_DOEP_CTL_MPS_SHIFT 0
1570 #define _USB_DOEP_CTL_MPS_MASK 0x7FFUL
1571 #define _USB_DOEP_CTL_MPS_DEFAULT 0x00000000UL
1572 #define USB_DOEP_CTL_MPS_DEFAULT (_USB_DOEP_CTL_MPS_DEFAULT << 0)
1573 #define USB_DOEP_CTL_USBACTEP (0x1UL << 15)
1574 #define _USB_DOEP_CTL_USBACTEP_SHIFT 15
1575 #define _USB_DOEP_CTL_USBACTEP_MASK 0x8000UL
1576 #define _USB_DOEP_CTL_USBACTEP_DEFAULT 0x00000000UL
1577 #define USB_DOEP_CTL_USBACTEP_DEFAULT (_USB_DOEP_CTL_USBACTEP_DEFAULT << 15)
1578 #define USB_DOEP_CTL_DPIDEOF (0x1UL << 16)
1579 #define _USB_DOEP_CTL_DPIDEOF_SHIFT 16
1580 #define _USB_DOEP_CTL_DPIDEOF_MASK 0x10000UL
1581 #define _USB_DOEP_CTL_DPIDEOF_DEFAULT 0x00000000UL
1582 #define _USB_DOEP_CTL_DPIDEOF_DATA0EVEN 0x00000000UL
1583 #define _USB_DOEP_CTL_DPIDEOF_DATA1ODD 0x00000001UL
1584 #define USB_DOEP_CTL_DPIDEOF_DEFAULT (_USB_DOEP_CTL_DPIDEOF_DEFAULT << 16)
1585 #define USB_DOEP_CTL_DPIDEOF_DATA0EVEN (_USB_DOEP_CTL_DPIDEOF_DATA0EVEN << 16)
1586 #define USB_DOEP_CTL_DPIDEOF_DATA1ODD (_USB_DOEP_CTL_DPIDEOF_DATA1ODD << 16)
1587 #define USB_DOEP_CTL_NAKSTS (0x1UL << 17)
1588 #define _USB_DOEP_CTL_NAKSTS_SHIFT 17
1589 #define _USB_DOEP_CTL_NAKSTS_MASK 0x20000UL
1590 #define _USB_DOEP_CTL_NAKSTS_DEFAULT 0x00000000UL
1591 #define USB_DOEP_CTL_NAKSTS_DEFAULT (_USB_DOEP_CTL_NAKSTS_DEFAULT << 17)
1592 #define _USB_DOEP_CTL_EPTYPE_SHIFT 18
1593 #define _USB_DOEP_CTL_EPTYPE_MASK 0xC0000UL
1594 #define _USB_DOEP_CTL_EPTYPE_DEFAULT 0x00000000UL
1595 #define _USB_DOEP_CTL_EPTYPE_CONTROL 0x00000000UL
1596 #define _USB_DOEP_CTL_EPTYPE_ISO 0x00000001UL
1597 #define _USB_DOEP_CTL_EPTYPE_BULK 0x00000002UL
1598 #define _USB_DOEP_CTL_EPTYPE_INT 0x00000003UL
1599 #define USB_DOEP_CTL_EPTYPE_DEFAULT (_USB_DOEP_CTL_EPTYPE_DEFAULT << 18)
1600 #define USB_DOEP_CTL_EPTYPE_CONTROL (_USB_DOEP_CTL_EPTYPE_CONTROL << 18)
1601 #define USB_DOEP_CTL_EPTYPE_ISO (_USB_DOEP_CTL_EPTYPE_ISO << 18)
1602 #define USB_DOEP_CTL_EPTYPE_BULK (_USB_DOEP_CTL_EPTYPE_BULK << 18)
1603 #define USB_DOEP_CTL_EPTYPE_INT (_USB_DOEP_CTL_EPTYPE_INT << 18)
1604 #define USB_DOEP_CTL_SNP (0x1UL << 20)
1605 #define _USB_DOEP_CTL_SNP_SHIFT 20
1606 #define _USB_DOEP_CTL_SNP_MASK 0x100000UL
1607 #define _USB_DOEP_CTL_SNP_DEFAULT 0x00000000UL
1608 #define USB_DOEP_CTL_SNP_DEFAULT (_USB_DOEP_CTL_SNP_DEFAULT << 20)
1609 #define USB_DOEP_CTL_STALL (0x1UL << 21)
1610 #define _USB_DOEP_CTL_STALL_SHIFT 21
1611 #define _USB_DOEP_CTL_STALL_MASK 0x200000UL
1612 #define _USB_DOEP_CTL_STALL_DEFAULT 0x00000000UL
1613 #define USB_DOEP_CTL_STALL_DEFAULT (_USB_DOEP_CTL_STALL_DEFAULT << 21)
1614 #define USB_DOEP_CTL_CNAK (0x1UL << 26)
1615 #define _USB_DOEP_CTL_CNAK_SHIFT 26
1616 #define _USB_DOEP_CTL_CNAK_MASK 0x4000000UL
1617 #define _USB_DOEP_CTL_CNAK_DEFAULT 0x00000000UL
1618 #define USB_DOEP_CTL_CNAK_DEFAULT (_USB_DOEP_CTL_CNAK_DEFAULT << 26)
1619 #define USB_DOEP_CTL_SNAK (0x1UL << 27)
1620 #define _USB_DOEP_CTL_SNAK_SHIFT 27
1621 #define _USB_DOEP_CTL_SNAK_MASK 0x8000000UL
1622 #define _USB_DOEP_CTL_SNAK_DEFAULT 0x00000000UL
1623 #define USB_DOEP_CTL_SNAK_DEFAULT (_USB_DOEP_CTL_SNAK_DEFAULT << 27)
1624 #define USB_DOEP_CTL_SETD0PIDEF (0x1UL << 28)
1625 #define _USB_DOEP_CTL_SETD0PIDEF_SHIFT 28
1626 #define _USB_DOEP_CTL_SETD0PIDEF_MASK 0x10000000UL
1627 #define _USB_DOEP_CTL_SETD0PIDEF_DEFAULT 0x00000000UL
1628 #define USB_DOEP_CTL_SETD0PIDEF_DEFAULT (_USB_DOEP_CTL_SETD0PIDEF_DEFAULT << 28)
1629 #define USB_DOEP_CTL_SETD1PIDOF (0x1UL << 29)
1630 #define _USB_DOEP_CTL_SETD1PIDOF_SHIFT 29
1631 #define _USB_DOEP_CTL_SETD1PIDOF_MASK 0x20000000UL
1632 #define _USB_DOEP_CTL_SETD1PIDOF_DEFAULT 0x00000000UL
1633 #define USB_DOEP_CTL_SETD1PIDOF_DEFAULT (_USB_DOEP_CTL_SETD1PIDOF_DEFAULT << 29)
1634 #define USB_DOEP_CTL_EPDIS (0x1UL << 30)
1635 #define _USB_DOEP_CTL_EPDIS_SHIFT 30
1636 #define _USB_DOEP_CTL_EPDIS_MASK 0x40000000UL
1637 #define _USB_DOEP_CTL_EPDIS_DEFAULT 0x00000000UL
1638 #define USB_DOEP_CTL_EPDIS_DEFAULT (_USB_DOEP_CTL_EPDIS_DEFAULT << 30)
1639 #define USB_DOEP_CTL_EPENA (0x1UL << 31)
1640 #define _USB_DOEP_CTL_EPENA_SHIFT 31
1641 #define _USB_DOEP_CTL_EPENA_MASK 0x80000000UL
1642 #define _USB_DOEP_CTL_EPENA_DEFAULT 0x00000000UL
1643 #define USB_DOEP_CTL_EPENA_DEFAULT (_USB_DOEP_CTL_EPENA_DEFAULT << 31)
1645 /* Bit fields for USB DOEP_INT */
1646 #define _USB_DOEP_INT_RESETVALUE 0x00000000UL
1647 #define _USB_DOEP_INT_MASK 0x0000B87FUL
1648 #define USB_DOEP_INT_XFERCOMPL (0x1UL << 0)
1649 #define _USB_DOEP_INT_XFERCOMPL_SHIFT 0
1650 #define _USB_DOEP_INT_XFERCOMPL_MASK 0x1UL
1651 #define _USB_DOEP_INT_XFERCOMPL_DEFAULT 0x00000000UL
1652 #define USB_DOEP_INT_XFERCOMPL_DEFAULT (_USB_DOEP_INT_XFERCOMPL_DEFAULT << 0)
1653 #define USB_DOEP_INT_EPDISBLD (0x1UL << 1)
1654 #define _USB_DOEP_INT_EPDISBLD_SHIFT 1
1655 #define _USB_DOEP_INT_EPDISBLD_MASK 0x2UL
1656 #define _USB_DOEP_INT_EPDISBLD_DEFAULT 0x00000000UL
1657 #define USB_DOEP_INT_EPDISBLD_DEFAULT (_USB_DOEP_INT_EPDISBLD_DEFAULT << 1)
1658 #define USB_DOEP_INT_AHBERR (0x1UL << 2)
1659 #define _USB_DOEP_INT_AHBERR_SHIFT 2
1660 #define _USB_DOEP_INT_AHBERR_MASK 0x4UL
1661 #define _USB_DOEP_INT_AHBERR_DEFAULT 0x00000000UL
1662 #define USB_DOEP_INT_AHBERR_DEFAULT (_USB_DOEP_INT_AHBERR_DEFAULT << 2)
1663 #define USB_DOEP_INT_SETUP (0x1UL << 3)
1664 #define _USB_DOEP_INT_SETUP_SHIFT 3
1665 #define _USB_DOEP_INT_SETUP_MASK 0x8UL
1666 #define _USB_DOEP_INT_SETUP_DEFAULT 0x00000000UL
1667 #define USB_DOEP_INT_SETUP_DEFAULT (_USB_DOEP_INT_SETUP_DEFAULT << 3)
1668 #define USB_DOEP_INT_OUTTKNEPDIS (0x1UL << 4)
1669 #define _USB_DOEP_INT_OUTTKNEPDIS_SHIFT 4
1670 #define _USB_DOEP_INT_OUTTKNEPDIS_MASK 0x10UL
1671 #define _USB_DOEP_INT_OUTTKNEPDIS_DEFAULT 0x00000000UL
1672 #define USB_DOEP_INT_OUTTKNEPDIS_DEFAULT (_USB_DOEP_INT_OUTTKNEPDIS_DEFAULT << 4)
1673 #define USB_DOEP_INT_STSPHSERCVD (0x1UL << 5)
1674 #define _USB_DOEP_INT_STSPHSERCVD_SHIFT 5
1675 #define _USB_DOEP_INT_STSPHSERCVD_MASK 0x20UL
1676 #define _USB_DOEP_INT_STSPHSERCVD_DEFAULT 0x00000000UL
1677 #define USB_DOEP_INT_STSPHSERCVD_DEFAULT (_USB_DOEP_INT_STSPHSERCVD_DEFAULT << 5)
1678 #define USB_DOEP_INT_BACK2BACKSETUP (0x1UL << 6)
1679 #define _USB_DOEP_INT_BACK2BACKSETUP_SHIFT 6
1680 #define _USB_DOEP_INT_BACK2BACKSETUP_MASK 0x40UL
1681 #define _USB_DOEP_INT_BACK2BACKSETUP_DEFAULT 0x00000000UL
1682 #define USB_DOEP_INT_BACK2BACKSETUP_DEFAULT (_USB_DOEP_INT_BACK2BACKSETUP_DEFAULT << 6)
1683 #define USB_DOEP_INT_PKTDRPSTS (0x1UL << 11)
1684 #define _USB_DOEP_INT_PKTDRPSTS_SHIFT 11
1685 #define _USB_DOEP_INT_PKTDRPSTS_MASK 0x800UL
1686 #define _USB_DOEP_INT_PKTDRPSTS_DEFAULT 0x00000000UL
1687 #define USB_DOEP_INT_PKTDRPSTS_DEFAULT (_USB_DOEP_INT_PKTDRPSTS_DEFAULT << 11)
1688 #define USB_DOEP_INT_BBLEERR (0x1UL << 12)
1689 #define _USB_DOEP_INT_BBLEERR_SHIFT 12
1690 #define _USB_DOEP_INT_BBLEERR_MASK 0x1000UL
1691 #define _USB_DOEP_INT_BBLEERR_DEFAULT 0x00000000UL
1692 #define USB_DOEP_INT_BBLEERR_DEFAULT (_USB_DOEP_INT_BBLEERR_DEFAULT << 12)
1693 #define USB_DOEP_INT_NAKINTRPT (0x1UL << 13)
1694 #define _USB_DOEP_INT_NAKINTRPT_SHIFT 13
1695 #define _USB_DOEP_INT_NAKINTRPT_MASK 0x2000UL
1696 #define _USB_DOEP_INT_NAKINTRPT_DEFAULT 0x00000000UL
1697 #define USB_DOEP_INT_NAKINTRPT_DEFAULT (_USB_DOEP_INT_NAKINTRPT_DEFAULT << 13)
1698 #define USB_DOEP_INT_STUPPKTRCVD (0x1UL << 15)
1699 #define _USB_DOEP_INT_STUPPKTRCVD_SHIFT 15
1700 #define _USB_DOEP_INT_STUPPKTRCVD_MASK 0x8000UL
1701 #define _USB_DOEP_INT_STUPPKTRCVD_DEFAULT 0x00000000UL
1702 #define USB_DOEP_INT_STUPPKTRCVD_DEFAULT (_USB_DOEP_INT_STUPPKTRCVD_DEFAULT << 15)
1704 /* Bit fields for USB DOEP_TSIZ */
1705 #define _USB_DOEP_TSIZ_RESETVALUE 0x00000000UL
1706 #define _USB_DOEP_TSIZ_MASK 0x7FFFFFFFUL
1707 #define _USB_DOEP_TSIZ_XFERSIZE_SHIFT 0
1708 #define _USB_DOEP_TSIZ_XFERSIZE_MASK 0x7FFFFUL
1709 #define _USB_DOEP_TSIZ_XFERSIZE_DEFAULT 0x00000000UL
1710 #define USB_DOEP_TSIZ_XFERSIZE_DEFAULT (_USB_DOEP_TSIZ_XFERSIZE_DEFAULT << 0)
1711 #define _USB_DOEP_TSIZ_PKTCNT_SHIFT 19
1712 #define _USB_DOEP_TSIZ_PKTCNT_MASK 0x1FF80000UL
1713 #define _USB_DOEP_TSIZ_PKTCNT_DEFAULT 0x00000000UL
1714 #define USB_DOEP_TSIZ_PKTCNT_DEFAULT (_USB_DOEP_TSIZ_PKTCNT_DEFAULT << 19)
1715 #define _USB_DOEP_TSIZ_RXDPIDSUPCNT_SHIFT 29
1716 #define _USB_DOEP_TSIZ_RXDPIDSUPCNT_MASK 0x60000000UL
1717 #define _USB_DOEP_TSIZ_RXDPIDSUPCNT_DEFAULT 0x00000000UL
1718 #define _USB_DOEP_TSIZ_RXDPIDSUPCNT_DATA0 0x00000000UL
1719 #define _USB_DOEP_TSIZ_RXDPIDSUPCNT_DATA2 0x00000001UL
1720 #define _USB_DOEP_TSIZ_RXDPIDSUPCNT_DATA1 0x00000002UL
1721 #define _USB_DOEP_TSIZ_RXDPIDSUPCNT_MDATA 0x00000003UL
1722 #define USB_DOEP_TSIZ_RXDPIDSUPCNT_DEFAULT (_USB_DOEP_TSIZ_RXDPIDSUPCNT_DEFAULT << 29)
1723 #define USB_DOEP_TSIZ_RXDPIDSUPCNT_DATA0 (_USB_DOEP_TSIZ_RXDPIDSUPCNT_DATA0 << 29)
1724 #define USB_DOEP_TSIZ_RXDPIDSUPCNT_DATA2 (_USB_DOEP_TSIZ_RXDPIDSUPCNT_DATA2 << 29)
1725 #define USB_DOEP_TSIZ_RXDPIDSUPCNT_DATA1 (_USB_DOEP_TSIZ_RXDPIDSUPCNT_DATA1 << 29)
1726 #define USB_DOEP_TSIZ_RXDPIDSUPCNT_MDATA (_USB_DOEP_TSIZ_RXDPIDSUPCNT_MDATA << 29)
1728 /* Bit fields for USB DOEP_DMAADDR */
1729 #define _USB_DOEP_DMAADDR_RESETVALUE 0x00000000UL
1730 #define _USB_DOEP_DMAADDR_MASK 0xFFFFFFFFUL
1731 #define _USB_DOEP_DMAADDR_DMAADDR_SHIFT 0
1732 #define _USB_DOEP_DMAADDR_DMAADDR_MASK 0xFFFFFFFFUL
1733 #define _USB_DOEP_DMAADDR_DMAADDR_DEFAULT 0x00000000UL
1734 #define USB_DOEP_DMAADDR_DMAADDR_DEFAULT (_USB_DOEP_DMAADDR_DMAADDR_DEFAULT << 0)
1736 /* Bit fields for USB PCGCCTL */
1737 #define _USB_PCGCCTL_RESETVALUE 0x00000000UL
1738 #define _USB_PCGCCTL_MASK 0x0000004FUL
1739 #define USB_PCGCCTL_STOPPCLK (0x1UL << 0)
1740 #define _USB_PCGCCTL_STOPPCLK_SHIFT 0
1741 #define _USB_PCGCCTL_STOPPCLK_MASK 0x1UL
1742 #define _USB_PCGCCTL_STOPPCLK_DEFAULT 0x00000000UL
1743 #define USB_PCGCCTL_STOPPCLK_DEFAULT (_USB_PCGCCTL_STOPPCLK_DEFAULT << 0)
1744 #define USB_PCGCCTL_GATEHCLK (0x1UL << 1)
1745 #define _USB_PCGCCTL_GATEHCLK_SHIFT 1
1746 #define _USB_PCGCCTL_GATEHCLK_MASK 0x2UL
1747 #define _USB_PCGCCTL_GATEHCLK_DEFAULT 0x00000000UL
1748 #define USB_PCGCCTL_GATEHCLK_DEFAULT (_USB_PCGCCTL_GATEHCLK_DEFAULT << 1)
1749 #define USB_PCGCCTL_PWRCLMP (0x1UL << 2)
1750 #define _USB_PCGCCTL_PWRCLMP_SHIFT 2
1751 #define _USB_PCGCCTL_PWRCLMP_MASK 0x4UL
1752 #define _USB_PCGCCTL_PWRCLMP_DEFAULT 0x00000000UL
1753 #define USB_PCGCCTL_PWRCLMP_DEFAULT (_USB_PCGCCTL_PWRCLMP_DEFAULT << 2)
1754 #define USB_PCGCCTL_RSTPDWNMODULE (0x1UL << 3)
1755 #define _USB_PCGCCTL_RSTPDWNMODULE_SHIFT 3
1756 #define _USB_PCGCCTL_RSTPDWNMODULE_MASK 0x8UL
1757 #define _USB_PCGCCTL_RSTPDWNMODULE_DEFAULT 0x00000000UL
1758 #define USB_PCGCCTL_RSTPDWNMODULE_DEFAULT (_USB_PCGCCTL_RSTPDWNMODULE_DEFAULT << 3)
1759 #define USB_PCGCCTL_PHYSLEEP (0x1UL << 6)
1760 #define _USB_PCGCCTL_PHYSLEEP_SHIFT 6
1761 #define _USB_PCGCCTL_PHYSLEEP_MASK 0x40UL
1762 #define _USB_PCGCCTL_PHYSLEEP_DEFAULT 0x00000000UL
1763 #define USB_PCGCCTL_PHYSLEEP_DEFAULT (_USB_PCGCCTL_PHYSLEEP_DEFAULT << 6)
1765 /* Bit fields for USB FIFO0D */
1766 #define _USB_FIFO0D_RESETVALUE 0x00000000UL
1767 #define _USB_FIFO0D_MASK 0xFFFFFFFFUL
1768 #define _USB_FIFO0D_FIFO0D_SHIFT 0
1769 #define _USB_FIFO0D_FIFO0D_MASK 0xFFFFFFFFUL
1770 #define _USB_FIFO0D_FIFO0D_DEFAULT 0x00000000UL
1771 #define USB_FIFO0D_FIFO0D_DEFAULT (_USB_FIFO0D_FIFO0D_DEFAULT << 0)
1773 /* Bit fields for USB FIFO1D */
1774 #define _USB_FIFO1D_RESETVALUE 0x00000000UL
1775 #define _USB_FIFO1D_MASK 0xFFFFFFFFUL
1776 #define _USB_FIFO1D_FIFO1D_SHIFT 0
1777 #define _USB_FIFO1D_FIFO1D_MASK 0xFFFFFFFFUL
1778 #define _USB_FIFO1D_FIFO1D_DEFAULT 0x00000000UL
1779 #define USB_FIFO1D_FIFO1D_DEFAULT (_USB_FIFO1D_FIFO1D_DEFAULT << 0)
1781 /* Bit fields for USB FIFO2D */
1782 #define _USB_FIFO2D_RESETVALUE 0x00000000UL
1783 #define _USB_FIFO2D_MASK 0xFFFFFFFFUL
1784 #define _USB_FIFO2D_FIFO2D_SHIFT 0
1785 #define _USB_FIFO2D_FIFO2D_MASK 0xFFFFFFFFUL
1786 #define _USB_FIFO2D_FIFO2D_DEFAULT 0x00000000UL
1787 #define USB_FIFO2D_FIFO2D_DEFAULT (_USB_FIFO2D_FIFO2D_DEFAULT << 0)
1789 /* Bit fields for USB FIFO3D */
1790 #define _USB_FIFO3D_RESETVALUE 0x00000000UL
1791 #define _USB_FIFO3D_MASK 0xFFFFFFFFUL
1792 #define _USB_FIFO3D_FIFO3D_SHIFT 0
1793 #define _USB_FIFO3D_FIFO3D_MASK 0xFFFFFFFFUL
1794 #define _USB_FIFO3D_FIFO3D_DEFAULT 0x00000000UL
1795 #define USB_FIFO3D_FIFO3D_DEFAULT (_USB_FIFO3D_FIFO3D_DEFAULT << 0)
1797 /* Bit fields for USB FIFORAM */
1798 #define _USB_FIFORAM_RESETVALUE 0x00000000UL
1799 #define _USB_FIFORAM_MASK 0xFFFFFFFFUL
1800 #define _USB_FIFORAM_FIFORAM_SHIFT 0
1801 #define _USB_FIFORAM_FIFORAM_MASK 0xFFFFFFFFUL
1802 #define _USB_FIFORAM_FIFORAM_DEFAULT 0x00000000UL
1803 #define USB_FIFORAM_FIFORAM_DEFAULT (_USB_FIFORAM_FIFORAM_DEFAULT << 0)
__IOM uint32_t ROUTE
Definition: efm32hg_usb.h:49
__IOM uint32_t GINTSTS
Definition: efm32hg_usb.h:55
__IOM uint32_t DIEP0DMAADDR
Definition: efm32hg_usb.h:89
__IOM uint32_t DIEPTXF2
Definition: efm32hg_usb.h:67
__IOM uint32_t GRSTCTL
Definition: efm32hg_usb.h:54
__IOM uint32_t GAHBCFG
Definition: efm32hg_usb.h:52
__IOM uint32_t CTRL
Definition: efm32hg_usb.h:43
__IOM uint32_t GRXFSIZ
Definition: efm32hg_usb.h:59
USB_DIEP EFM32HG USB DIEP.
__IM uint32_t DSTS
Definition: efm32hg_usb.h:73
__IOM uint32_t IFS
Definition: efm32hg_usb.h:46
__IOM uint32_t DOEP0CTL
Definition: efm32hg_usb.h:96
__IOM uint32_t DIEPMSK
Definition: efm32hg_usb.h:75
__IOM uint32_t PCGCCTL
Definition: efm32hg_usb.h:107
__IOM uint32_t GNPTXFSIZ
Definition: efm32hg_usb.h:60
__IOM uint32_t DOEPMSK
Definition: efm32hg_usb.h:76
__IOM uint32_t DCFG
Definition: efm32hg_usb.h:71
__IM uint32_t DAINT
Definition: efm32hg_usb.h:77
__IOM uint32_t DAINTMSK
Definition: efm32hg_usb.h:78
__IOM uint32_t DIEPEMPMSK
Definition: efm32hg_usb.h:81
__IOM uint32_t GINTMSK
Definition: efm32hg_usb.h:56
__IOM uint32_t IFC
Definition: efm32hg_usb.h:47
__IOM uint32_t GUSBCFG
Definition: efm32hg_usb.h:53
__IM uint32_t STATUS
Definition: efm32hg_usb.h:44
__IM uint32_t IF
Definition: efm32hg_usb.h:45
__IOM uint32_t DOEP0INT
Definition: efm32hg_usb.h:98
__IOM uint32_t DIEP0INT
Definition: efm32hg_usb.h:86
__IM uint32_t DIEP0TXFSTS
Definition: efm32hg_usb.h:90
__IOM uint32_t IEN
Definition: efm32hg_usb.h:48
__IOM uint32_t DCTL
Definition: efm32hg_usb.h:72
__IOM uint32_t DIEP0CTL
Definition: efm32hg_usb.h:84
__IOM uint32_t DOEP0TSIZ
Definition: efm32hg_usb.h:100
__IOM uint32_t DIEPTXF3
Definition: efm32hg_usb.h:68
__IOM uint32_t DIEPTXF1
Definition: efm32hg_usb.h:66
__IOM uint32_t GDFIFOCFG
Definition: efm32hg_usb.h:63
__IOM uint32_t DIEP0TSIZ
Definition: efm32hg_usb.h:88
__IM uint32_t GRXSTSP
Definition: efm32hg_usb.h:58
__IM uint32_t GRXSTSR
Definition: efm32hg_usb.h:57
__IOM uint32_t DOEP0DMAADDR
Definition: efm32hg_usb.h:101
USB_DOEP EFM32HG USB DOEP.