USBHost library. NOTE: This library is only officially supported on the LPC1768 platform. For more information, please see the handbook page.

Dependencies:   FATFileSystem mbed-rtos

Dependents:   BTstack WallbotWii SD to Flash Data Transfer USBHost-MSD_HelloWorld ... more

Legacy Warning

This is an mbed 2 library. To learn more about mbed OS 5, visit the docs.

Pull requests against this repository are no longer supported. Please raise against mbed OS 5 as documented above.

Committer:
mbed_official
Date:
Fri Apr 29 01:16:38 2016 +0100
Revision:
35:f72ccc6892ee
Synchronized with git revision fe9720f24b1adc71ab6962506ec51290f6afd270

Full URL: https://github.com/mbedmicro/mbed/commit/fe9720f24b1adc71ab6962506ec51290f6afd270/

[Renesas RZ/A1H] Enable asynchronous communications

Who changed what in which revision?

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