EE445M RTOS
Taken at the University of Texas Spring 2015
|
Go to the source code of this file.
Macros | |
#define | USB_INTCTRL_ALL 0x000003FF |
#define | USB_INTCTRL_STATUS 0x000000FF |
#define | USB_INTCTRL_VBUS_ERR 0x00000080 |
#define | USB_INTCTRL_SESSION 0x00000040 |
#define | USB_INTCTRL_SESSION_END 0x00000040 |
#define | USB_INTCTRL_DISCONNECT 0x00000020 |
#define | USB_INTCTRL_CONNECT 0x00000010 |
#define | USB_INTCTRL_SOF 0x00000008 |
#define | USB_INTCTRL_BABBLE 0x00000004 |
#define | USB_INTCTRL_RESET 0x00000004 |
#define | USB_INTCTRL_RESUME 0x00000002 |
#define | USB_INTCTRL_SUSPEND 0x00000001 |
#define | USB_INTCTRL_MODE_DETECT 0x00000200 |
#define | USB_INTCTRL_POWER_FAULT 0x00000100 |
#define | USB_INTEP_ALL 0xFFFFFFFF |
#define | USB_INTEP_HOST_IN 0xFFFE0000 |
#define | USB_INTEP_HOST_IN_15 0x80000000 |
#define | USB_INTEP_HOST_IN_14 0x40000000 |
#define | USB_INTEP_HOST_IN_13 0x20000000 |
#define | USB_INTEP_HOST_IN_12 0x10000000 |
#define | USB_INTEP_HOST_IN_11 0x08000000 |
#define | USB_INTEP_HOST_IN_10 0x04000000 |
#define | USB_INTEP_HOST_IN_9 0x02000000 |
#define | USB_INTEP_HOST_IN_8 0x01000000 |
#define | USB_INTEP_HOST_IN_7 0x00800000 |
#define | USB_INTEP_HOST_IN_6 0x00400000 |
#define | USB_INTEP_HOST_IN_5 0x00200000 |
#define | USB_INTEP_HOST_IN_4 0x00100000 |
#define | USB_INTEP_HOST_IN_3 0x00080000 |
#define | USB_INTEP_HOST_IN_2 0x00040000 |
#define | USB_INTEP_HOST_IN_1 0x00020000 |
#define | USB_INTEP_DEV_OUT 0xFFFE0000 |
#define | USB_INTEP_DEV_OUT_15 0x80000000 |
#define | USB_INTEP_DEV_OUT_14 0x40000000 |
#define | USB_INTEP_DEV_OUT_13 0x20000000 |
#define | USB_INTEP_DEV_OUT_12 0x10000000 |
#define | USB_INTEP_DEV_OUT_11 0x08000000 |
#define | USB_INTEP_DEV_OUT_10 0x04000000 |
#define | USB_INTEP_DEV_OUT_9 0x02000000 |
#define | USB_INTEP_DEV_OUT_8 0x01000000 |
#define | USB_INTEP_DEV_OUT_7 0x00800000 |
#define | USB_INTEP_DEV_OUT_6 0x00400000 |
#define | USB_INTEP_DEV_OUT_5 0x00200000 |
#define | USB_INTEP_DEV_OUT_4 0x00100000 |
#define | USB_INTEP_DEV_OUT_3 0x00080000 |
#define | USB_INTEP_DEV_OUT_2 0x00040000 |
#define | USB_INTEP_DEV_OUT_1 0x00020000 |
#define | USB_INTEP_HOST_OUT 0x0000FFFE |
#define | USB_INTEP_HOST_OUT_15 0x00008000 |
#define | USB_INTEP_HOST_OUT_14 0x00004000 |
#define | USB_INTEP_HOST_OUT_13 0x00002000 |
#define | USB_INTEP_HOST_OUT_12 0x00001000 |
#define | USB_INTEP_HOST_OUT_11 0x00000800 |
#define | USB_INTEP_HOST_OUT_10 0x00000400 |
#define | USB_INTEP_HOST_OUT_9 0x00000200 |
#define | USB_INTEP_HOST_OUT_8 0x00000100 |
#define | USB_INTEP_HOST_OUT_7 0x00000080 |
#define | USB_INTEP_HOST_OUT_6 0x00000040 |
#define | USB_INTEP_HOST_OUT_5 0x00000020 |
#define | USB_INTEP_HOST_OUT_4 0x00000010 |
#define | USB_INTEP_HOST_OUT_3 0x00000008 |
#define | USB_INTEP_HOST_OUT_2 0x00000004 |
#define | USB_INTEP_HOST_OUT_1 0x00000002 |
#define | USB_INTEP_DEV_IN 0x0000FFFE |
#define | USB_INTEP_DEV_IN_15 0x00008000 |
#define | USB_INTEP_DEV_IN_14 0x00004000 |
#define | USB_INTEP_DEV_IN_13 0x00002000 |
#define | USB_INTEP_DEV_IN_12 0x00001000 |
#define | USB_INTEP_DEV_IN_11 0x00000800 |
#define | USB_INTEP_DEV_IN_10 0x00000400 |
#define | USB_INTEP_DEV_IN_9 0x00000200 |
#define | USB_INTEP_DEV_IN_8 0x00000100 |
#define | USB_INTEP_DEV_IN_7 0x00000080 |
#define | USB_INTEP_DEV_IN_6 0x00000040 |
#define | USB_INTEP_DEV_IN_5 0x00000020 |
#define | USB_INTEP_DEV_IN_4 0x00000010 |
#define | USB_INTEP_DEV_IN_3 0x00000008 |
#define | USB_INTEP_DEV_IN_2 0x00000004 |
#define | USB_INTEP_DEV_IN_1 0x00000002 |
#define | USB_INTEP_0 0x00000001 |
#define | USB_UNDEF_SPEED 0x80000000 |
#define | USB_HIGH_SPEED 0x00000002 |
#define | USB_FULL_SPEED 0x00000001 |
#define | USB_LOW_SPEED 0x00000000 |
#define | USB_HOST_IN_STATUS 0x114F0000 |
#define | USB_HOST_IN_PID_ERROR 0x10000000 |
#define | USB_HOST_IN_NOT_COMP 0x01000000 |
#define | USB_HOST_IN_STALL 0x00400000 |
#define | USB_HOST_IN_DATA_ERROR 0x00080000 |
#define | USB_HOST_IN_NAK_TO 0x00080000 |
#define | USB_HOST_IN_ERROR 0x00040000 |
#define | USB_HOST_IN_FIFO_FULL 0x00020000 |
#define | USB_HOST_IN_PKTRDY 0x00010000 |
#define | USB_HOST_OUT_STATUS 0x000000A7 |
#define | USB_HOST_OUT_NAK_TO 0x00000080 |
#define | USB_HOST_OUT_NOT_COMP 0x00000080 |
#define | USB_HOST_OUT_STALL 0x00000020 |
#define | USB_HOST_OUT_ERROR 0x00000004 |
#define | USB_HOST_OUT_FIFO_NE 0x00000002 |
#define | USB_HOST_OUT_PKTPEND 0x00000001 |
#define | USB_HOST_EP0_NAK_TO 0x00000080 |
#define | USB_HOST_EP0_STATUS 0x00000040 |
#define | USB_HOST_EP0_ERROR 0x00000010 |
#define | USB_HOST_EP0_RX_STALL 0x00000004 |
#define | USB_HOST_EP0_RXPKTRDY 0x00000001 |
#define | USB_DEV_RX_PID_ERROR 0x01000000 |
#define | USB_DEV_RX_SENT_STALL 0x00400000 |
#define | USB_DEV_RX_DATA_ERROR 0x00080000 |
#define | USB_DEV_RX_OVERRUN 0x00040000 |
#define | USB_DEV_RX_FIFO_FULL 0x00020000 |
#define | USB_DEV_RX_PKT_RDY 0x00010000 |
#define | USB_DEV_TX_NOT_COMP 0x00000080 |
#define | USB_DEV_TX_SENT_STALL 0x00000020 |
#define | USB_DEV_TX_UNDERRUN 0x00000004 |
#define | USB_DEV_TX_FIFO_NE 0x00000002 |
#define | USB_DEV_TX_TXPKTRDY 0x00000001 |
#define | USB_DEV_EP0_SETUP_END 0x00000010 |
#define | USB_DEV_EP0_SENT_STALL 0x00000004 |
#define | USB_DEV_EP0_IN_PKTPEND 0x00000002 |
#define | USB_DEV_EP0_OUT_PKTRDY 0x00000001 |
#define | USB_EP_AUTO_SET 0x00000001 |
#define | USB_EP_AUTO_REQUEST 0x00000002 |
#define | USB_EP_AUTO_CLEAR 0x00000004 |
#define | USB_EP_DMA_MODE_0 0x00000008 |
#define | USB_EP_DMA_MODE_1 0x00000010 |
#define | USB_EP_DIS_NYET 0x00000020 |
#define | USB_EP_MODE_ISOC 0x00000000 |
#define | USB_EP_MODE_BULK 0x00000100 |
#define | USB_EP_MODE_INT 0x00000200 |
#define | USB_EP_MODE_CTRL 0x00000300 |
#define | USB_EP_MODE_MASK 0x00000300 |
#define | USB_EP_SPEED_LOW 0x00000000 |
#define | USB_EP_SPEED_FULL 0x00001000 |
#define | USB_EP_SPEED_HIGH 0x00004000 |
#define | USB_EP_HOST_IN 0x00000000 |
#define | USB_EP_HOST_OUT 0x00002000 |
#define | USB_EP_DEV_IN 0x00002000 |
#define | USB_EP_DEV_OUT 0x00000000 |
#define | USB_HOST_PWRFLT_LOW 0x00000010 |
#define | USB_HOST_PWRFLT_HIGH 0x00000030 |
#define | USB_HOST_PWRFLT_EP_NONE 0x00000000 |
#define | USB_HOST_PWRFLT_EP_TRI 0x00000140 |
#define | USB_HOST_PWRFLT_EP_LOW 0x00000240 |
#define | USB_HOST_PWRFLT_EP_HIGH 0x00000340 |
#define | USB_HOST_PWREN_MAN_LOW 0x00000000 |
#define | USB_HOST_PWREN_MAN_HIGH 0x00000001 |
#define | USB_HOST_PWREN_AUTOLOW 0x00000002 |
#define | USB_HOST_PWREN_AUTOHIGH 0x00000003 |
#define | USB_HOST_PWREN_FILTER 0x00010000 |
#define | USB_HOST_LPM_RMTWAKE 0x00000100 |
#define | USB_HOST_LPM_L1 0x00000001 |
#define | USB_DEV_LPM_NAK 0x00000010 |
#define | USB_DEV_LPM_NONE 0x00000000 |
#define | USB_DEV_LPM_EN 0x0000000c |
#define | USB_DEV_LPM_EXTONLY 0x00000004 |
#define | USB_DEV_LPM_LS_RMTWAKE 0x00000100 |
#define | USB_DEV_LPM_LS_L1 0x00000001 |
#define | USB_INTLPM_ERROR 0x00000020 |
#define | USB_INTLPM_RESUME 0x00000010 |
#define | USB_INTLPM_INCOMPLETE 0x00000008 |
#define | USB_INTLPM_ACK 0x00000004 |
#define | USB_INTLPM_NYET 0x00000002 |
#define | USB_INTLPM_STALL 0x00000001 |
#define | USB_CLOCK_INTERNAL 0x00000200 |
#define | USB_CLOCK_EXTERNAL 0x00000300 |
#define | USB_ULPI_EXTVBUS 0x00000001 |
#define | USB_ULPI_EXTVBUS_IND 0x00000002 |
#define | MAX_NAK_LIMIT 31 |
#define | DISABLE_NAK_LIMIT 0 |
#define | MAX_PACKET_SIZE_EP0 64 |
#define | USB_EP_0 0x00000000 |
#define | USB_EP_1 0x00000010 |
#define | USB_EP_2 0x00000020 |
#define | USB_EP_3 0x00000030 |
#define | USB_EP_4 0x00000040 |
#define | USB_EP_5 0x00000050 |
#define | USB_EP_6 0x00000060 |
#define | USB_EP_7 0x00000070 |
#define | NUM_USB_EP 8 |
#define | IndexToUSBEP(x) ((x) << 4) |
#define | USBEPToIndex(x) ((x) >> 4) |
#define | USB_FIFO_SZ_8 0x00000000 |
#define | USB_FIFO_SZ_16 0x00000001 |
#define | USB_FIFO_SZ_32 0x00000002 |
#define | USB_FIFO_SZ_64 0x00000003 |
#define | USB_FIFO_SZ_128 0x00000004 |
#define | USB_FIFO_SZ_256 0x00000005 |
#define | USB_FIFO_SZ_512 0x00000006 |
#define | USB_FIFO_SZ_1024 0x00000007 |
#define | USB_FIFO_SZ_2048 0x00000008 |
#define | USBFIFOSizeToBytes(x) (8 << (x)) |
#define | USB_TRANS_OUT 0x00000102 |
#define | USB_TRANS_IN 0x00000102 |
#define | USB_TRANS_IN_LAST 0x0000010a |
#define | USB_TRANS_SETUP 0x0000110a |
#define | USB_TRANS_STATUS 0x00000142 |
#define | USB_DUAL_MODE_HOST 0x00000001 |
#define | USB_DUAL_MODE_DEVICE 0x00000081 |
#define | USB_DUAL_MODE_NONE 0x00000080 |
#define | USB_OTG_MODE_ASIDE_HOST 0x0000001d |
#define | USB_OTG_MODE_ASIDE_NPWR 0x00000001 |
#define | USB_OTG_MODE_ASIDE_SESS 0x00000009 |
#define | USB_OTG_MODE_ASIDE_AVAL 0x00000011 |
#define | USB_OTG_MODE_ASIDE_DEV 0x00000019 |
#define | USB_OTG_MODE_BSIDE_HOST 0x0000009d |
#define | USB_OTG_MODE_BSIDE_DEV 0x00000099 |
#define | USB_OTG_MODE_BSIDE_NPWR 0x00000081 |
#define | USB_OTG_MODE_NONE 0x00000080 |
#define | USB_DMA_INT_CH8 0x00000080 |
#define | USB_DMA_INT_CH7 0x00000040 |
#define | USB_DMA_INT_CH6 0x00000020 |
#define | USB_DMA_INT_CH5 0x00000010 |
#define | USB_DMA_INT_CH4 0x00000008 |
#define | USB_DMA_INT_CH3 0x00000004 |
#define | USB_DMA_INT_CH2 0x00000002 |
#define | USB_DMA_INT_CH1 0x00000001 |
#define | USB_DMA_STATUS_ERROR 0x00000100 |
#define | USB_CONTROLLER_VER_0 0x00000000 |
#define | USB_CONTROLLER_VER_1 0x00000001 |
#define | USB_DMA_CFG_BURST_NONE 0x00000000 |
#define | USB_DMA_CFG_BURST_4 0x00000200 |
#define | USB_DMA_CFG_BURST_8 0x00000400 |
#define | USB_DMA_CFG_BURST_16 0x00000600 |
#define | USB_DMA_CFG_INT_EN 0x00000008 |
#define | USB_DMA_CFG_MODE_0 0x00000000 |
#define | USB_DMA_CFG_MODE_1 0x00000004 |
#define | USB_DMA_CFG_DIR_RX 0x00000000 |
#define | USB_DMA_CFG_DIR_TX 0x00000002 |
#define | USB_DMA_CFG_EN 0x00000001 |
#define | USB_MODE_HOST_VBUS 0x00000004 |
#define | USB_MODE_HOST 0x00000002 |
#define | USB_MODE_DEV_VBUS 0x00000005 |
#define | USB_MODE_DEV 0x00000003 |
#define | USB_MODE_OTG 0x00000000 |
Functions | |
uint32_t | USBDevAddrGet (uint32_t ui32Base) |
void | USBDevAddrSet (uint32_t ui32Base, uint32_t ui32Address) |
void | USBDevConnect (uint32_t ui32Base) |
void | USBDevDisconnect (uint32_t ui32Base) |
void | USBDevEndpointConfigSet (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32MaxPacketSize, uint32_t ui32Flags) |
void | USBDevEndpointConfigGet (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t *pui32MaxPacketSize, uint32_t *pui32Flags) |
void | USBDevEndpointDataAck (uint32_t ui32Base, uint32_t ui32Endpoint, bool bIsLastPacket) |
void | USBDevEndpointStall (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags) |
void | USBDevEndpointStallClear (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags) |
void | USBDevEndpointStatusClear (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags) |
uint32_t | USBEndpointDataAvail (uint32_t ui32Base, uint32_t ui32Endpoint) |
void | USBEndpointDMAEnable (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags) |
void | USBEndpointDMADisable (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags) |
void | USBEndpointDMAConfigSet (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Config) |
int32_t | USBEndpointDataGet (uint32_t ui32Base, uint32_t ui32Endpoint, uint8_t *pui8Data, uint32_t *pui32Size) |
int32_t | USBEndpointDataPut (uint32_t ui32Base, uint32_t ui32Endpoint, uint8_t *pui8Data, uint32_t ui32Size) |
int32_t | USBEndpointDataSend (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32TransType) |
void | USBEndpointDataToggleClear (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags) |
void | USBEndpointPacketCountSet (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Count) |
uint32_t | USBEndpointStatus (uint32_t ui32Base, uint32_t ui32Endpoint) |
uint32_t | USBFIFOAddrGet (uint32_t ui32Base, uint32_t ui32Endpoint) |
void | USBFIFOConfigGet (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t *pui32FIFOAddress, uint32_t *pui32FIFOSize, uint32_t ui32Flags) |
void | USBFIFOConfigSet (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32FIFOAddress, uint32_t ui32FIFOSize, uint32_t ui32Flags) |
void | USBFIFOFlush (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags) |
uint32_t | USBFrameNumberGet (uint32_t ui32Base) |
uint32_t | USBHostAddrGet (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags) |
void | USBHostAddrSet (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Addr, uint32_t ui32Flags) |
void | USBHostEndpointConfig (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32MaxPacketSize, uint32_t ui32NAKPollInterval, uint32_t ui32TargetEndpoint, uint32_t ui32Flags) |
void | USBHostEndpointDataAck (uint32_t ui32Base, uint32_t ui32Endpoint) |
void | USBHostEndpointDataToggle (uint32_t ui32Base, uint32_t ui32Endpoint, bool bDataToggle, uint32_t ui32Flags) |
void | USBHostEndpointStatusClear (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags) |
uint32_t | USBHostHubAddrGet (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags) |
void | USBHostHubAddrSet (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Addr, uint32_t ui32Flags) |
void | USBHostPwrDisable (uint32_t ui32Base) |
void | USBHostPwrEnable (uint32_t ui32Base) |
void | USBHostPwrConfig (uint32_t ui32Base, uint32_t ui32Flags) |
void | USBHostPwrFaultDisable (uint32_t ui32Base) |
void | USBHostPwrFaultEnable (uint32_t ui32Base) |
void | USBHostRequestIN (uint32_t ui32Base, uint32_t ui32Endpoint) |
void | USBHostRequestINClear (uint32_t ui32Base, uint32_t ui32Endpoint) |
void | USBHostRequestStatus (uint32_t ui32Base) |
void | USBHostReset (uint32_t ui32Base, bool bStart) |
void | USBHostResume (uint32_t ui32Base, bool bStart) |
uint32_t | USBHostSpeedGet (uint32_t ui32Base) |
void | USBHostSuspend (uint32_t ui32Base) |
void | USBIntDisableControl (uint32_t ui32Base, uint32_t ui32IntFlags) |
void | USBIntEnableControl (uint32_t ui32Base, uint32_t ui32IntFlags) |
uint32_t | USBIntStatusControl (uint32_t ui32Base) |
void | USBIntDisableEndpoint (uint32_t ui32Base, uint32_t ui32IntFlags) |
void | USBIntEnableEndpoint (uint32_t ui32Base, uint32_t ui32IntFlags) |
uint32_t | USBIntStatusEndpoint (uint32_t ui32Base) |
void | USBIntRegister (uint32_t ui32Base, void(*pfnHandler)(void)) |
void | USBIntUnregister (uint32_t ui32Base) |
void | USBOTGSessionRequest (uint32_t ui32Base, bool bStart) |
uint32_t | USBModeGet (uint32_t ui32Base) |
void | USBEndpointDMAChannel (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Channel) |
uint32_t | USBControllerVersion (uint32_t ui32Base) |
uint32_t | USBDMAChannelIntStatus (uint32_t ui32Base) |
void | USBDMAChannelConfigSet (uint32_t ui32Base, uint32_t ui32Channel, uint32_t ui32Endpoint, uint32_t ui32Config) |
void | USBDMAChannelAddressSet (uint32_t ui32Base, uint32_t ui32Channel, void *pvAddress) |
void * | USBDMAChannelAddressGet (uint32_t ui32Base, uint32_t ui32Channel) |
void | USBDMAChannelCountSet (uint32_t ui32Base, uint32_t ui32Count, uint32_t ui32Channel) |
uint32_t | USBDMAChannelCountGet (uint32_t ui32Base, uint32_t ui32Channel) |
uint32_t | USBDMANumChannels (uint32_t ui32Base) |
void | USBDMAChannelAssign (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Channel, uint32_t ui32Flags) |
void | USBDMAChannelIntEnable (uint32_t ui32Base, uint32_t ui32Channel) |
void | USBDMAChannelIntDisable (uint32_t ui32Base, uint32_t ui32Channel) |
void | USBDMAChannelEnable (uint32_t ui32Base, uint32_t ui32Channel) |
void | USBDMAChannelDisable (uint32_t ui32Base, uint32_t ui32Channel) |
uint32_t | USBDMAChannelStatus (uint32_t ui32Base, uint32_t ui32Channel) |
void | USBDMAChannelStatusClear (uint32_t ui32Base, uint32_t ui32Channel, uint32_t ui32Status) |
void | USBHostEndpointSpeed (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags) |
void | USBHostEndpointPing (uint32_t ui32Base, uint32_t ui32Endpoint, bool bEnable) |
void | USBHostLPMSend (uint32_t ui32Base, uint32_t ui32Address, uint32_t uiEndpoint) |
void | USBHostLPMConfig (uint32_t ui32Base, uint32_t ui32ResumeTime, uint32_t ui32Config) |
bool | USBLPMRemoteWakeEnabled (uint32_t ui32Base) |
void | USBHostLPMResume (uint32_t ui32Base) |
void | USBDevLPMRemoteWake (uint32_t ui32Base) |
void | USBDevLPMConfig (uint32_t ui32Base, uint32_t ui32Config) |
void | USBDevLPMEnable (uint32_t ui32Base) |
void | USBDevLPMDisable (uint32_t ui32Base) |
uint32_t | USBLPMLinkStateGet (uint32_t ui32Base) |
uint32_t | USBLPMEndpointGet (uint32_t ui32Base) |
uint32_t | USBLPMIntStatus (uint32_t ui32Base) |
void | USBLPMIntDisable (uint32_t ui32Base, uint32_t ui32Ints) |
void | USBLPMIntEnable (uint32_t ui32Base, uint32_t ui32Ints) |
void | USBHighSpeed (uint32_t ui32Base, bool bEnable) |
uint32_t | USBDevSpeedGet (uint32_t ui32Base) |
void | USBClockEnable (uint32_t ui32Base, uint32_t ui32Div, uint32_t ui32Flags) |
void | USBClockDisable (uint32_t ui32Base) |
void | USBULPIConfig (uint32_t ui32Base, uint32_t ui32Config) |
void | USBULPIEnable (uint32_t ui32Base) |
void | USBULPIDisable (uint32_t ui32Base) |
uint8_t | USBULPIRegRead (uint32_t ui32Base, uint8_t ui8Reg) |
void | USBULPIRegWrite (uint32_t ui32Base, uint8_t ui8Reg, uint8_t ui8Data) |
void | USBHostMode (uint32_t ui32Base) |
void | USBDevMode (uint32_t ui32Base) |
void | USBOTGMode (uint32_t ui32Base) |
void | USBModeConfig (uint32_t ui32Base, uint32_t ui32Mode) |
void | USBPHYPowerOff (uint32_t ui32Base) |
void | USBPHYPowerOn (uint32_t ui32Base) |
uint32_t | USBNumEndpointsGet (uint32_t ui32Base) |
#define IndexToUSBEP | ( | x | ) | ((x) << 4) |
Definition at line 363 of file usb.h.
Referenced by USBLPMEndpointGet().
#define MAX_NAK_LIMIT 31 |
Definition at line 331 of file usb.h.
Referenced by USBHostEndpointConfig().
#define USB_DEV_EP0_OUT_PKTRDY 0x00000001 |
Definition at line 218 of file usb.h.
Referenced by USBDevEndpointStatusClear().
#define USB_DEV_EP0_SENT_STALL 0x00000004 |
Definition at line 216 of file usb.h.
Referenced by USBDevEndpointStatusClear().
#define USB_DEV_EP0_SETUP_END 0x00000010 |
Definition at line 214 of file usb.h.
Referenced by USBDevEndpointStatusClear().
#define USB_DEV_RX_DATA_ERROR 0x00080000 |
Definition at line 203 of file usb.h.
Referenced by USBDevEndpointStatusClear().
#define USB_DEV_RX_OVERRUN 0x00040000 |
Definition at line 204 of file usb.h.
Referenced by USBDevEndpointStatusClear().
#define USB_DEV_RX_SENT_STALL 0x00400000 |
Definition at line 202 of file usb.h.
Referenced by USBDevEndpointStatusClear().
#define USB_DEV_TX_SENT_STALL 0x00000020 |
Definition at line 210 of file usb.h.
Referenced by USBDevEndpointStatusClear().
#define USB_DEV_TX_UNDERRUN 0x00000004 |
Definition at line 211 of file usb.h.
Referenced by USBDevEndpointStatusClear().
#define USB_EP_0 0x00000000 |
Definition at line 347 of file usb.h.
Referenced by USBDevEndpointDataAck(), USBDevEndpointStall(), USBDevEndpointStallClear(), USBDevEndpointStatusClear(), USBEndpointDataAvail(), USBEndpointDataGet(), USBEndpointDataPut(), USBEndpointDataSend(), USBEndpointStatus(), USBFIFOFlush(), USBHostAddrGet(), USBHostAddrSet(), USBHostEndpointConfig(), USBHostEndpointDataAck(), USBHostEndpointDataToggle(), USBHostEndpointPing(), USBHostEndpointSpeed(), USBHostEndpointStatusClear(), USBHostHubAddrGet(), USBHostHubAddrSet(), USBHostRequestIN(), and USBHostRequestINClear().
#define USB_EP_1 0x00000010 |
Definition at line 348 of file usb.h.
Referenced by USBDevEndpointConfigGet(), USBDevEndpointConfigSet(), USBDevEndpointDataAck(), USBDevEndpointStall(), USBDevEndpointStallClear(), USBDevEndpointStatusClear(), USBEndpointDataAvail(), USBEndpointDataGet(), USBEndpointDataPut(), USBEndpointDataSend(), USBEndpointDataToggleClear(), USBEndpointDMAChannel(), USBEndpointStatus(), USBFIFOConfigGet(), USBFIFOConfigSet(), USBFIFOFlush(), USBHostAddrGet(), USBHostAddrSet(), USBHostEndpointConfig(), USBHostEndpointDataAck(), USBHostEndpointDataToggle(), USBHostEndpointSpeed(), USBHostEndpointStatusClear(), USBHostHubAddrGet(), USBHostHubAddrSet(), USBHostRequestIN(), and USBHostRequestINClear().
#define USB_EP_2 0x00000020 |
Definition at line 349 of file usb.h.
Referenced by USBDevEndpointConfigGet(), USBDevEndpointConfigSet(), USBDevEndpointDataAck(), USBDevEndpointStall(), USBDevEndpointStallClear(), USBDevEndpointStatusClear(), USBEndpointDataAvail(), USBEndpointDataGet(), USBEndpointDataPut(), USBEndpointDataSend(), USBEndpointDataToggleClear(), USBEndpointDMAChannel(), USBEndpointStatus(), USBFIFOConfigGet(), USBFIFOConfigSet(), USBFIFOFlush(), USBHostAddrGet(), USBHostAddrSet(), USBHostEndpointConfig(), USBHostEndpointDataAck(), USBHostEndpointDataToggle(), USBHostEndpointSpeed(), USBHostEndpointStatusClear(), USBHostHubAddrGet(), USBHostHubAddrSet(), USBHostRequestIN(), and USBHostRequestINClear().
#define USB_EP_3 0x00000030 |
Definition at line 350 of file usb.h.
Referenced by USBDevEndpointConfigGet(), USBDevEndpointConfigSet(), USBDevEndpointDataAck(), USBDevEndpointStall(), USBDevEndpointStallClear(), USBDevEndpointStatusClear(), USBEndpointDataAvail(), USBEndpointDataGet(), USBEndpointDataPut(), USBEndpointDataSend(), USBEndpointDataToggleClear(), USBEndpointDMAChannel(), USBEndpointStatus(), USBFIFOConfigGet(), USBFIFOConfigSet(), USBFIFOFlush(), USBHostAddrGet(), USBHostAddrSet(), USBHostEndpointConfig(), USBHostEndpointDataAck(), USBHostEndpointDataToggle(), USBHostEndpointSpeed(), USBHostEndpointStatusClear(), USBHostHubAddrGet(), USBHostHubAddrSet(), USBHostRequestIN(), and USBHostRequestINClear().
#define USB_EP_4 0x00000040 |
Definition at line 351 of file usb.h.
Referenced by USBDevEndpointConfigGet(), USBDevEndpointConfigSet(), USBDevEndpointDataAck(), USBDevEndpointStall(), USBDevEndpointStallClear(), USBDevEndpointStatusClear(), USBEndpointDataAvail(), USBEndpointDataGet(), USBEndpointDataPut(), USBEndpointDataSend(), USBEndpointDataToggleClear(), USBEndpointDMAChannel(), USBEndpointStatus(), USBFIFOConfigGet(), USBFIFOConfigSet(), USBFIFOFlush(), USBHostAddrGet(), USBHostAddrSet(), USBHostEndpointConfig(), USBHostEndpointDataAck(), USBHostEndpointDataToggle(), USBHostEndpointSpeed(), USBHostEndpointStatusClear(), USBHostHubAddrGet(), USBHostHubAddrSet(), USBHostRequestIN(), and USBHostRequestINClear().
#define USB_EP_5 0x00000050 |
Definition at line 352 of file usb.h.
Referenced by USBDevEndpointConfigGet(), USBDevEndpointConfigSet(), USBDevEndpointDataAck(), USBDevEndpointStall(), USBDevEndpointStallClear(), USBDevEndpointStatusClear(), USBEndpointDataAvail(), USBEndpointDataGet(), USBEndpointDataPut(), USBEndpointDataSend(), USBEndpointDataToggleClear(), USBEndpointDMAChannel(), USBEndpointStatus(), USBFIFOConfigGet(), USBFIFOConfigSet(), USBFIFOFlush(), USBHostAddrGet(), USBHostAddrSet(), USBHostEndpointConfig(), USBHostEndpointDataAck(), USBHostEndpointDataToggle(), USBHostEndpointSpeed(), USBHostEndpointStatusClear(), USBHostHubAddrGet(), USBHostHubAddrSet(), USBHostRequestIN(), and USBHostRequestINClear().
#define USB_EP_6 0x00000060 |
Definition at line 353 of file usb.h.
Referenced by USBDevEndpointConfigGet(), USBDevEndpointConfigSet(), USBDevEndpointDataAck(), USBDevEndpointStall(), USBDevEndpointStallClear(), USBDevEndpointStatusClear(), USBEndpointDataAvail(), USBEndpointDataGet(), USBEndpointDataPut(), USBEndpointDataSend(), USBEndpointDataToggleClear(), USBEndpointDMAChannel(), USBEndpointStatus(), USBFIFOConfigGet(), USBFIFOConfigSet(), USBFIFOFlush(), USBHostAddrGet(), USBHostAddrSet(), USBHostEndpointConfig(), USBHostEndpointDataAck(), USBHostEndpointDataToggle(), USBHostEndpointSpeed(), USBHostEndpointStatusClear(), USBHostHubAddrGet(), USBHostHubAddrSet(), USBHostRequestIN(), and USBHostRequestINClear().
#define USB_EP_7 0x00000070 |
Definition at line 354 of file usb.h.
Referenced by USBDevEndpointConfigGet(), USBDevEndpointConfigSet(), USBDevEndpointDataAck(), USBDevEndpointStall(), USBDevEndpointStallClear(), USBDevEndpointStatusClear(), USBDMAChannelConfigSet(), USBEndpointDataAvail(), USBEndpointDataGet(), USBEndpointDataPut(), USBEndpointDataSend(), USBEndpointDataToggleClear(), USBEndpointDMAChannel(), USBEndpointStatus(), USBFIFOConfigGet(), USBFIFOConfigSet(), USBFIFOFlush(), USBHostAddrGet(), USBHostAddrSet(), USBHostEndpointConfig(), USBHostEndpointDataAck(), USBHostEndpointDataToggle(), USBHostEndpointSpeed(), USBHostEndpointStatusClear(), USBHostHubAddrGet(), USBHostHubAddrSet(), USBHostRequestIN(), and USBHostRequestINClear().
#define USB_EP_AUTO_CLEAR 0x00000004 |
Definition at line 228 of file usb.h.
Referenced by USBDevEndpointConfigGet(), USBDevEndpointConfigSet(), USBEndpointDMAConfigSet(), and USBHostEndpointConfig().
#define USB_EP_AUTO_REQUEST 0x00000002 |
Definition at line 227 of file usb.h.
Referenced by USBEndpointDMAConfigSet(), and USBHostEndpointConfig().
#define USB_EP_AUTO_SET 0x00000001 |
Definition at line 226 of file usb.h.
Referenced by USBDevEndpointConfigGet(), USBDevEndpointConfigSet(), USBEndpointDMAConfigSet(), and USBHostEndpointConfig().
#define USB_EP_DEV_IN 0x00002000 |
Definition at line 244 of file usb.h.
Referenced by USBDevEndpointConfigGet(), USBDevEndpointConfigSet(), USBDevEndpointStall(), USBDevEndpointStallClear(), USBEndpointDataToggleClear(), USBEndpointDMADisable(), USBEndpointDMAEnable(), USBFIFOConfigGet(), USBFIFOConfigSet(), and USBFIFOFlush().
#define USB_EP_DEV_OUT 0x00000000 |
Definition at line 245 of file usb.h.
Referenced by USBDevEndpointConfigGet(), USBDevEndpointStall(), and USBDevEndpointStallClear().
#define USB_EP_DIS_NYET 0x00000020 |
Definition at line 231 of file usb.h.
Referenced by USBDevEndpointConfigSet().
#define USB_EP_DMA_MODE_0 0x00000008 |
Definition at line 229 of file usb.h.
Referenced by USBDevEndpointConfigGet(), USBDevEndpointConfigSet(), and USBHostEndpointConfig().
#define USB_EP_DMA_MODE_1 0x00000010 |
Definition at line 230 of file usb.h.
Referenced by USBDevEndpointConfigGet(), USBDevEndpointConfigSet(), USBEndpointDMAConfigSet(), and USBHostEndpointConfig().
#define USB_EP_HOST_IN 0x00000000 |
Definition at line 242 of file usb.h.
Referenced by USBHostEndpointDataToggle().
#define USB_EP_HOST_OUT 0x00002000 |
Definition at line 243 of file usb.h.
Referenced by USBEndpointDataToggleClear(), USBEndpointDMAConfigSet(), USBFIFOConfigGet(), USBFIFOConfigSet(), USBFIFOFlush(), USBHostAddrGet(), USBHostAddrSet(), USBHostEndpointConfig(), USBHostEndpointSpeed(), USBHostHubAddrGet(), and USBHostHubAddrSet().
#define USB_EP_MODE_BULK 0x00000100 |
Definition at line 235 of file usb.h.
Referenced by USBDevEndpointConfigGet(), and USBHostEndpointConfig().
#define USB_EP_MODE_CTRL 0x00000300 |
Definition at line 237 of file usb.h.
Referenced by USBHostEndpointConfig().
#define USB_EP_MODE_INT 0x00000200 |
Definition at line 236 of file usb.h.
Referenced by USBHostEndpointConfig().
#define USB_EP_MODE_ISOC 0x00000000 |
Definition at line 234 of file usb.h.
Referenced by USBDevEndpointConfigGet(), USBDevEndpointConfigSet(), and USBHostEndpointConfig().
#define USB_EP_MODE_MASK 0x00000300 |
Definition at line 238 of file usb.h.
Referenced by USBDevEndpointConfigSet(), and USBHostEndpointConfig().
#define USB_EP_SPEED_FULL 0x00001000 |
Definition at line 240 of file usb.h.
Referenced by USBHostEndpointConfig(), USBHostEndpointSpeed(), and USBHostHubAddrSet().
#define USB_EP_SPEED_HIGH 0x00004000 |
Definition at line 241 of file usb.h.
Referenced by USBHostEndpointConfig(), USBHostEndpointSpeed(), and USBHostHubAddrSet().
#define USB_FULL_SPEED 0x00000001 |
Definition at line 161 of file usb.h.
Referenced by USBDevSpeedGet(), and USBHostSpeedGet().
#define USB_HIGH_SPEED 0x00000002 |
Definition at line 160 of file usb.h.
Referenced by USBDevSpeedGet(), and USBHostSpeedGet().
#define USB_HOST_PWREN_FILTER 0x00010000 |
Definition at line 263 of file usb.h.
Referenced by USBHostPwrConfig().
#define USB_INTCTRL_ALL 0x000003FF |
Definition at line 61 of file usb.h.
Referenced by USBIntDisableControl(), and USBIntEnableControl().
#define USB_INTCTRL_MODE_DETECT 0x00000200 |
Definition at line 73 of file usb.h.
Referenced by USBIntDisableControl(), USBIntEnableControl(), and USBIntStatusControl().
#define USB_INTCTRL_POWER_FAULT 0x00000100 |
Definition at line 74 of file usb.h.
Referenced by USBIntDisableControl(), USBIntEnableControl(), and USBIntStatusControl().
#define USB_INTCTRL_STATUS 0x000000FF |
Definition at line 62 of file usb.h.
Referenced by USBIntDisableControl(), and USBIntEnableControl().
#define USB_INTEP_0 0x00000001 |
Definition at line 152 of file usb.h.
Referenced by USBIntDisableEndpoint(), and USBIntEnableEndpoint().
#define USB_INTEP_DEV_IN 0x0000FFFE |
Definition at line 135 of file usb.h.
Referenced by USBIntDisableEndpoint(), and USBIntEnableEndpoint().
#define USB_INTEP_DEV_OUT 0xFFFE0000 |
Definition at line 101 of file usb.h.
Referenced by USBIntDisableEndpoint(), and USBIntEnableEndpoint().
#define USB_INTEP_HOST_IN 0xFFFE0000 |
Definition at line 84 of file usb.h.
Referenced by USBIntDisableEndpoint(), and USBIntEnableEndpoint().
#define USB_INTEP_HOST_OUT 0x0000FFFE |
Definition at line 118 of file usb.h.
Referenced by USBIntDisableEndpoint(), and USBIntEnableEndpoint().
#define USB_LOW_SPEED 0x00000000 |
Definition at line 162 of file usb.h.
Referenced by USBHostSpeedGet().
#define USB_UNDEF_SPEED 0x80000000 |
Definition at line 159 of file usb.h.
Referenced by USBHostSpeedGet().
#define USBEPToIndex | ( | x | ) | ((x) >> 4) |
Definition at line 364 of file usb.h.
Referenced by USBEndpointDMAChannel(), USBEndpointPacketCountSet(), and USBHostLPMSend().
void USBDMAChannelAssign | ( | uint32_t | ui32Base, |
uint32_t | ui32Endpoint, | ||
uint32_t | ui32Channel, | ||
uint32_t | ui32Flags | ||
) |