]> git.gir.st - tmk_keyboard.git/blob - tmk_core/tool/mbed/mbed-sdk/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb_host_setting.h
Merge commit '1fe4406f374291ab2e86e95a97341fd9c475fcb8'
[tmk_keyboard.git] / tmk_core / tool / mbed / mbed-sdk / libraries / USBHost / USBHost / TARGET_RENESAS / TARGET_RZ_A1H / usb_host_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_HOST_SETTING_H
25 #define USB_HOST_SETTING_H
26
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30
31 #define USB_HOST_CH 0
32 #define USB_HOST_HISPEED 1
33
34 #define INT_TRANS_MAX_NUM 4 /* min:1 max:4 */
35 #define ISO_TRANS_MAX_NUM 0 /* min:0 max:2 */
36
37 #if (USB_HOST_CH == 0)
38 #include "usb0_host.h"
39 #define USB20X USB200
40 #define USBIXUSBIX USBI0_IRQn
41 #define g_usbx_host_SupportUsbDeviceSpeed g_usb0_host_SupportUsbDeviceSpeed
42 #define g_usbx_host_UsbDeviceSpeed g_usb0_host_UsbDeviceSpeed
43 #define g_usbx_host_CmdStage g_usb0_host_CmdStage
44 #define g_usbx_host_pipe_status g_usb0_host_pipe_status
45 #define g_usbx_host_data_pointer g_usb0_host_data_pointer
46 #define g_usbx_host_data_count g_usb0_host_data_count
47 #define usbx_api_host_init usb0_api_host_init
48 #define usbx_host_UsbBusReset usb0_host_UsbBusReset
49 #define usbx_host_get_devadd usb0_host_get_devadd
50 #define usbx_host_set_devadd usb0_host_set_devadd
51 #define usbx_host_SetupStage usb0_host_SetupStage
52 #define usbx_host_CtrlWriteStart usb0_host_CtrlWriteStart
53 #define usbx_host_CtrlReadStart usb0_host_CtrlReadStart
54 #define usbx_api_host_SetEndpointTable usb0_api_host_SetEndpointTable
55 #define usbx_host_start_send_transfer usb0_host_start_send_transfer
56 #define usbx_host_start_receive_transfer usb0_host_start_receive_transfer
57 #define usbx_host_stop_transfer usb0_host_stop_transfer
58 #define usbx_host_set_sqclr usb0_host_set_sqclr
59 #define usbx_host_set_sqset usb0_host_set_sqset
60 #define usbx_host_CheckAttach usb0_host_CheckAttach
61 #define usbx_host_UsbDetach usb0_host_UsbDetach
62 #define usbx_host_UsbAttach usb0_host_UsbAttach
63 #define usbx_host_init_pipe_status usb0_host_init_pipe_status
64 #define usbx_host_get_sqmon usb0_host_get_sqmon
65 #else
66 #include "usb1_host.h"
67 #define USB20X USB201
68 #define USBIXUSBIX USBI1_IRQn
69 #define g_usbx_host_SupportUsbDeviceSpeed g_usb1_host_SupportUsbDeviceSpeed
70 #define g_usbx_host_UsbDeviceSpeed g_usb1_host_UsbDeviceSpeed
71 #define g_usbx_host_CmdStage g_usb1_host_CmdStage
72 #define g_usbx_host_pipe_status g_usb1_host_pipe_status
73 #define g_usbx_host_data_pointer g_usb1_host_data_pointer
74 #define g_usbx_host_data_count g_usb1_host_data_count
75 #define usbx_api_host_init usb1_api_host_init
76 #define usbx_host_UsbBusReset usb1_host_UsbBusReset
77 #define usbx_host_get_devadd usb1_host_get_devadd
78 #define usbx_host_set_devadd usb1_host_set_devadd
79 #define usbx_host_SetupStage usb1_host_SetupStage
80 #define usbx_host_CtrlWriteStart usb1_host_CtrlWriteStart
81 #define usbx_host_CtrlReadStart usb1_host_CtrlReadStart
82 #define usbx_api_host_SetEndpointTable usb1_api_host_SetEndpointTable
83 #define usbx_host_start_send_transfer usb1_host_start_send_transfer
84 #define usbx_host_start_receive_transfer usb1_host_start_receive_transfer
85 #define usbx_host_stop_transfer usb1_host_stop_transfer
86 #define usbx_host_set_sqclr usb1_host_set_sqclr
87 #define usbx_host_set_sqset usb1_host_set_sqset
88 #define usbx_host_CheckAttach usb1_host_CheckAttach
89 #define usbx_host_UsbDetach usb1_host_UsbDetach
90 #define usbx_host_UsbAttach usb1_host_UsbAttach
91 #define usbx_host_init_pipe_status usb1_host_init_pipe_status
92 #define usbx_host_get_sqmon usb1_host_get_sqmon
93 #endif
94
95
96 #ifdef __cplusplus
97 }
98 #endif
99
100 #endif /* USB_HOST_SETTING_H */
Imprint / Impressum