forked for unsupported target
Dependents: stm32-disco-example DISCO-F469NI_BD_SD_Card_Control
Fork of USBHOST by
USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/usb_host.h@7:75f3e275934b, 2017-08-08 (annotated)
- 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?
User | Revision | Line number | New 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 : usb_host.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 USB_HOST_H |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 30 | #define USB_HOST_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 | Includes <System Includes> , "Project Includes" |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 35 | *******************************************************************************/ |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 36 | #include "r_typedefs.h" |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 37 | #include "iodefine.h" |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 38 | #include "rza_io_regrw.h" |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 39 | |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 40 | |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 41 | /******************************************************************************* |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 42 | Typedef definitions |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 43 | *******************************************************************************/ |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 44 | |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 45 | |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 46 | /******************************************************************************* |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 47 | Macro definitions |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 48 | *******************************************************************************/ |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 49 | #define USB_HOST_DEVICE_0 (0u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 50 | #define USB_HOST_DEVICE_1 (1u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 51 | #define USB_HOST_DEVICE_2 (2u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 52 | #define USB_HOST_DEVICE_3 (3u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 53 | #define USB_HOST_DEVICE_4 (4u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 54 | #define USB_HOST_DEVICE_5 (5u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 55 | #define USB_HOST_DEVICE_6 (6u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 56 | #define USB_HOST_DEVICE_7 (7u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 57 | #define USB_HOST_DEVICE_8 (8u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 58 | #define USB_HOST_DEVICE_9 (9u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 59 | #define USB_HOST_DEVICE_10 (10u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 60 | |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 61 | #define USB_HOST_ENDPOINT_DESC (0x05) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 62 | |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 63 | #define USB_HOST_BITUPLLE (0x0002u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 64 | #define USB_HOST_BITUCKSEL (0x0004u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 65 | #define USB_HOST_BITBWAIT (0x003fu) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 66 | |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 67 | #define USB_HOST_BUSWAIT_02 (0x0000u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 68 | #define USB_HOST_BUSWAIT_03 (0x0001u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 69 | #define USB_HOST_BUSWAIT_04 (0x0002u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 70 | #define USB_HOST_BUSWAIT_05 (0x0003u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 71 | #define USB_HOST_BUSWAIT_06 (0x0004u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 72 | #define USB_HOST_BUSWAIT_07 (0x0005u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 73 | #define USB_HOST_BUSWAIT_08 (0x0006u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 74 | #define USB_HOST_BUSWAIT_09 (0x0007u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 75 | #define USB_HOST_BUSWAIT_10 (0x0008u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 76 | #define USB_HOST_BUSWAIT_11 (0x0009u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 77 | #define USB_HOST_BUSWAIT_12 (0x000au) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 78 | #define USB_HOST_BUSWAIT_13 (0x000bu) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 79 | #define USB_HOST_BUSWAIT_14 (0x000cu) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 80 | #define USB_HOST_BUSWAIT_15 (0x000du) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 81 | #define USB_HOST_BUSWAIT_16 (0x000eu) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 82 | #define USB_HOST_BUSWAIT_17 (0x000fu) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 83 | |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 84 | #define USB_HOST_FS_JSTS (0x0001u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 85 | #define USB_HOST_LS_JSTS (0x0002u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 86 | |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 87 | #define USB_HOST_BITRST (0x0040u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 88 | #define USB_HOST_BITRESUME (0x0020u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 89 | #define USB_HOST_BITUACT (0x0010u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 90 | #define USB_HOST_HSPROC (0x0004u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 91 | #define USB_HOST_HSMODE (0x0003u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 92 | #define USB_HOST_FSMODE (0x0002u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 93 | #define USB_HOST_LSMODE (0x0001u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 94 | #define USB_HOST_UNDECID (0x0000u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 95 | |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 96 | #define USB_HOST_BITRCNT (0x8000u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 97 | #define USB_HOST_BITDREQE (0x1000u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 98 | #define USB_HOST_BITMBW (0x0c00u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 99 | #define USB_HOST_BITMBW_8 (0x0000u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 100 | #define USB_HOST_BITMBW_16 (0x0400u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 101 | #define USB_HOST_BITMBW_32 (0x0800u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 102 | #define USB_HOST_BITBYTE_LITTLE (0x0000u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 103 | #define USB_HOST_BITBYTE_BIG (0x0100u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 104 | #define USB_HOST_BITISEL (0x0020u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 105 | #define USB_HOST_BITCURPIPE (0x000fu) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 106 | |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 107 | #define USB_HOST_CFIFO_READ (0x0000u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 108 | #define USB_HOST_CFIFO_WRITE (0x0020u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 109 | |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 110 | #define USB_HOST_BITBVAL (0x8000u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 111 | #define USB_HOST_BITBCLR (0x4000u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 112 | #define USB_HOST_BITFRDY (0x2000u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 113 | #define USB_HOST_BITDTLN (0x0fffu) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 114 | |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 115 | #define USB_HOST_BITBEMPE (0x0400u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 116 | #define USB_HOST_BITNRDYE (0x0200u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 117 | #define USB_HOST_BITBRDYE (0x0100u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 118 | #define USB_HOST_BITBEMP (0x0400u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 119 | #define USB_HOST_BITNRDY (0x0200u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 120 | #define USB_HOST_BITBRDY (0x0100u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 121 | |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 122 | #define USB_HOST_BITBCHGE (0x4000u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 123 | #define USB_HOST_BITDTCHE (0x1000u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 124 | #define USB_HOST_BITATTCHE (0x0800u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 125 | #define USB_HOST_BITEOFERRE (0x0040u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 126 | #define USB_HOST_BITBCHG (0x4000u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 127 | #define USB_HOST_BITDTCH (0x1000u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 128 | #define USB_HOST_BITATTCH (0x0800u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 129 | #define USB_HOST_BITEOFERR (0x0040u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 130 | |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 131 | #define USB_HOST_BITSIGNE (0x0020u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 132 | #define USB_HOST_BITSACKE (0x0010u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 133 | #define USB_HOST_BITSIGN (0x0020u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 134 | #define USB_HOST_BITSACK (0x0010u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 135 | |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 136 | #define USB_HOST_BITSUREQ (0x4000u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 137 | #define USB_HOST_BITSQSET (0x0080u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 138 | #define USB_HOST_PID_STALL2 (0x0003u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 139 | #define USB_HOST_PID_STALL (0x0002u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 140 | #define USB_HOST_PID_BUF (0x0001u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 141 | #define USB_HOST_PID_NAK (0x0000u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 142 | |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 143 | #define USB_HOST_PIPExBUF (64u) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 144 | |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 145 | #define USB_HOST_D0FIFO (0) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 146 | #define USB_HOST_D1FIFO (1) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 147 | #define USB_HOST_DMA_READY (0) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 148 | #define USB_HOST_DMA_BUSY (1) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 149 | #define USB_HOST_DMA_BUSYEND (2) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 150 | |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 151 | #define USB_HOST_FIFO_USE (0x7000) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 152 | |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 153 | #define USB_HOST_FIFOERROR (0xffff) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 154 | #define USB_HOST_WRITEEND (0) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 155 | #define USB_HOST_WRITESHRT (1) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 156 | #define USB_HOST_WRITING (2) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 157 | #define USB_HOST_WRITEDMA (3) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 158 | #define USB_HOST_READEND (0) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 159 | #define USB_HOST_READSHRT (1) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 160 | #define USB_HOST_READING (2) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 161 | #define USB_HOST_READOVER (3) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 162 | #define USB_HOST_READZERO (4) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 163 | |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 164 | #define USB_HOST_CMD_IDLE (0x0000) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 165 | #define USB_HOST_CMD_DOING (0x0001) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 166 | #define USB_HOST_CMD_DONE (0x0002) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 167 | #define USB_HOST_CMD_NORES (0x0003) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 168 | #define USB_HOST_CMD_STALL (0x0004) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 169 | #define USB_HOST_CMD_FIELD (0x000f) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 170 | |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 171 | #if 0 |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 172 | #define USB_HOST_CHG_CMDFIELD( r, v ) do { r &= ( ~USB_HOST_CMD_FIELD ); \ |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 173 | r |= v; } while(0) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 174 | #endif |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 175 | |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 176 | #define USB_HOST_MODE_WRITE (0x0100) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 177 | #define USB_HOST_MODE_READ (0x0200) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 178 | #define USB_HOST_MODE_NO_DATA (0x0300) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 179 | #define USB_HOST_MODE_FIELD (0x0f00) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 180 | |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 181 | #define USB_HOST_STAGE_SETUP (0x0010) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 182 | #define USB_HOST_STAGE_DATA (0x0020) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 183 | #define USB_HOST_STAGE_STATUS (0x0030) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 184 | #define USB_HOST_STAGE_FIELD (0x00f0) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 185 | |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 186 | #if 0 |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 187 | #define USB_HOST_CHG_STAGEFIELD( r, v ) do { r &= ( ~USB_HOST_STAGE_FIELD ); \ |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 188 | r |= v; } while(0) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 189 | #endif |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 190 | |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 191 | #define USB_HOST_DEVADD_MASK (0x7fc0) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 192 | |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 193 | |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 194 | /******************************************************************************* |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 195 | Imported global variables and functions (from other files) |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 196 | *******************************************************************************/ |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 197 | extern uint16_t g_usb_host_elt_clockmode; |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 198 | |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 199 | #endif /* USB_HOST_H */ |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 200 | |
frq08711@LMECWL0871.LME.ST.COM | 1:ab240722d7ef | 201 | /* End of File */ |