]> git.gir.st - tmk_keyboard.git/blob - tmk_core/tool/mbed/mbed-sdk/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb_function_setting.h
Merge commit '1fe4406f374291ab2e86e95a97341fd9c475fcb8'
[tmk_keyboard.git] / tmk_core / tool / mbed / mbed-sdk / libraries / USBDevice / USBDevice / TARGET_RENESAS / TARGET_RZ_A1H / usb_function_setting.h
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) 2014 - 2015 Renesas Electronics Corporation. All rights reserved.
22 *******************************************************************************/
23
24 #ifndef USB_FUNCTION_SETTING_H
25 #define USB_FUNCTION_SETTING_H
26
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30
31 #define USB_FUNCTION_CH 0
32 #define USB_FUNCTION_HISPEED 1
33
34 #if (USB_FUNCTION_CH == 0)
35 #include "usb0_function.h"
36 #define USB20X USB200
37 #define USBIX_IRQn USBI0_IRQn
38 #define g_usbx_function_bit_set g_usb0_function_bit_set
39 #define g_usbx_function_PipeDataSize g_usb0_function_PipeDataSize
40 #define g_usbx_function_data_count g_usb0_function_data_count
41 #define g_usbx_function_PipeTbl g_usb0_function_PipeTbl
42 #define g_usbx_function_DmaStatus g_usb0_function_DmaStatus
43 #define g_usbx_function_pipecfg g_usb0_function_pipecfg
44 #define g_usbx_function_pipe_status g_usb0_function_pipe_status
45 #define g_usbx_function_data_pointer g_usb0_function_data_pointer
46 #define g_usbx_function_pipebuf g_usb0_function_pipebuf
47 #define g_usbx_function_pipemaxp g_usb0_function_pipemaxp
48 #define g_usbx_function_pipeperi g_usb0_function_pipeperi
49 #define g_usbx_function_TestModeFlag g_usb0_function_TestModeFlag
50 #define usbx_function_BRDYInterruptPIPE0 usb0_function_BRDYInterruptPIPE0
51 #define usbx_function_BRDYInterrupt usb0_function_BRDYInterrupt
52 #define usbx_function_NRDYInterruptPIPE0 usb0_function_NRDYInterruptPIPE0
53 #define usbx_function_NRDYInterrupt usb0_function_NRDYInterrupt
54 #define usbx_function_BEMPInterruptPIPE0 usb0_function_BEMPInterruptPIPE0
55 #define usbx_function_BEMPInterrupt usb0_function_BEMPInterrupt
56 #define usbx_function_read_buffer_c usb0_function_read_buffer_c
57 #define usbx_function_set_pid_buf usb0_function_set_pid_buf
58 #define usbx_function_disable_brdy_int usb0_function_disable_brdy_int
59 #define usbx_function_set_pid_stall usb0_function_set_pid_stall
60 #define usbx_function_dma_interrupt_d0fifo usb0_function_dma_interrupt_d0fifo
61 #define usbx_function_read_dma usb0_function_read_dma
62 #define usbx_function_dma_interrupt_d1fifo usb0_function_dma_interrupt_d1fifo
63 #define usbx_function_write_buffer usb0_function_write_buffer
64 #define usbx_function_set_pid_nak usb0_function_set_pid_nak
65 #define usbx_function_get_mbw usb0_function_get_mbw
66 #define usbx_function_set_curpipe usb0_function_set_curpipe
67 #define usbx_function_aclrm usb0_function_aclrm
68 #define usbx_function_enable_nrdy_int usb0_function_enable_nrdy_int
69 #define usbx_function_enable_brdy_int usb0_function_enable_brdy_int
70 #define usbx_function_get_pid usb0_function_get_pid
71 #define usbx_function_get_inbuf usb0_function_get_inbuf
72 #define usbx_function_disable_bemp_int usb0_function_disable_bemp_int
73 #define usbx_function_EpToPipe usb0_function_EpToPipe
74 #define usbx_function_clear_pipe_tbl usb0_function_clear_pipe_tbl
75 #define Userdef_USB_usbx_function_d0fifo_dmaintid Userdef_USB_usb0_function_d0fifo_dmaintid
76 #define Userdef_USB_usbx_function_d1fifo_dmaintid Userdef_USB_usb0_function_d1fifo_dmaintid
77 #define usbx_function_reset_module usb0_function_reset_module
78 #define usbx_function_init_status usb0_function_init_status
79 #define usbx_function_InitModule usb0_function_InitModule
80 #define usbx_function_clear_alt usb0_function_clear_alt
81 #define usbx_function_set_sqclr usb0_function_set_sqclr
82 #define usbx_api_function_CtrlWriteStart usb0_api_function_CtrlWriteStart
83 #define usbx_api_function_CtrlReadStart usb0_api_function_CtrlReadStart
84 #define usbx_function_write_buffer_c usb0_function_write_buffer_c
85 #define usbx_api_function_check_pipe_status usb0_api_function_check_pipe_status
86 #define usbx_api_function_set_pid_nak usb0_api_function_set_pid_nak
87 #define usbx_api_function_clear_pipe_status usb0_api_function_clear_pipe_status
88 #define usbx_api_function_start_receive_transfer usb0_api_function_start_receive_transfer
89 #define usbx_function_read_buffer usb0_function_read_buffer
90 #define usbx_api_function_start_send_transfer usb0_api_function_start_send_transfer
91 #define usbx_function_stop_transfer usb0_function_stop_transfer
92 #define usbx_function_clear_pid_stall usb0_function_clear_pid_stall
93 #define usbx_function_CheckVBUStaus usb0_function_CheckVBUStaus
94 #define usbx_function_USB_FUNCTION_Attach usb0_function_USB_FUNCTION_Attach
95 #define usbx_function_USB_FUNCTION_Detach usb0_function_USB_FUNCTION_Detach
96 #define usbx_function_is_hispeed usb0_function_is_hispeed
97 #define usbx_function_ResetDescriptor usb0_function_ResetDescriptor
98 #define usbx_function_USB_FUNCTION_Suspend usb0_function_USB_FUNCTION_Suspend
99 #define usbx_function_USB_FUNCTION_TestMode usb0_function_USB_FUNCTION_TestMode
100 #else
101 #include "usb1_function.h"
102 #define USB20X USB201
103 #define USBIX_IRQn USBI1_IRQn
104 #define g_usbx_function_bit_set g_usb1_function_bit_set
105 #define g_usbx_function_PipeDataSize g_usb1_function_PipeDataSize
106 #define g_usbx_function_data_count g_usb1_function_data_count
107 #define g_usbx_function_PipeTbl g_usb1_function_PipeTbl
108 #define g_usbx_function_DmaStatus g_usb1_function_DmaStatus
109 #define g_usbx_function_pipecfg g_usb1_function_pipecfg
110 #define g_usbx_function_pipe_status g_usb1_function_pipe_status
111 #define g_usbx_function_data_pointer g_usb1_function_data_pointer
112 #define g_usbx_function_pipebuf g_usb1_function_pipebuf
113 #define g_usbx_function_pipemaxp g_usb1_function_pipemaxp
114 #define g_usbx_function_pipeperi g_usb1_function_pipeperi
115 #define g_usbx_function_TestModeFlag g_usb1_function_TestModeFlag
116 #define usbx_function_BRDYInterruptPIPE0 usb1_function_BRDYInterruptPIPE0
117 #define usbx_function_BRDYInterrupt usb1_function_BRDYInterrupt
118 #define usbx_function_NRDYInterruptPIPE0 usb1_function_NRDYInterruptPIPE0
119 #define usbx_function_NRDYInterrupt usb1_function_NRDYInterrupt
120 #define usbx_function_BEMPInterruptPIPE0 usb1_function_BEMPInterruptPIPE0
121 #define usbx_function_BEMPInterrupt usb1_function_BEMPInterrupt
122 #define usbx_function_read_buffer_c usb1_function_read_buffer_c
123 #define usbx_function_set_pid_buf usb1_function_set_pid_buf
124 #define usbx_function_disable_brdy_int usb1_function_disable_brdy_int
125 #define usbx_function_set_pid_stall usb1_function_set_pid_stall
126 #define usbx_function_dma_interrupt_d0fifo usb1_function_dma_interrupt_d0fifo
127 #define usbx_function_read_dma usb1_function_read_dma
128 #define usbx_function_dma_interrupt_d1fifo usb1_function_dma_interrupt_d1fifo
129 #define usbx_function_write_buffer usb1_function_write_buffer
130 #define usbx_function_set_pid_nak usb1_function_set_pid_nak
131 #define usbx_function_get_mbw usb1_function_get_mbw
132 #define usbx_function_set_curpipe usb1_function_set_curpipe
133 #define usbx_function_aclrm usb1_function_aclrm
134 #define usbx_function_enable_nrdy_int usb1_function_enable_nrdy_int
135 #define usbx_function_enable_brdy_int usb1_function_enable_brdy_int
136 #define usbx_function_get_pid usb1_function_get_pid
137 #define usbx_function_get_inbuf usb1_function_get_inbuf
138 #define usbx_function_disable_bemp_int usb1_function_disable_bemp_int
139 #define usbx_function_EpToPipe usb1_function_EpToPipe
140 #define usbx_function_clear_pipe_tbl usb1_function_clear_pipe_tbl
141 #define Userdef_USB_usbx_function_d0fifo_dmaintid Userdef_USB_usb1_function_d0fifo_dmaintid
142 #define Userdef_USB_usbx_function_d1fifo_dmaintid Userdef_USB_usb1_function_d1fifo_dmaintid
143 #define usbx_function_reset_module usb1_function_reset_module
144 #define usbx_function_init_status usb1_function_init_status
145 #define usbx_function_InitModule usb1_function_InitModule
146 #define usbx_function_clear_alt usb1_function_clear_alt
147 #define usbx_function_set_sqclr usb1_function_set_sqclr
148 #define usbx_api_function_CtrlWriteStart usb1_api_function_CtrlWriteStart
149 #define usbx_api_function_CtrlReadStart usb1_api_function_CtrlReadStart
150 #define usbx_function_write_buffer_c usb1_function_write_buffer_c
151 #define usbx_api_function_check_pipe_status usb1_api_function_check_pipe_status
152 #define usbx_api_function_set_pid_nak usb1_api_function_set_pid_nak
153 #define usbx_api_function_clear_pipe_status usb1_api_function_clear_pipe_status
154 #define usbx_api_function_start_receive_transfer usb1_api_function_start_receive_transfer
155 #define usbx_function_read_buffer usb1_function_read_buffer
156 #define usbx_api_function_start_send_transfer usb1_api_function_start_send_transfer
157 #define usbx_function_stop_transfer usb1_function_stop_transfer
158 #define usbx_function_clear_pid_stall usb1_function_clear_pid_stall
159 #define usbx_function_CheckVBUStaus usb1_function_CheckVBUStaus
160 #define usbx_function_USB_FUNCTION_Attach usb1_function_USB_FUNCTION_Attach
161 #define usbx_function_USB_FUNCTION_Detach usb1_function_USB_FUNCTION_Detach
162 #define usbx_function_is_hispeed usb1_function_is_hispeed
163 #define usbx_function_ResetDescriptor usb1_function_ResetDescriptor
164 #define usbx_function_USB_FUNCTION_Suspend usb1_function_USB_FUNCTION_Suspend
165 #define usbx_function_USB_FUNCTION_TestMode usb1_function_USB_FUNCTION_TestMode
166 #endif
167
168
169 #ifdef __cplusplus
170 }
171 #endif
172
173 #endif /* USB_FUNCTION_SETTING_H */
Imprint / Impressum