forked for unsupported target

Dependents:   stm32-disco-example DISCO-F469NI_BD_SD_Card_Control

Fork of USBHOST by ST

Committer:
bcjun@aname.co.kr
Date:
Tue Aug 08 16:20:39 2017 +0900
Revision:
7:75f3e275934b
Parent:
1:ab240722d7ef
change usbhost library that forked in my account

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) 2012 - 2014 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 * File Name : usb0_host_api.h
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 25 * $Rev: 1116 $
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 26 * $Date:: 2014-07-09 16:29:19 +0900#$
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 27 * Description : RZ/A1H R7S72100 USB Sample Program
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 28 *******************************************************************************/
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 29 #ifndef USB0_HOST_API_H
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 30 #define USB0_HOST_API_H
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 31
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 32
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 33 /*******************************************************************************
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 34 Typedef definitions
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 35 *******************************************************************************/
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 36
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 37
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 38 /*******************************************************************************
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 39 Macro definitions
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 40 *******************************************************************************/
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 41
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 42
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 43 /*******************************************************************************
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 44 Variable Externs
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 45 *******************************************************************************/
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 46
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 47
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 48 /*******************************************************************************
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 49 Functions Prototypes
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 50 *******************************************************************************/
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 51 void usb0_host_interrupt(uint32_t int_sense);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 52 void usb0_host_dma_interrupt_d0fifo(uint32_t int_sense);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 53 void usb0_host_dma_interrupt_d1fifo(uint32_t int_sense);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 54
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 55 uint16_t usb0_api_host_init(uint8_t int_level, uint16_t mode, uint16_t clockmode);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 56 int32_t usb0_api_host_enumeration(uint16_t devadr);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 57 int32_t usb0_api_host_detach(void);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 58 int32_t usb0_api_host_data_in(uint16_t devadr, uint16_t Pipe, uint32_t Size, uint8_t *data_buf);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 59 int32_t usb0_api_host_data_out(uint16_t devadr, uint16_t Pipe, uint32_t Size, uint8_t *data_buf);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 60 int32_t usb0_api_host_control_transfer(uint16_t devadr, uint16_t Req, uint16_t Val, uint16_t Indx, uint16_t Len, uint8_t *Buf);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 61 int32_t usb0_api_host_set_endpoint(uint16_t devadr, USB_HOST_CFG_PIPETBL_t *user_table, uint8_t *configdescriptor);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 62 int32_t usb0_api_host_clear_endpoint(USB_HOST_CFG_PIPETBL_t *user_table);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 63 int32_t usb0_api_host_clear_endpoint_pipe(uint16_t pipe_sel, USB_HOST_CFG_PIPETBL_t *user_table);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 64 uint16_t usb0_api_host_SetEndpointTable(uint16_t devadr, USB_HOST_CFG_PIPETBL_t *user_table, uint8_t* Table);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 65 int32_t usb0_api_host_data_count(uint16_t pipe, uint32_t *data_count);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 66
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 67 int32_t usb0_api_host_GetDeviceDescriptor(uint16_t devadr, uint16_t size, uint8_t *buf);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 68 int32_t usb0_api_host_GetConfigDescriptor(uint16_t devadr, uint16_t size, uint8_t *buf);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 69 int32_t usb0_api_host_SetConfig(uint16_t devadr, uint16_t confignum);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 70 int32_t usb0_api_host_SetInterface(uint16_t devadr, uint16_t interface_alt, uint16_t interface_index);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 71 int32_t usb0_api_host_ClearStall(uint16_t devadr, uint16_t ep_dir);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 72 uint16_t usb0_api_host_GetUsbDeviceState(void);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 73
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 74 void usb0_api_host_elt_4_4(void);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 75 void usb0_api_host_elt_4_5(void);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 76 void usb0_api_host_elt_4_6(void);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 77 void usb0_api_host_elt_4_7(void);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 78 void usb0_api_host_elt_4_8(void);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 79 void usb0_api_host_elt_4_9(void);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 80 void usb0_api_host_elt_get_desc(void);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 81
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 82 void usb0_host_EL_ModeInit(void);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 83 void usb0_host_EL_SetUACT(void);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 84 void usb0_host_EL_ClearUACT(void);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 85 void usb0_host_EL_SetTESTMODE(uint16_t mode);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 86 void usb0_host_EL_ClearNRDYSTS(uint16_t pipe);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 87 uint16_t usb0_host_EL_GetINTSTS1(void);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 88 void usb0_host_EL_UsbBusReset(void);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 89 void usb0_host_EL_UsbAttach(void);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 90 void usb0_host_EL_SetupStage(uint16_t Req, uint16_t Val, uint16_t Indx, uint16_t Len);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 91 void usb0_host_EL_StatusStage(void);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 92 void usb0_host_EL_CtrlReadStart(uint32_t Bsize, uint8_t *Table);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 93 int32_t usb0_host_EL_UsbSuspend(void);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 94 int32_t usb0_host_EL_UsbResume(void);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 95
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 96 #if 0 /* prototype in devdrv_usb_host_api.h */
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 97 uint16_t Userdef_USB_usb0_host_d0fifo_dmaintid(void);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 98 uint16_t Userdef_USB_usb0_host_d1fifo_dmaintid(void);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 99 void Userdef_USB_usb0_host_attach(void);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 100 void Userdef_USB_usb0_host_detach(void);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 101 void Userdef_USB_usb0_host_delay_1ms(void);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 102 void Userdef_USB_usb0_host_delay_xms(uint32_t msec);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 103 void Userdef_USB_usb0_host_delay_10us(uint32_t usec);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 104 void Userdef_USB_usb0_host_delay_500ns(void);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 105 void Userdef_USB_usb0_host_start_dma(USB_HOST_DMA_t *dma, uint16_t dfacc);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 106 uint32_t Userdef_USB_usb0_host_stop_dma0(void);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 107 uint32_t Userdef_USB_usb0_host_stop_dma1(void);
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 108 #endif
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 109
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 110 #endif /* USB0_HOST_API_H */
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 111
frq08711@LMECWL0871.LME.ST.COM 1:ab240722d7ef 112 /* End of File */