forked for unsupported target

Dependents:   stm32-disco-example DISCO-F469NI_BD_SD_Card_Control

Fork of USBHOST by ST

Committer:
frq08711@LMECWL0871.LME.ST.COM
Date:
Wed Feb 15 10:49:44 2017 +0100
Revision:
1:ab240722d7ef
update to mbed 5.3.5

Who changed what in which revision?

UserRevisionLine numberNew contents of line
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 1 /*******************************************************************************
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 2 * DISCLAIMER
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 3 * This software is supplied by Renesas Electronics Corporation and is only
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 4 * intended for use with Renesas products. No other uses are authorized. This
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 5 * software is owned by Renesas Electronics Corporation and is protected under
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 6 * all applicable laws, including copyright laws.
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 7 * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 8 * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 9 * LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 10 * AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 11 * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 12 * ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 13 * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 14 * ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 15 * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 16 * Renesas reserves the right, without notice, to make changes to this software
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 17 * and to discontinue the availability of this software. By using this software,
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 18 * you agree to the additional terms and conditions found by accessing the
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 19 * following link:
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 20 * http://www.renesas.com/disclaimer
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 21 * Copyright (C) 2014 - 2015 Renesas Electronics Corporation. All rights reserved.
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 22 *******************************************************************************/
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 23
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 24 #ifndef USB_HOST_SETTING_H
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 25 #define USB_HOST_SETTING_H
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 26
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 27 #ifdef __cplusplus
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 28 extern "C" {
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 29 #endif
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 30
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 31 #define USB_HOST_CH 0
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 32 #define USB_HOST_HISPEED 1
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 33
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 34 #define INT_TRANS_MAX_NUM 4 /* min:1 max:4 */
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 35 #define ISO_TRANS_MAX_NUM 0 /* min:0 max:2 */
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 36
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 37 #if (USB_HOST_CH == 0)
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 38 #include "usb0_host.h"
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 39 #define USB20X USB200
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 40 #define USBIXUSBIX USBI0_IRQn
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 41 #define g_usbx_host_SupportUsbDeviceSpeed g_usb0_host_SupportUsbDeviceSpeed
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 42 #define g_usbx_host_UsbDeviceSpeed g_usb0_host_UsbDeviceSpeed
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 43 #define g_usbx_host_CmdStage g_usb0_host_CmdStage
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 44 #define g_usbx_host_pipe_status g_usb0_host_pipe_status
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 45 #define g_usbx_host_data_pointer g_usb0_host_data_pointer
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 46 #define g_usbx_host_data_count g_usb0_host_data_count
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 47 #define usbx_api_host_init usb0_api_host_init
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 48 #define usbx_host_UsbBusReset usb0_host_UsbBusReset
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 49 #define usbx_host_get_devadd usb0_host_get_devadd
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 50 #define usbx_host_set_devadd usb0_host_set_devadd
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 51 #define usbx_host_SetupStage usb0_host_SetupStage
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 52 #define usbx_host_CtrlWriteStart usb0_host_CtrlWriteStart
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 53 #define usbx_host_CtrlReadStart usb0_host_CtrlReadStart
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 54 #define usbx_api_host_SetEndpointTable usb0_api_host_SetEndpointTable
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 55 #define usbx_host_start_send_transfer usb0_host_start_send_transfer
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 56 #define usbx_host_start_receive_transfer usb0_host_start_receive_transfer
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 57 #define usbx_host_stop_transfer usb0_host_stop_transfer
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 58 #define usbx_host_set_sqclr usb0_host_set_sqclr
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 59 #define usbx_host_set_sqset usb0_host_set_sqset
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 60 #define usbx_host_CheckAttach usb0_host_CheckAttach
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 61 #define usbx_host_UsbDetach usb0_host_UsbDetach
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 62 #define usbx_host_UsbAttach usb0_host_UsbAttach
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 63 #define usbx_host_init_pipe_status usb0_host_init_pipe_status
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 64 #define usbx_host_get_sqmon usb0_host_get_sqmon
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 65 #else
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 66 #include "usb1_host.h"
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 67 #define USB20X USB201
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 68 #define USBIXUSBIX USBI1_IRQn
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 69 #define g_usbx_host_SupportUsbDeviceSpeed g_usb1_host_SupportUsbDeviceSpeed
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 70 #define g_usbx_host_UsbDeviceSpeed g_usb1_host_UsbDeviceSpeed
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 71 #define g_usbx_host_CmdStage g_usb1_host_CmdStage
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 72 #define g_usbx_host_pipe_status g_usb1_host_pipe_status
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 73 #define g_usbx_host_data_pointer g_usb1_host_data_pointer
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 74 #define g_usbx_host_data_count g_usb1_host_data_count
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 75 #define usbx_api_host_init usb1_api_host_init
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 76 #define usbx_host_UsbBusReset usb1_host_UsbBusReset
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 77 #define usbx_host_get_devadd usb1_host_get_devadd
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 78 #define usbx_host_set_devadd usb1_host_set_devadd
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 79 #define usbx_host_SetupStage usb1_host_SetupStage
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 80 #define usbx_host_CtrlWriteStart usb1_host_CtrlWriteStart
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 81 #define usbx_host_CtrlReadStart usb1_host_CtrlReadStart
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 82 #define usbx_api_host_SetEndpointTable usb1_api_host_SetEndpointTable
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 83 #define usbx_host_start_send_transfer usb1_host_start_send_transfer
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 84 #define usbx_host_start_receive_transfer usb1_host_start_receive_transfer
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 85 #define usbx_host_stop_transfer usb1_host_stop_transfer
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 86 #define usbx_host_set_sqclr usb1_host_set_sqclr
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 87 #define usbx_host_set_sqset usb1_host_set_sqset
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 88 #define usbx_host_CheckAttach usb1_host_CheckAttach
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 89 #define usbx_host_UsbDetach usb1_host_UsbDetach
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 90 #define usbx_host_UsbAttach usb1_host_UsbAttach
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 91 #define usbx_host_init_pipe_status usb1_host_init_pipe_status
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 92 #define usbx_host_get_sqmon usb1_host_get_sqmon
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 93 #endif
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 94
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 95
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 96 #ifdef __cplusplus
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 97 }
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 98 #endif
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 99
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 100 #endif /* USB_HOST_SETTING_H */