source: asp3_tinet_ecnl_arm/trunk/asp3_dcre/mbed/targets/TARGET_RENESAS/TARGET_RZA1XX/TARGET_RZ_A1H/device/inc/iodefines/usb20_iodefine.h@ 374

Last change on this file since 374 was 374, checked in by coas-nagasima, 5 years ago

mbed関連を更新
シリアルドライバをmbedのHALを使うよう変更
ファイルディスクリプタの処理を更新

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-chdr;charset=UTF-8
File size: 29.5 KB
Line 
1/*******************************************************************************
2* DISCLAIMER
3* This software is supplied by Renesas Electronics Corporation and is only
4* intended for use with Renesas products. No other uses are authorized. This
5* software is owned by Renesas Electronics Corporation and is protected under
6* all applicable laws, including copyright laws.
7* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
8* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
9* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
10* AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
11* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
12* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
13* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
14* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
15* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
16* Renesas reserves the right, without notice, to make changes to this software
17* and to discontinue the availability of this software. By using this software,
18* you agree to the additional terms and conditions found by accessing the
19* following link:
20* http://www.renesas.com/disclaimer*
21* Copyright (C) 2013-2015 Renesas Electronics Corporation. All rights reserved.
22*******************************************************************************/
23/*******************************************************************************
24* File Name : usb20_iodefine.h
25* $Rev: $
26* $Date:: $
27* Description : Definition of I/O Register for RZ/A1H,M (V2.00h)
28******************************************************************************/
29#ifndef USB20_IODEFINE_H
30#define USB20_IODEFINE_H
31/* ->QAC 0639 : Over 127 members (C90) */
32/* ->QAC 0857 : Over 1024 #define (C90) */
33/* ->MISRA 18.4 : Pack unpack union */ /* ->SEC M1.6.2 */
34/* ->SEC M1.10.1 : Not magic number */
35
36#define USB200 (*(struct st_usb20 *)0xE8010000uL) /* USB200 */
37#define USB201 (*(struct st_usb20 *)0xE8207000uL) /* USB201 */
38
39
40/* Start of channel array defines of USB20 */
41
42/* Channel array defines of USB20 */
43/*(Sample) value = USB20[ channel ]->SYSCFG0; */
44#define USB20_COUNT (2)
45#define USB20_ADDRESS_LIST \
46{ /* ->MISRA 11.3 */ /* ->SEC R2.7.1 */ \
47 &USB200, &USB201 \
48} /* <-MISRA 11.3 */ /* <-SEC R2.7.1 */ /* { } is for MISRA 19.4 */
49
50
51
52/* Channel array defines of USB20_FROM_D0FIFOB0 */
53/*(Sample) value = USB20_FROM_D0FIFOB0[ channel ][ index ]->D0FIFOB0; */
54#define USB20_FROM_D0FIFOB0_COUNT (2)
55#define USB20_FROM_D0FIFOB0_ADDRESS_LIST \
56{ /* ->MISRA 11.3 */ /* ->SEC R2.7.1 */ \
57{ \
58 &USB200_FROM_D0FIFOB0, &USB200_FROM_D1FIFOB0 },{ \
59 &USB201_FROM_D0FIFOB0, &USB201_FROM_D1FIFOB0 \
60} \
61} /* <-MISRA 11.3 */ /* <-SEC R2.7.1 */ /* { } is for MISRA 19.4 */
62#define USB200_FROM_D0FIFOB0 (*(struct st_usb20_from_dmfifob0 *)&USB200.D0FIFOB0) /* USB200_FROM_D0FIFOB0 */
63#define USB200_FROM_D1FIFOB0 (*(struct st_usb20_from_dmfifob0 *)&USB200.D1FIFOB0) /* USB200_FROM_D1FIFOB0 */
64#define USB201_FROM_D0FIFOB0 (*(struct st_usb20_from_dmfifob0 *)&USB201.D0FIFOB0) /* USB201_FROM_D0FIFOB0 */
65#define USB201_FROM_D1FIFOB0 (*(struct st_usb20_from_dmfifob0 *)&USB201.D1FIFOB0) /* USB201_FROM_D1FIFOB0 */
66
67
68
69
70/* Channel array defines of USB20_FROM_PIPE1ATRE */
71/*(Sample) value = USB20_FROM_PIPE1ATRE[ channel ][ index ]->PIPE1TRE; */
72#define USB20_FROM_PIPE1ATRE_COUNT (5)
73#define USB20_FROM_PIPE1ATRE_ADDRESS_LIST \
74{ /* ->MISRA 11.3 */ /* ->SEC R2.7.1 */ \
75{ \
76 &USB200_FROM_PIPE1TRE, &USB200_FROM_PIPE2TRE, &USB200_FROM_PIPE3TRE, &USB200_FROM_PIPE4TRE, &USB200_FROM_PIPE5TRE },{ \
77 &USB201_FROM_PIPE1TRE, &USB201_FROM_PIPE2TRE, &USB201_FROM_PIPE3TRE, &USB201_FROM_PIPE4TRE, &USB201_FROM_PIPE5TRE \
78} \
79} /* <-MISRA 11.3 */ /* <-SEC R2.7.1 */ /* { } is for MISRA 19.4 */
80#define USB200_FROM_PIPE1TRE (*(struct st_usb20_from_pipe1tre *)&USB200.PIPE1TRE) /* USB200_FROM_PIPE1TRE */
81#define USB200_FROM_PIPE2TRE (*(struct st_usb20_from_pipe1tre *)&USB200.PIPE2TRE) /* USB200_FROM_PIPE2TRE */
82#define USB200_FROM_PIPE3TRE (*(struct st_usb20_from_pipe1tre *)&USB200.PIPE3TRE) /* USB200_FROM_PIPE3TRE */
83#define USB200_FROM_PIPE4TRE (*(struct st_usb20_from_pipe1tre *)&USB200.PIPE4TRE) /* USB200_FROM_PIPE4TRE */
84#define USB200_FROM_PIPE5TRE (*(struct st_usb20_from_pipe1tre *)&USB200.PIPE5TRE) /* USB200_FROM_PIPE5TRE */
85#define USB201_FROM_PIPE1TRE (*(struct st_usb20_from_pipe1tre *)&USB201.PIPE1TRE) /* USB201_FROM_PIPE1TRE */
86#define USB201_FROM_PIPE2TRE (*(struct st_usb20_from_pipe1tre *)&USB201.PIPE2TRE) /* USB201_FROM_PIPE2TRE */
87#define USB201_FROM_PIPE3TRE (*(struct st_usb20_from_pipe1tre *)&USB201.PIPE3TRE) /* USB201_FROM_PIPE3TRE */
88#define USB201_FROM_PIPE4TRE (*(struct st_usb20_from_pipe1tre *)&USB201.PIPE4TRE) /* USB201_FROM_PIPE4TRE */
89#define USB201_FROM_PIPE5TRE (*(struct st_usb20_from_pipe1tre *)&USB201.PIPE5TRE) /* USB201_FROM_PIPE5TRE */
90
91
92
93
94/* Channel array defines of USB20_FROM_D0FIFOSEL */
95/*(Sample) value = USB20_FROM_D0FIFOSEL[ channel ][ index ]->D0FIFOSEL; */
96#define USB20_FROM_D0FIFOSEL_COUNT (2)
97#define USB20_FROM_D0FIFOSEL_ADDRESS_LIST \
98{ /* ->MISRA 11.3 */ /* ->SEC R2.7.1 */ \
99{ \
100 &USB200_FROM_D0FIFOSEL, &USB200_FROM_D1FIFOSEL },{ \
101 &USB201_FROM_D0FIFOSEL, &USB201_FROM_D1FIFOSEL \
102} \
103} /* <-MISRA 11.3 */ /* <-SEC R2.7.1 */ /* { } is for MISRA 19.4 */
104#define USB200_FROM_D0FIFOSEL (*(struct st_usb20_from_d0fifosel *)&USB200.D0FIFOSEL) /* USB200_FROM_D0FIFOSEL */
105#define USB200_FROM_D1FIFOSEL (*(struct st_usb20_from_d0fifosel *)&USB200.D1FIFOSEL) /* USB200_FROM_D1FIFOSEL */
106#define USB201_FROM_D0FIFOSEL (*(struct st_usb20_from_d0fifosel *)&USB201.D0FIFOSEL) /* USB201_FROM_D0FIFOSEL */
107#define USB201_FROM_D1FIFOSEL (*(struct st_usb20_from_d0fifosel *)&USB201.D1FIFOSEL) /* USB201_FROM_D1FIFOSEL */
108
109
110/* End of channel array defines of USB20 */
111
112
113#define SYSCFG0_0 (USB200.SYSCFG0)
114#define BUSWAIT_0 (USB200.BUSWAIT)
115#define SYSSTS0_0 (USB200.SYSSTS0)
116#define DVSTCTR0_0 (USB200.DVSTCTR0)
117#define TESTMODE_0 (USB200.TESTMODE)
118#define D0FBCFG_0 (USB200.D0FBCFG)
119#define D1FBCFG_0 (USB200.D1FBCFG)
120#define CFIFO_0 (USB200.CFIFO.UINT32)
121#define CFIFO_0L (USB200.CFIFO.UINT16[R_IO_L])
122#define CFIFO_0H (USB200.CFIFO.UINT16[R_IO_H])
123#define CFIFO_0LL (USB200.CFIFO.UINT8[R_IO_LL])
124#define CFIFO_0LH (USB200.CFIFO.UINT8[R_IO_LH])
125#define CFIFO_0HL (USB200.CFIFO.UINT8[R_IO_HL])
126#define CFIFO_0HH (USB200.CFIFO.UINT8[R_IO_HH])
127#define D0FIFO_0 (USB200.D0FIFO.UINT32)
128#define D0FIFO_0L (USB200.D0FIFO.UINT16[R_IO_L])
129#define D0FIFO_0H (USB200.D0FIFO.UINT16[R_IO_H])
130#define D0FIFO_0LL (USB200.D0FIFO.UINT8[R_IO_LL])
131#define D0FIFO_0LH (USB200.D0FIFO.UINT8[R_IO_LH])
132#define D0FIFO_0HL (USB200.D0FIFO.UINT8[R_IO_HL])
133#define D0FIFO_0HH (USB200.D0FIFO.UINT8[R_IO_HH])
134#define D1FIFO_0 (USB200.D1FIFO.UINT32)
135#define D1FIFO_0L (USB200.D1FIFO.UINT16[R_IO_L])
136#define D1FIFO_0H (USB200.D1FIFO.UINT16[R_IO_H])
137#define D1FIFO_0LL (USB200.D1FIFO.UINT8[R_IO_LL])
138#define D1FIFO_0LH (USB200.D1FIFO.UINT8[R_IO_LH])
139#define D1FIFO_0HL (USB200.D1FIFO.UINT8[R_IO_HL])
140#define D1FIFO_0HH (USB200.D1FIFO.UINT8[R_IO_HH])
141#define CFIFOSEL_0 (USB200.CFIFOSEL)
142#define CFIFOCTR_0 (USB200.CFIFOCTR)
143#define D0FIFOSEL_0 (USB200.D0FIFOSEL)
144#define D0FIFOCTR_0 (USB200.D0FIFOCTR)
145#define D1FIFOSEL_0 (USB200.D1FIFOSEL)
146#define D1FIFOCTR_0 (USB200.D1FIFOCTR)
147#define INTENB0_0 (USB200.INTENB0)
148#define INTENB1_0 (USB200.INTENB1)
149#define BRDYENB_0 (USB200.BRDYENB)
150#define NRDYENB_0 (USB200.NRDYENB)
151#define BEMPENB_0 (USB200.BEMPENB)
152#define SOFCFG_0 (USB200.SOFCFG)
153#define INTSTS0_0 (USB200.INTSTS0)
154#define INTSTS1_0 (USB200.INTSTS1)
155#define BRDYSTS_0 (USB200.BRDYSTS)
156#define NRDYSTS_0 (USB200.NRDYSTS)
157#define BEMPSTS_0 (USB200.BEMPSTS)
158#define FRMNUM_0 (USB200.FRMNUM)
159#define UFRMNUM_0 (USB200.UFRMNUM)
160#define USBADDR_0 (USB200.USBADDR)
161#define USBREQ_0 (USB200.USBREQ)
162#define USBVAL_0 (USB200.USBVAL)
163#define USBINDX_0 (USB200.USBINDX)
164#define USBLENG_0 (USB200.USBLENG)
165#define DCPCFG_0 (USB200.DCPCFG)
166#define DCPMAXP_0 (USB200.DCPMAXP)
167#define DCPCTR_0 (USB200.DCPCTR)
168#define PIPESEL_0 (USB200.PIPESEL)
169#define PIPECFG_0 (USB200.PIPECFG)
170#define PIPEBUF_0 (USB200.PIPEBUF)
171#define PIPEMAXP_0 (USB200.PIPEMAXP)
172#define PIPEPERI_0 (USB200.PIPEPERI)
173#define PIPE1CTR_0 (USB200.PIPE1CTR)
174#define PIPE2CTR_0 (USB200.PIPE2CTR)
175#define PIPE3CTR_0 (USB200.PIPE3CTR)
176#define PIPE4CTR_0 (USB200.PIPE4CTR)
177#define PIPE5CTR_0 (USB200.PIPE5CTR)
178#define PIPE6CTR_0 (USB200.PIPE6CTR)
179#define PIPE7CTR_0 (USB200.PIPE7CTR)
180#define PIPE8CTR_0 (USB200.PIPE8CTR)
181#define PIPE9CTR_0 (USB200.PIPE9CTR)
182#define PIPEACTR_0 (USB200.PIPEACTR)
183#define PIPEBCTR_0 (USB200.PIPEBCTR)
184#define PIPECCTR_0 (USB200.PIPECCTR)
185#define PIPEDCTR_0 (USB200.PIPEDCTR)
186#define PIPEECTR_0 (USB200.PIPEECTR)
187#define PIPEFCTR_0 (USB200.PIPEFCTR)
188#define PIPE1TRE_0 (USB200.PIPE1TRE)
189#define PIPE1TRN_0 (USB200.PIPE1TRN)
190#define PIPE2TRE_0 (USB200.PIPE2TRE)
191#define PIPE2TRN_0 (USB200.PIPE2TRN)
192#define PIPE3TRE_0 (USB200.PIPE3TRE)
193#define PIPE3TRN_0 (USB200.PIPE3TRN)
194#define PIPE4TRE_0 (USB200.PIPE4TRE)
195#define PIPE4TRN_0 (USB200.PIPE4TRN)
196#define PIPE5TRE_0 (USB200.PIPE5TRE)
197#define PIPE5TRN_0 (USB200.PIPE5TRN)
198#define PIPEBTRE_0 (USB200.PIPEBTRE)
199#define PIPEBTRN_0 (USB200.PIPEBTRN)
200#define PIPECTRE_0 (USB200.PIPECTRE)
201#define PIPECTRN_0 (USB200.PIPECTRN)
202#define PIPEDTRE_0 (USB200.PIPEDTRE)
203#define PIPEDTRN_0 (USB200.PIPEDTRN)
204#define PIPEETRE_0 (USB200.PIPEETRE)
205#define PIPEETRN_0 (USB200.PIPEETRN)
206#define PIPEFTRE_0 (USB200.PIPEFTRE)
207#define PIPEFTRN_0 (USB200.PIPEFTRN)
208#define PIPE9TRE_0 (USB200.PIPE9TRE)
209#define PIPE9TRN_0 (USB200.PIPE9TRN)
210#define PIPEATRE_0 (USB200.PIPEATRE)
211#define PIPEATRN_0 (USB200.PIPEATRN)
212#define DEVADD0_0 (USB200.DEVADD0)
213#define DEVADD1_0 (USB200.DEVADD1)
214#define DEVADD2_0 (USB200.DEVADD2)
215#define DEVADD3_0 (USB200.DEVADD3)
216#define DEVADD4_0 (USB200.DEVADD4)
217#define DEVADD5_0 (USB200.DEVADD5)
218#define DEVADD6_0 (USB200.DEVADD6)
219#define DEVADD7_0 (USB200.DEVADD7)
220#define DEVADD8_0 (USB200.DEVADD8)
221#define DEVADD9_0 (USB200.DEVADD9)
222#define DEVADDA_0 (USB200.DEVADDA)
223#define SUSPMODE_0 (USB200.SUSPMODE)
224#define D0FIFOB0_0 (USB200.D0FIFOB0)
225#define D0FIFOB1_0 (USB200.D0FIFOB1)
226#define D0FIFOB2_0 (USB200.D0FIFOB2)
227#define D0FIFOB3_0 (USB200.D0FIFOB3)
228#define D0FIFOB4_0 (USB200.D0FIFOB4)
229#define D0FIFOB5_0 (USB200.D0FIFOB5)
230#define D0FIFOB6_0 (USB200.D0FIFOB6)
231#define D0FIFOB7_0 (USB200.D0FIFOB7)
232#define D1FIFOB0_0 (USB200.D1FIFOB0)
233#define D1FIFOB1_0 (USB200.D1FIFOB1)
234#define D1FIFOB2_0 (USB200.D1FIFOB2)
235#define D1FIFOB3_0 (USB200.D1FIFOB3)
236#define D1FIFOB4_0 (USB200.D1FIFOB4)
237#define D1FIFOB5_0 (USB200.D1FIFOB5)
238#define D1FIFOB6_0 (USB200.D1FIFOB6)
239#define D1FIFOB7_0 (USB200.D1FIFOB7)
240#define SYSCFG0_1 (USB201.SYSCFG0)
241#define BUSWAIT_1 (USB201.BUSWAIT)
242#define SYSSTS0_1 (USB201.SYSSTS0)
243#define DVSTCTR0_1 (USB201.DVSTCTR0)
244#define TESTMODE_1 (USB201.TESTMODE)
245#define D0FBCFG_1 (USB201.D0FBCFG)
246#define D1FBCFG_1 (USB201.D1FBCFG)
247#define CFIFO_1 (USB201.CFIFO.UINT32)
248#define CFIFO_1L (USB201.CFIFO.UINT16[R_IO_L])
249#define CFIFO_1H (USB201.CFIFO.UINT16[R_IO_H])
250#define CFIFO_1LL (USB201.CFIFO.UINT8[R_IO_LL])
251#define CFIFO_1LH (USB201.CFIFO.UINT8[R_IO_LH])
252#define CFIFO_1HL (USB201.CFIFO.UINT8[R_IO_HL])
253#define CFIFO_1HH (USB201.CFIFO.UINT8[R_IO_HH])
254#define D0FIFO_1 (USB201.D0FIFO.UINT32)
255#define D0FIFO_1L (USB201.D0FIFO.UINT16[R_IO_L])
256#define D0FIFO_1H (USB201.D0FIFO.UINT16[R_IO_H])
257#define D0FIFO_1LL (USB201.D0FIFO.UINT8[R_IO_LL])
258#define D0FIFO_1LH (USB201.D0FIFO.UINT8[R_IO_LH])
259#define D0FIFO_1HL (USB201.D0FIFO.UINT8[R_IO_HL])
260#define D0FIFO_1HH (USB201.D0FIFO.UINT8[R_IO_HH])
261#define D1FIFO_1 (USB201.D1FIFO.UINT32)
262#define D1FIFO_1L (USB201.D1FIFO.UINT16[R_IO_L])
263#define D1FIFO_1H (USB201.D1FIFO.UINT16[R_IO_H])
264#define D1FIFO_1LL (USB201.D1FIFO.UINT8[R_IO_LL])
265#define D1FIFO_1LH (USB201.D1FIFO.UINT8[R_IO_LH])
266#define D1FIFO_1HL (USB201.D1FIFO.UINT8[R_IO_HL])
267#define D1FIFO_1HH (USB201.D1FIFO.UINT8[R_IO_HH])
268#define CFIFOSEL_1 (USB201.CFIFOSEL)
269#define CFIFOCTR_1 (USB201.CFIFOCTR)
270#define D0FIFOSEL_1 (USB201.D0FIFOSEL)
271#define D0FIFOCTR_1 (USB201.D0FIFOCTR)
272#define D1FIFOSEL_1 (USB201.D1FIFOSEL)
273#define D1FIFOCTR_1 (USB201.D1FIFOCTR)
274#define INTENB0_1 (USB201.INTENB0)
275#define INTENB1_1 (USB201.INTENB1)
276#define BRDYENB_1 (USB201.BRDYENB)
277#define NRDYENB_1 (USB201.NRDYENB)
278#define BEMPENB_1 (USB201.BEMPENB)
279#define SOFCFG_1 (USB201.SOFCFG)
280#define INTSTS0_1 (USB201.INTSTS0)
281#define INTSTS1_1 (USB201.INTSTS1)
282#define BRDYSTS_1 (USB201.BRDYSTS)
283#define NRDYSTS_1 (USB201.NRDYSTS)
284#define BEMPSTS_1 (USB201.BEMPSTS)
285#define FRMNUM_1 (USB201.FRMNUM)
286#define UFRMNUM_1 (USB201.UFRMNUM)
287#define USBADDR_1 (USB201.USBADDR)
288#define USBREQ_1 (USB201.USBREQ)
289#define USBVAL_1 (USB201.USBVAL)
290#define USBINDX_1 (USB201.USBINDX)
291#define USBLENG_1 (USB201.USBLENG)
292#define DCPCFG_1 (USB201.DCPCFG)
293#define DCPMAXP_1 (USB201.DCPMAXP)
294#define DCPCTR_1 (USB201.DCPCTR)
295#define PIPESEL_1 (USB201.PIPESEL)
296#define PIPECFG_1 (USB201.PIPECFG)
297#define PIPEBUF_1 (USB201.PIPEBUF)
298#define PIPEMAXP_1 (USB201.PIPEMAXP)
299#define PIPEPERI_1 (USB201.PIPEPERI)
300#define PIPE1CTR_1 (USB201.PIPE1CTR)
301#define PIPE2CTR_1 (USB201.PIPE2CTR)
302#define PIPE3CTR_1 (USB201.PIPE3CTR)
303#define PIPE4CTR_1 (USB201.PIPE4CTR)
304#define PIPE5CTR_1 (USB201.PIPE5CTR)
305#define PIPE6CTR_1 (USB201.PIPE6CTR)
306#define PIPE7CTR_1 (USB201.PIPE7CTR)
307#define PIPE8CTR_1 (USB201.PIPE8CTR)
308#define PIPE9CTR_1 (USB201.PIPE9CTR)
309#define PIPEACTR_1 (USB201.PIPEACTR)
310#define PIPEBCTR_1 (USB201.PIPEBCTR)
311#define PIPECCTR_1 (USB201.PIPECCTR)
312#define PIPEDCTR_1 (USB201.PIPEDCTR)
313#define PIPEECTR_1 (USB201.PIPEECTR)
314#define PIPEFCTR_1 (USB201.PIPEFCTR)
315#define PIPE1TRE_1 (USB201.PIPE1TRE)
316#define PIPE1TRN_1 (USB201.PIPE1TRN)
317#define PIPE2TRE_1 (USB201.PIPE2TRE)
318#define PIPE2TRN_1 (USB201.PIPE2TRN)
319#define PIPE3TRE_1 (USB201.PIPE3TRE)
320#define PIPE3TRN_1 (USB201.PIPE3TRN)
321#define PIPE4TRE_1 (USB201.PIPE4TRE)
322#define PIPE4TRN_1 (USB201.PIPE4TRN)
323#define PIPE5TRE_1 (USB201.PIPE5TRE)
324#define PIPE5TRN_1 (USB201.PIPE5TRN)
325#define PIPEBTRE_1 (USB201.PIPEBTRE)
326#define PIPEBTRN_1 (USB201.PIPEBTRN)
327#define PIPECTRE_1 (USB201.PIPECTRE)
328#define PIPECTRN_1 (USB201.PIPECTRN)
329#define PIPEDTRE_1 (USB201.PIPEDTRE)
330#define PIPEDTRN_1 (USB201.PIPEDTRN)
331#define PIPEETRE_1 (USB201.PIPEETRE)
332#define PIPEETRN_1 (USB201.PIPEETRN)
333#define PIPEFTRE_1 (USB201.PIPEFTRE)
334#define PIPEFTRN_1 (USB201.PIPEFTRN)
335#define PIPE9TRE_1 (USB201.PIPE9TRE)
336#define PIPE9TRN_1 (USB201.PIPE9TRN)
337#define PIPEATRE_1 (USB201.PIPEATRE)
338#define PIPEATRN_1 (USB201.PIPEATRN)
339#define DEVADD0_1 (USB201.DEVADD0)
340#define DEVADD1_1 (USB201.DEVADD1)
341#define DEVADD2_1 (USB201.DEVADD2)
342#define DEVADD3_1 (USB201.DEVADD3)
343#define DEVADD4_1 (USB201.DEVADD4)
344#define DEVADD5_1 (USB201.DEVADD5)
345#define DEVADD6_1 (USB201.DEVADD6)
346#define DEVADD7_1 (USB201.DEVADD7)
347#define DEVADD8_1 (USB201.DEVADD8)
348#define DEVADD9_1 (USB201.DEVADD9)
349#define DEVADDA_1 (USB201.DEVADDA)
350#define SUSPMODE_1 (USB201.SUSPMODE)
351#define D0FIFOB0_1 (USB201.D0FIFOB0)
352#define D0FIFOB1_1 (USB201.D0FIFOB1)
353#define D0FIFOB2_1 (USB201.D0FIFOB2)
354#define D0FIFOB3_1 (USB201.D0FIFOB3)
355#define D0FIFOB4_1 (USB201.D0FIFOB4)
356#define D0FIFOB5_1 (USB201.D0FIFOB5)
357#define D0FIFOB6_1 (USB201.D0FIFOB6)
358#define D0FIFOB7_1 (USB201.D0FIFOB7)
359#define D1FIFOB0_1 (USB201.D1FIFOB0)
360#define D1FIFOB1_1 (USB201.D1FIFOB1)
361#define D1FIFOB2_1 (USB201.D1FIFOB2)
362#define D1FIFOB3_1 (USB201.D1FIFOB3)
363#define D1FIFOB4_1 (USB201.D1FIFOB4)
364#define D1FIFOB5_1 (USB201.D1FIFOB5)
365#define D1FIFOB6_1 (USB201.D1FIFOB6)
366#define D1FIFOB7_1 (USB201.D1FIFOB7)
367
368#define USB20_D0FBCFG_COUNT (2)
369#define USB20_D0FIFO_COUNT (2)
370#define USB20_INTENB0_COUNT (2)
371#define USB20_INTSTS0_COUNT (2)
372#define USB20_PIPE1CTR_COUNT (0xF)
373#define USB20_DEVADD0_COUNT (0xB)
374#define USB20_D0FIFOB0_COUNT (0x8)
375
376
377typedef struct st_usb20
378{
379 /* USB20 */
380 volatile uint16_t SYSCFG0; /* SYSCFG0 */
381 volatile uint16_t BUSWAIT; /* BUSWAIT */
382 volatile uint16_t SYSSTS0; /* SYSSTS0 */
383 volatile uint8_t dummy1[2]; /* */
384 volatile uint16_t DVSTCTR0; /* DVSTCTR0 */
385 volatile uint8_t dummy2[2]; /* */
386 volatile uint16_t TESTMODE; /* TESTMODE */
387 volatile uint8_t dummy3[2]; /* */
388
389/* #define USB20_D0FBCFG_COUNT (2) */
390 volatile uint16_t D0FBCFG; /* D0FBCFG */
391 volatile uint16_t D1FBCFG; /* D1FBCFG */
392 union iodefine_reg32_t CFIFO; /* CFIFO */
393
394/* #define USB20_D0FIFO_COUNT (2) */
395 union iodefine_reg32_t D0FIFO; /* D0FIFO */
396 union iodefine_reg32_t D1FIFO; /* D1FIFO */
397
398 volatile uint16_t CFIFOSEL; /* CFIFOSEL */
399 volatile uint16_t CFIFOCTR; /* CFIFOCTR */
400 volatile uint8_t dummy4[4]; /* */
401
402/* start of struct st_usb20_from_d0fifosel */
403 volatile uint16_t D0FIFOSEL; /* D0FIFOSEL */
404 volatile uint16_t D0FIFOCTR; /* D0FIFOCTR */
405
406/* end of struct st_usb20_from_d0fifosel */
407
408/* start of struct st_usb20_from_d0fifosel */
409 volatile uint16_t D1FIFOSEL; /* D1FIFOSEL */
410 volatile uint16_t D1FIFOCTR; /* D1FIFOCTR */
411
412/* end of struct st_usb20_from_d0fifosel */
413
414/* #define USB20_INTENB0_COUNT (2) */
415 volatile uint16_t INTENB0; /* INTENB0 */
416 volatile uint16_t INTENB1; /* INTENB1 */
417 volatile uint8_t dummy5[2]; /* */
418 volatile uint16_t BRDYENB; /* BRDYENB */
419 volatile uint16_t NRDYENB; /* NRDYENB */
420 volatile uint16_t BEMPENB; /* BEMPENB */
421 volatile uint16_t SOFCFG; /* SOFCFG */
422 volatile uint8_t dummy6[2]; /* */
423
424/* #define USB20_INTSTS0_COUNT (2) */
425 volatile uint16_t INTSTS0; /* INTSTS0 */
426 volatile uint16_t INTSTS1; /* INTSTS1 */
427 volatile uint8_t dummy7[2]; /* */
428 volatile uint16_t BRDYSTS; /* BRDYSTS */
429 volatile uint16_t NRDYSTS; /* NRDYSTS */
430 volatile uint16_t BEMPSTS; /* BEMPSTS */
431 volatile uint16_t FRMNUM; /* FRMNUM */
432 volatile uint16_t UFRMNUM; /* UFRMNUM */
433 volatile uint16_t USBADDR; /* USBADDR */
434 volatile uint8_t dummy8[2]; /* */
435 volatile uint16_t USBREQ; /* USBREQ */
436 volatile uint16_t USBVAL; /* USBVAL */
437 volatile uint16_t USBINDX; /* USBINDX */
438 volatile uint16_t USBLENG; /* USBLENG */
439 volatile uint16_t DCPCFG; /* DCPCFG */
440 volatile uint16_t DCPMAXP; /* DCPMAXP */
441 volatile uint16_t DCPCTR; /* DCPCTR */
442 volatile uint8_t dummy9[2]; /* */
443 volatile uint16_t PIPESEL; /* PIPESEL */
444 volatile uint8_t dummy10[2]; /* */
445 volatile uint16_t PIPECFG; /* PIPECFG */
446 volatile uint16_t PIPEBUF; /* PIPEBUF */
447 volatile uint16_t PIPEMAXP; /* PIPEMAXP */
448 volatile uint16_t PIPEPERI; /* PIPEPERI */
449
450/* #define USB20_PIPE1CTR_COUNT (0xF) */
451 volatile uint16_t PIPE1CTR; /* PIPE1CTR */
452 volatile uint16_t PIPE2CTR; /* PIPE2CTR */
453 volatile uint16_t PIPE3CTR; /* PIPE3CTR */
454 volatile uint16_t PIPE4CTR; /* PIPE4CTR */
455 volatile uint16_t PIPE5CTR; /* PIPE5CTR */
456 volatile uint16_t PIPE6CTR; /* PIPE6CTR */
457 volatile uint16_t PIPE7CTR; /* PIPE7CTR */
458 volatile uint16_t PIPE8CTR; /* PIPE8CTR */
459 volatile uint16_t PIPE9CTR; /* PIPE9CTR */
460 volatile uint16_t PIPEACTR; /* PIPEACTR */
461 volatile uint16_t PIPEBCTR; /* PIPEBCTR */
462 volatile uint16_t PIPECCTR; /* PIPECCTR */
463 volatile uint16_t PIPEDCTR; /* PIPEDCTR */
464 volatile uint16_t PIPEECTR; /* PIPEECTR */
465 volatile uint16_t PIPEFCTR; /* PIPEFCTR */
466 volatile uint8_t dummy11[2]; /* */
467
468/* start of struct st_usb20_from_pipe1tre */
469 volatile uint16_t PIPE1TRE; /* PIPE1TRE */
470 volatile uint16_t PIPE1TRN; /* PIPE1TRN */
471
472/* end of struct st_usb20_from_pipe1tre */
473
474/* start of struct st_usb20_from_pipe1tre */
475 volatile uint16_t PIPE2TRE; /* PIPE2TRE */
476 volatile uint16_t PIPE2TRN; /* PIPE2TRN */
477
478/* end of struct st_usb20_from_pipe1tre */
479
480/* start of struct st_usb20_from_pipe1tre */
481 volatile uint16_t PIPE3TRE; /* PIPE3TRE */
482 volatile uint16_t PIPE3TRN; /* PIPE3TRN */
483
484/* end of struct st_usb20_from_pipe1tre */
485
486/* start of struct st_usb20_from_pipe1tre */
487 volatile uint16_t PIPE4TRE; /* PIPE4TRE */
488 volatile uint16_t PIPE4TRN; /* PIPE4TRN */
489
490/* end of struct st_usb20_from_pipe1tre */
491
492/* start of struct st_usb20_from_pipe1tre */
493 volatile uint16_t PIPE5TRE; /* PIPE5TRE */
494 volatile uint16_t PIPE5TRN; /* PIPE5TRN */
495
496/* end of struct st_usb20_from_pipe1tre */
497 volatile uint16_t PIPEBTRE; /* PIPEBTRE */
498 volatile uint16_t PIPEBTRN; /* PIPEBTRN */
499 volatile uint16_t PIPECTRE; /* PIPECTRE */
500 volatile uint16_t PIPECTRN; /* PIPECTRN */
501 volatile uint16_t PIPEDTRE; /* PIPEDTRE */
502 volatile uint16_t PIPEDTRN; /* PIPEDTRN */
503 volatile uint16_t PIPEETRE; /* PIPEETRE */
504 volatile uint16_t PIPEETRN; /* PIPEETRN */
505 volatile uint16_t PIPEFTRE; /* PIPEFTRE */
506 volatile uint16_t PIPEFTRN; /* PIPEFTRN */
507 volatile uint16_t PIPE9TRE; /* PIPE9TRE */
508 volatile uint16_t PIPE9TRN; /* PIPE9TRN */
509 volatile uint16_t PIPEATRE; /* PIPEATRE */
510 volatile uint16_t PIPEATRN; /* PIPEATRN */
511 volatile uint8_t dummy12[16]; /* */
512
513/* #define USB20_DEVADD0_COUNT (0xB) */
514 volatile uint16_t DEVADD0; /* DEVADD0 */
515 volatile uint16_t DEVADD1; /* DEVADD1 */
516 volatile uint16_t DEVADD2; /* DEVADD2 */
517 volatile uint16_t DEVADD3; /* DEVADD3 */
518 volatile uint16_t DEVADD4; /* DEVADD4 */
519 volatile uint16_t DEVADD5; /* DEVADD5 */
520 volatile uint16_t DEVADD6; /* DEVADD6 */
521 volatile uint16_t DEVADD7; /* DEVADD7 */
522 volatile uint16_t DEVADD8; /* DEVADD8 */
523 volatile uint16_t DEVADD9; /* DEVADD9 */
524 volatile uint16_t DEVADDA; /* DEVADDA */
525 volatile uint8_t dummy13[28]; /* */
526 volatile uint16_t SUSPMODE; /* SUSPMODE */
527 volatile uint8_t dummy14[92]; /* */
528
529/* start of struct st_usb20_from_dmfifob0 */
530 volatile uint32_t D0FIFOB0; /* D0FIFOB0 */
531 volatile uint32_t D0FIFOB1; /* D0FIFOB1 */
532 volatile uint32_t D0FIFOB2; /* D0FIFOB2 */
533 volatile uint32_t D0FIFOB3; /* D0FIFOB3 */
534 volatile uint32_t D0FIFOB4; /* D0FIFOB4 */
535 volatile uint32_t D0FIFOB5; /* D0FIFOB5 */
536 volatile uint32_t D0FIFOB6; /* D0FIFOB6 */
537 volatile uint32_t D0FIFOB7; /* D0FIFOB7 */
538
539/* end of struct st_usb20_from_dmfifob0 */
540
541/* start of struct st_usb20_from_dmfifob0 */
542 volatile uint32_t D1FIFOB0; /* D1FIFOB0 */
543 volatile uint32_t D1FIFOB1; /* D1FIFOB1 */
544 volatile uint32_t D1FIFOB2; /* D1FIFOB2 */
545 volatile uint32_t D1FIFOB3; /* D1FIFOB3 */
546 volatile uint32_t D1FIFOB4; /* D1FIFOB4 */
547 volatile uint32_t D1FIFOB5; /* D1FIFOB5 */
548 volatile uint32_t D1FIFOB6; /* D1FIFOB6 */
549 volatile uint32_t D1FIFOB7; /* D1FIFOB7 */
550
551/* end of struct st_usb20_from_dmfifob0 */
552} r_io_usb20_t;
553
554
555typedef struct st_usb20_from_d0fifosel
556{
557
558 volatile uint16_t D0FIFOSEL; /* D0FIFOSEL */
559 volatile uint16_t D0FIFOCTR; /* D0FIFOCTR */
560} r_io_usb20_from_d0fifosel_t;
561
562
563typedef struct st_usb20_from_pipe1tre
564{
565
566 volatile uint16_t PIPE1TRE; /* PIPE1TRE */
567 volatile uint16_t PIPE1TRN; /* PIPE1TRN */
568} r_io_usb20_from_pipe1tre_t;
569
570
571typedef struct st_usb20_from_dmfifob0
572{
573
574
575/* #define USB20_D0FIFOB0_COUNT (0x8) */
576 volatile uint32_t D0FIFOB0; /* D0FIFOB0 */
577 volatile uint32_t D0FIFOB1; /* D0FIFOB1 */
578 volatile uint32_t D0FIFOB2; /* D0FIFOB2 */
579 volatile uint32_t D0FIFOB3; /* D0FIFOB3 */
580 volatile uint32_t D0FIFOB4; /* D0FIFOB4 */
581 volatile uint32_t D0FIFOB5; /* D0FIFOB5 */
582 volatile uint32_t D0FIFOB6; /* D0FIFOB6 */
583 volatile uint32_t D0FIFOB7; /* D0FIFOB7 */
584} r_io_usb20_from_dmfifob0_t;
585
586
587/* Channel array defines of USB20 (2)*/
588#ifdef DECLARE_USB20_CHANNELS
589volatile struct st_usb20* USB20[ USB20_COUNT ] =
590 /* ->MISRA 11.3 */ /* ->SEC R2.7.1 */
591 USB20_ADDRESS_LIST;
592 /* <-MISRA 11.3 */ /* <-SEC R2.7.1 */
593#endif /* DECLARE_USB20_CHANNELS */
594
595#ifdef DECLARE_USB20_FROM_D0FIFOB0_CHANNELS
596volatile struct st_usb20_from_dmfifob0* USB20_FROM_D0FIFOB0[ USB20_COUNT ][ USB20_FROM_D0FIFOB0_COUNT ] =
597 /* ->MISRA 11.3 */ /* ->SEC R2.7.1 */
598 USB20_FROM_D0FIFOB0_ADDRESS_LIST;
599 /* <-MISRA 11.3 */ /* <-SEC R2.7.1 */
600#endif /* DECLARE_USB20_FROM_D0FIFOB0_CHANNELS */
601
602#ifdef DECLARE_USB20_FROM_PIPE1ATRE_CHANNELS
603volatile struct st_usb20_from_pipe1tre* USB20_FROM_PIPE1ATRE[ USB20_COUNT ][ USB20_FROM_PIPE1ATRE_COUNT ] =
604 /* ->MISRA 11.3 */ /* ->SEC R2.7.1 */
605 USB20_FROM_PIPE1ATRE_ADDRESS_LIST;
606 /* <-MISRA 11.3 */ /* <-SEC R2.7.1 */
607#endif /* DECLARE_USB20_FROM_PIPE1ATRE_CHANNELS */
608
609#ifdef DECLARE_USB20_FROM_D0FIFOSEL_CHANNELS
610volatile struct st_usb20_from_d0fifosel* USB20_FROM_D0FIFOSEL[ USB20_COUNT ][ USB20_FROM_D0FIFOSEL_COUNT ] =
611 /* ->MISRA 11.3 */ /* ->SEC R2.7.1 */
612 USB20_FROM_D0FIFOSEL_ADDRESS_LIST;
613 /* <-MISRA 11.3 */ /* <-SEC R2.7.1 */
614#endif /* DECLARE_USB20_FROM_D0FIFOSEL_CHANNELS */
615/* End of channel array defines of USB20 (2)*/
616
617
618/* <-SEC M1.10.1 */
619/* <-MISRA 18.4 */ /* <-SEC M1.6.2 */
620/* <-QAC 0857 */
621/* <-QAC 0639 */
622#endif
Note: See TracBrowser for help on using the repository browser.