![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
j
Dependencies: General C12832 FatFileSystemCpp mbed
Fork of 1TestDECAWAVE_plus_others by
USBHostLite/usbhost_lpc17xx.h@2:e28f4414ca2c, 2016-08-19 (annotated)
- Committer:
- Kekehoho
- Date:
- Fri Aug 19 17:38:43 2016 +0000
- Revision:
- 2:e28f4414ca2c
- Parent:
- 1:4523d7cda75e
k
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kekehoho | 1:4523d7cda75e | 1 | /* |
Kekehoho | 1:4523d7cda75e | 2 | ************************************************************************************************************** |
Kekehoho | 1:4523d7cda75e | 3 | * NXP USB Host Stack |
Kekehoho | 1:4523d7cda75e | 4 | * |
Kekehoho | 1:4523d7cda75e | 5 | * (c) Copyright 2008, NXP SemiConductors |
Kekehoho | 1:4523d7cda75e | 6 | * (c) Copyright 2008, OnChip Technologies LLC |
Kekehoho | 1:4523d7cda75e | 7 | * All Rights Reserved |
Kekehoho | 1:4523d7cda75e | 8 | * |
Kekehoho | 1:4523d7cda75e | 9 | * www.nxp.com |
Kekehoho | 1:4523d7cda75e | 10 | * www.onchiptech.com |
Kekehoho | 1:4523d7cda75e | 11 | * |
Kekehoho | 1:4523d7cda75e | 12 | * File : usbhost_lpc17xx.h |
Kekehoho | 1:4523d7cda75e | 13 | * Programmer(s) : Ravikanth.P |
Kekehoho | 1:4523d7cda75e | 14 | * Version : |
Kekehoho | 1:4523d7cda75e | 15 | * |
Kekehoho | 1:4523d7cda75e | 16 | ************************************************************************************************************** |
Kekehoho | 1:4523d7cda75e | 17 | */ |
Kekehoho | 1:4523d7cda75e | 18 | |
Kekehoho | 1:4523d7cda75e | 19 | #ifndef USBHOST_LPC17xx_H |
Kekehoho | 1:4523d7cda75e | 20 | #define USBHOST_LPC17xx_H |
Kekehoho | 1:4523d7cda75e | 21 | |
Kekehoho | 1:4523d7cda75e | 22 | /* |
Kekehoho | 1:4523d7cda75e | 23 | ************************************************************************************************************** |
Kekehoho | 1:4523d7cda75e | 24 | * INCLUDE HEADER FILES |
Kekehoho | 1:4523d7cda75e | 25 | ************************************************************************************************************** |
Kekehoho | 1:4523d7cda75e | 26 | */ |
Kekehoho | 1:4523d7cda75e | 27 | |
Kekehoho | 1:4523d7cda75e | 28 | #include "usbhost_inc.h" |
Kekehoho | 1:4523d7cda75e | 29 | |
Kekehoho | 1:4523d7cda75e | 30 | /* |
Kekehoho | 1:4523d7cda75e | 31 | ************************************************************************************************************** |
Kekehoho | 1:4523d7cda75e | 32 | * PRINT CONFIGURATION |
Kekehoho | 1:4523d7cda75e | 33 | ************************************************************************************************************** |
Kekehoho | 1:4523d7cda75e | 34 | */ |
Kekehoho | 1:4523d7cda75e | 35 | |
Kekehoho | 1:4523d7cda75e | 36 | #define PRINT_ENABLE 1 |
Kekehoho | 1:4523d7cda75e | 37 | |
Kekehoho | 1:4523d7cda75e | 38 | #if PRINT_ENABLE |
Kekehoho | 1:4523d7cda75e | 39 | #define PRINT_Log(...) printf(__VA_ARGS__) |
Kekehoho | 1:4523d7cda75e | 40 | #define PRINT_Err(rc) printf("ERROR: In %s at Line %u - rc = %d\n", __FUNCTION__, __LINE__, rc) |
Kekehoho | 1:4523d7cda75e | 41 | |
Kekehoho | 1:4523d7cda75e | 42 | #else |
Kekehoho | 1:4523d7cda75e | 43 | #define PRINT_Log(...) do {} while(0) |
Kekehoho | 1:4523d7cda75e | 44 | #define PRINT_Err(rc) do {} while(0) |
Kekehoho | 1:4523d7cda75e | 45 | |
Kekehoho | 1:4523d7cda75e | 46 | #endif |
Kekehoho | 1:4523d7cda75e | 47 | |
Kekehoho | 1:4523d7cda75e | 48 | /* |
Kekehoho | 1:4523d7cda75e | 49 | ************************************************************************************************************** |
Kekehoho | 1:4523d7cda75e | 50 | * GENERAL DEFINITIONS |
Kekehoho | 1:4523d7cda75e | 51 | ************************************************************************************************************** |
Kekehoho | 1:4523d7cda75e | 52 | */ |
Kekehoho | 1:4523d7cda75e | 53 | |
Kekehoho | 1:4523d7cda75e | 54 | #define DESC_LENGTH(x) x[0] |
Kekehoho | 1:4523d7cda75e | 55 | #define DESC_TYPE(x) x[1] |
Kekehoho | 1:4523d7cda75e | 56 | |
Kekehoho | 1:4523d7cda75e | 57 | |
Kekehoho | 1:4523d7cda75e | 58 | #define HOST_GET_DESCRIPTOR(descType, descIndex, data, length) \ |
Kekehoho | 1:4523d7cda75e | 59 | Host_CtrlRecv(USB_DEVICE_TO_HOST | USB_RECIPIENT_DEVICE, GET_DESCRIPTOR, \ |
Kekehoho | 1:4523d7cda75e | 60 | (descType << 8)|(descIndex), 0, length, data) |
Kekehoho | 1:4523d7cda75e | 61 | |
Kekehoho | 1:4523d7cda75e | 62 | #define HOST_SET_ADDRESS(new_addr) \ |
Kekehoho | 1:4523d7cda75e | 63 | Host_CtrlSend(USB_HOST_TO_DEVICE | USB_RECIPIENT_DEVICE, SET_ADDRESS, \ |
Kekehoho | 1:4523d7cda75e | 64 | new_addr, 0, 0, NULL) |
Kekehoho | 1:4523d7cda75e | 65 | |
Kekehoho | 1:4523d7cda75e | 66 | #define USBH_SET_CONFIGURATION(configNum) \ |
Kekehoho | 1:4523d7cda75e | 67 | Host_CtrlSend(USB_HOST_TO_DEVICE | USB_RECIPIENT_DEVICE, SET_CONFIGURATION, \ |
Kekehoho | 1:4523d7cda75e | 68 | configNum, 0, 0, NULL) |
Kekehoho | 1:4523d7cda75e | 69 | |
Kekehoho | 1:4523d7cda75e | 70 | #define USBH_SET_INTERFACE(ifNum, altNum) \ |
Kekehoho | 1:4523d7cda75e | 71 | Host_CtrlSend(USB_HOST_TO_DEVICE | USB_RECIPIENT_INTERFACE, SET_INTERFACE, \ |
Kekehoho | 1:4523d7cda75e | 72 | altNum, ifNum, 0, NULL) |
Kekehoho | 1:4523d7cda75e | 73 | |
Kekehoho | 1:4523d7cda75e | 74 | /* |
Kekehoho | 1:4523d7cda75e | 75 | ************************************************************************************************************** |
Kekehoho | 1:4523d7cda75e | 76 | * OHCI OPERATIONAL REGISTER FIELD DEFINITIONS |
Kekehoho | 1:4523d7cda75e | 77 | ************************************************************************************************************** |
Kekehoho | 1:4523d7cda75e | 78 | */ |
Kekehoho | 1:4523d7cda75e | 79 | |
Kekehoho | 1:4523d7cda75e | 80 | /* ------------------ HcControl Register --------------------- */ |
Kekehoho | 1:4523d7cda75e | 81 | #define OR_CONTROL_CLE 0x00000010 |
Kekehoho | 1:4523d7cda75e | 82 | #define OR_CONTROL_BLE 0x00000020 |
Kekehoho | 1:4523d7cda75e | 83 | #define OR_CONTROL_HCFS 0x000000C0 |
Kekehoho | 1:4523d7cda75e | 84 | #define OR_CONTROL_HC_OPER 0x00000080 |
Kekehoho | 1:4523d7cda75e | 85 | /* ----------------- HcCommandStatus Register ----------------- */ |
Kekehoho | 1:4523d7cda75e | 86 | #define OR_CMD_STATUS_HCR 0x00000001 |
Kekehoho | 1:4523d7cda75e | 87 | #define OR_CMD_STATUS_CLF 0x00000002 |
Kekehoho | 1:4523d7cda75e | 88 | #define OR_CMD_STATUS_BLF 0x00000004 |
Kekehoho | 1:4523d7cda75e | 89 | /* --------------- HcInterruptStatus Register ----------------- */ |
Kekehoho | 1:4523d7cda75e | 90 | #define OR_INTR_STATUS_WDH 0x00000002 |
Kekehoho | 1:4523d7cda75e | 91 | #define OR_INTR_STATUS_RHSC 0x00000040 |
Kekehoho | 1:4523d7cda75e | 92 | /* --------------- HcInterruptEnable Register ----------------- */ |
Kekehoho | 1:4523d7cda75e | 93 | #define OR_INTR_ENABLE_WDH 0x00000002 |
Kekehoho | 1:4523d7cda75e | 94 | #define OR_INTR_ENABLE_RHSC 0x00000040 |
Kekehoho | 1:4523d7cda75e | 95 | #define OR_INTR_ENABLE_MIE 0x80000000 |
Kekehoho | 1:4523d7cda75e | 96 | /* ---------------- HcRhDescriptorA Register ------------------ */ |
Kekehoho | 1:4523d7cda75e | 97 | #define OR_RH_STATUS_LPSC 0x00010000 |
Kekehoho | 1:4523d7cda75e | 98 | #define OR_RH_STATUS_DRWE 0x00008000 |
Kekehoho | 1:4523d7cda75e | 99 | /* -------------- HcRhPortStatus[1:NDP] Register -------------- */ |
Kekehoho | 1:4523d7cda75e | 100 | #define OR_RH_PORT_CCS 0x00000001 |
Kekehoho | 1:4523d7cda75e | 101 | #define OR_RH_PORT_PRS 0x00000010 |
Kekehoho | 1:4523d7cda75e | 102 | #define OR_RH_PORT_CSC 0x00010000 |
Kekehoho | 1:4523d7cda75e | 103 | #define OR_RH_PORT_PRSC 0x00100000 |
Kekehoho | 1:4523d7cda75e | 104 | |
Kekehoho | 1:4523d7cda75e | 105 | |
Kekehoho | 1:4523d7cda75e | 106 | /* |
Kekehoho | 1:4523d7cda75e | 107 | ************************************************************************************************************** |
Kekehoho | 1:4523d7cda75e | 108 | * FRAME INTERVAL |
Kekehoho | 1:4523d7cda75e | 109 | ************************************************************************************************************** |
Kekehoho | 1:4523d7cda75e | 110 | */ |
Kekehoho | 1:4523d7cda75e | 111 | |
Kekehoho | 1:4523d7cda75e | 112 | #define FI 0x2EDF /* 12000 bits per frame (-1) */ |
Kekehoho | 1:4523d7cda75e | 113 | #define DEFAULT_FMINTERVAL ((((6 * (FI - 210)) / 7) << 16) | FI) |
Kekehoho | 1:4523d7cda75e | 114 | |
Kekehoho | 1:4523d7cda75e | 115 | /* |
Kekehoho | 1:4523d7cda75e | 116 | ************************************************************************************************************** |
Kekehoho | 1:4523d7cda75e | 117 | * TRANSFER DESCRIPTOR CONTROL FIELDS |
Kekehoho | 1:4523d7cda75e | 118 | ************************************************************************************************************** |
Kekehoho | 1:4523d7cda75e | 119 | */ |
Kekehoho | 1:4523d7cda75e | 120 | |
Kekehoho | 1:4523d7cda75e | 121 | #define TD_ROUNDING (USB_INT32U) (0x00040000) /* Buffer Rounding */ |
Kekehoho | 1:4523d7cda75e | 122 | #define TD_SETUP (USB_INT32U)(0) /* Direction of Setup Packet */ |
Kekehoho | 1:4523d7cda75e | 123 | #define TD_IN (USB_INT32U)(0x00100000) /* Direction In */ |
Kekehoho | 1:4523d7cda75e | 124 | #define TD_OUT (USB_INT32U)(0x00080000) /* Direction Out */ |
Kekehoho | 1:4523d7cda75e | 125 | #define TD_DELAY_INT(x) (USB_INT32U)((x) << 21) /* Delay Interrupt */ |
Kekehoho | 1:4523d7cda75e | 126 | #define TD_TOGGLE_0 (USB_INT32U)(0x02000000) /* Toggle 0 */ |
Kekehoho | 1:4523d7cda75e | 127 | #define TD_TOGGLE_1 (USB_INT32U)(0x03000000) /* Toggle 1 */ |
Kekehoho | 1:4523d7cda75e | 128 | #define TD_CC (USB_INT32U)(0xF0000000) /* Completion Code */ |
Kekehoho | 1:4523d7cda75e | 129 | |
Kekehoho | 1:4523d7cda75e | 130 | /* |
Kekehoho | 1:4523d7cda75e | 131 | ************************************************************************************************************** |
Kekehoho | 1:4523d7cda75e | 132 | * USB STANDARD REQUEST DEFINITIONS |
Kekehoho | 1:4523d7cda75e | 133 | ************************************************************************************************************** |
Kekehoho | 1:4523d7cda75e | 134 | */ |
Kekehoho | 1:4523d7cda75e | 135 | |
Kekehoho | 1:4523d7cda75e | 136 | #define USB_DESCRIPTOR_TYPE_DEVICE 1 |
Kekehoho | 1:4523d7cda75e | 137 | #define USB_DESCRIPTOR_TYPE_CONFIGURATION 2 |
Kekehoho | 1:4523d7cda75e | 138 | #define USB_DESCRIPTOR_TYPE_INTERFACE 4 |
Kekehoho | 1:4523d7cda75e | 139 | #define USB_DESCRIPTOR_TYPE_ENDPOINT 5 |
Kekehoho | 1:4523d7cda75e | 140 | /* ----------- Control RequestType Fields ----------- */ |
Kekehoho | 1:4523d7cda75e | 141 | #define USB_DEVICE_TO_HOST 0x80 |
Kekehoho | 1:4523d7cda75e | 142 | #define USB_HOST_TO_DEVICE 0x00 |
Kekehoho | 1:4523d7cda75e | 143 | #define USB_REQUEST_TYPE_CLASS 0x20 |
Kekehoho | 1:4523d7cda75e | 144 | #define USB_RECIPIENT_DEVICE 0x00 |
Kekehoho | 1:4523d7cda75e | 145 | #define USB_RECIPIENT_INTERFACE 0x01 |
Kekehoho | 1:4523d7cda75e | 146 | /* -------------- USB Standard Requests -------------- */ |
Kekehoho | 1:4523d7cda75e | 147 | #define SET_ADDRESS 5 |
Kekehoho | 1:4523d7cda75e | 148 | #define GET_DESCRIPTOR 6 |
Kekehoho | 1:4523d7cda75e | 149 | #define SET_CONFIGURATION 9 |
Kekehoho | 1:4523d7cda75e | 150 | #define SET_INTERFACE 11 |
Kekehoho | 1:4523d7cda75e | 151 | |
Kekehoho | 1:4523d7cda75e | 152 | /* |
Kekehoho | 1:4523d7cda75e | 153 | ************************************************************************************************************** |
Kekehoho | 1:4523d7cda75e | 154 | * TYPE DEFINITIONS |
Kekehoho | 1:4523d7cda75e | 155 | ************************************************************************************************************** |
Kekehoho | 1:4523d7cda75e | 156 | */ |
Kekehoho | 1:4523d7cda75e | 157 | |
Kekehoho | 1:4523d7cda75e | 158 | typedef struct hcEd { /* ----------- HostController EndPoint Descriptor ------------- */ |
Kekehoho | 1:4523d7cda75e | 159 | volatile USB_INT32U Control; /* Endpoint descriptor control */ |
Kekehoho | 1:4523d7cda75e | 160 | volatile USB_INT32U TailTd; /* Physical address of tail in Transfer descriptor list */ |
Kekehoho | 1:4523d7cda75e | 161 | volatile USB_INT32U HeadTd; /* Physcial address of head in Transfer descriptor list */ |
Kekehoho | 1:4523d7cda75e | 162 | volatile USB_INT32U Next; /* Physical address of next Endpoint descriptor */ |
Kekehoho | 1:4523d7cda75e | 163 | } HCED; |
Kekehoho | 1:4523d7cda75e | 164 | |
Kekehoho | 1:4523d7cda75e | 165 | typedef struct hcTd { /* ------------ HostController Transfer Descriptor ------------ */ |
Kekehoho | 1:4523d7cda75e | 166 | volatile USB_INT32U Control; /* Transfer descriptor control */ |
Kekehoho | 1:4523d7cda75e | 167 | volatile USB_INT32U CurrBufPtr; /* Physical address of current buffer pointer */ |
Kekehoho | 1:4523d7cda75e | 168 | volatile USB_INT32U Next; /* Physical pointer to next Transfer Descriptor */ |
Kekehoho | 1:4523d7cda75e | 169 | volatile USB_INT32U BufEnd; /* Physical address of end of buffer */ |
Kekehoho | 1:4523d7cda75e | 170 | } HCTD; |
Kekehoho | 1:4523d7cda75e | 171 | |
Kekehoho | 1:4523d7cda75e | 172 | typedef struct hcca { /* ----------- Host Controller Communication Area ------------ */ |
Kekehoho | 1:4523d7cda75e | 173 | volatile USB_INT32U IntTable[32]; /* Interrupt Table */ |
Kekehoho | 1:4523d7cda75e | 174 | volatile USB_INT32U FrameNumber; /* Frame Number */ |
Kekehoho | 1:4523d7cda75e | 175 | volatile USB_INT32U DoneHead; /* Done Head */ |
Kekehoho | 1:4523d7cda75e | 176 | volatile USB_INT08U Reserved[116]; /* Reserved for future use */ |
Kekehoho | 1:4523d7cda75e | 177 | volatile USB_INT08U Unknown[4]; /* Unused */ |
Kekehoho | 1:4523d7cda75e | 178 | } HCCA; |
Kekehoho | 1:4523d7cda75e | 179 | |
Kekehoho | 1:4523d7cda75e | 180 | /* |
Kekehoho | 1:4523d7cda75e | 181 | ************************************************************************************************************** |
Kekehoho | 1:4523d7cda75e | 182 | * EXTERN DECLARATIONS |
Kekehoho | 1:4523d7cda75e | 183 | ************************************************************************************************************** |
Kekehoho | 1:4523d7cda75e | 184 | */ |
Kekehoho | 1:4523d7cda75e | 185 | |
Kekehoho | 1:4523d7cda75e | 186 | extern volatile HCED *EDBulkIn; /* BulkIn endpoint descriptor structure */ |
Kekehoho | 1:4523d7cda75e | 187 | extern volatile HCED *EDBulkOut; /* BulkOut endpoint descriptor structure */ |
Kekehoho | 1:4523d7cda75e | 188 | extern volatile HCTD *TDHead; /* Head transfer descriptor structure */ |
Kekehoho | 1:4523d7cda75e | 189 | extern volatile HCTD *TDTail; /* Tail transfer descriptor structure */ |
Kekehoho | 1:4523d7cda75e | 190 | extern volatile USB_INT08U *TDBuffer; /* Current Buffer Pointer of transfer descriptor */ |
Kekehoho | 1:4523d7cda75e | 191 | |
Kekehoho | 1:4523d7cda75e | 192 | /* |
Kekehoho | 1:4523d7cda75e | 193 | ************************************************************************************************************** |
Kekehoho | 1:4523d7cda75e | 194 | * FUNCTION PROTOTYPES |
Kekehoho | 1:4523d7cda75e | 195 | ************************************************************************************************************** |
Kekehoho | 1:4523d7cda75e | 196 | */ |
Kekehoho | 1:4523d7cda75e | 197 | |
Kekehoho | 1:4523d7cda75e | 198 | void Host_Init (void); |
Kekehoho | 1:4523d7cda75e | 199 | |
Kekehoho | 1:4523d7cda75e | 200 | extern "C" void USB_IRQHandler(void) __irq; |
Kekehoho | 1:4523d7cda75e | 201 | |
Kekehoho | 1:4523d7cda75e | 202 | USB_INT32S Host_EnumDev (void); |
Kekehoho | 1:4523d7cda75e | 203 | |
Kekehoho | 1:4523d7cda75e | 204 | USB_INT32S Host_ProcessTD(volatile HCED *ed, |
Kekehoho | 1:4523d7cda75e | 205 | volatile USB_INT32U token, |
Kekehoho | 1:4523d7cda75e | 206 | volatile USB_INT08U *buffer, |
Kekehoho | 1:4523d7cda75e | 207 | USB_INT32U buffer_len); |
Kekehoho | 1:4523d7cda75e | 208 | |
Kekehoho | 1:4523d7cda75e | 209 | void Host_DelayUS ( USB_INT32U delay); |
Kekehoho | 1:4523d7cda75e | 210 | void Host_DelayMS ( USB_INT32U delay); |
Kekehoho | 1:4523d7cda75e | 211 | |
Kekehoho | 1:4523d7cda75e | 212 | |
Kekehoho | 1:4523d7cda75e | 213 | void Host_TDInit (volatile HCTD *td); |
Kekehoho | 1:4523d7cda75e | 214 | void Host_EDInit (volatile HCED *ed); |
Kekehoho | 1:4523d7cda75e | 215 | void Host_HCCAInit (volatile HCCA *hcca); |
Kekehoho | 1:4523d7cda75e | 216 | |
Kekehoho | 1:4523d7cda75e | 217 | USB_INT32S Host_CtrlRecv ( USB_INT08U bm_request_type, |
Kekehoho | 1:4523d7cda75e | 218 | USB_INT08U b_request, |
Kekehoho | 1:4523d7cda75e | 219 | USB_INT16U w_value, |
Kekehoho | 1:4523d7cda75e | 220 | USB_INT16U w_index, |
Kekehoho | 1:4523d7cda75e | 221 | USB_INT16U w_length, |
Kekehoho | 1:4523d7cda75e | 222 | volatile USB_INT08U *buffer); |
Kekehoho | 1:4523d7cda75e | 223 | |
Kekehoho | 1:4523d7cda75e | 224 | USB_INT32S Host_CtrlSend ( USB_INT08U bm_request_type, |
Kekehoho | 1:4523d7cda75e | 225 | USB_INT08U b_request, |
Kekehoho | 1:4523d7cda75e | 226 | USB_INT16U w_value, |
Kekehoho | 1:4523d7cda75e | 227 | USB_INT16U w_index, |
Kekehoho | 1:4523d7cda75e | 228 | USB_INT16U w_length, |
Kekehoho | 1:4523d7cda75e | 229 | volatile USB_INT08U *buffer); |
Kekehoho | 1:4523d7cda75e | 230 | |
Kekehoho | 1:4523d7cda75e | 231 | void Host_FillSetup( USB_INT08U bm_request_type, |
Kekehoho | 1:4523d7cda75e | 232 | USB_INT08U b_request, |
Kekehoho | 1:4523d7cda75e | 233 | USB_INT16U w_value, |
Kekehoho | 1:4523d7cda75e | 234 | USB_INT16U w_index, |
Kekehoho | 1:4523d7cda75e | 235 | USB_INT16U w_length); |
Kekehoho | 1:4523d7cda75e | 236 | |
Kekehoho | 1:4523d7cda75e | 237 | |
Kekehoho | 1:4523d7cda75e | 238 | void Host_WDHWait (void); |
Kekehoho | 1:4523d7cda75e | 239 | |
Kekehoho | 1:4523d7cda75e | 240 | |
Kekehoho | 1:4523d7cda75e | 241 | USB_INT32U ReadLE32U (volatile USB_INT08U *pmem); |
Kekehoho | 1:4523d7cda75e | 242 | void WriteLE32U (volatile USB_INT08U *pmem, |
Kekehoho | 1:4523d7cda75e | 243 | USB_INT32U val); |
Kekehoho | 1:4523d7cda75e | 244 | USB_INT16U ReadLE16U (volatile USB_INT08U *pmem); |
Kekehoho | 1:4523d7cda75e | 245 | void WriteLE16U (volatile USB_INT08U *pmem, |
Kekehoho | 1:4523d7cda75e | 246 | USB_INT16U val); |
Kekehoho | 1:4523d7cda75e | 247 | USB_INT32U ReadBE32U (volatile USB_INT08U *pmem); |
Kekehoho | 1:4523d7cda75e | 248 | void WriteBE32U (volatile USB_INT08U *pmem, |
Kekehoho | 1:4523d7cda75e | 249 | USB_INT32U val); |
Kekehoho | 1:4523d7cda75e | 250 | USB_INT16U ReadBE16U (volatile USB_INT08U *pmem); |
Kekehoho | 1:4523d7cda75e | 251 | void WriteBE16U (volatile USB_INT08U *pmem, |
Kekehoho | 1:4523d7cda75e | 252 | USB_INT16U val); |
Kekehoho | 1:4523d7cda75e | 253 | |
Kekehoho | 1:4523d7cda75e | 254 | #endif |