EE445M RTOS
Taken at the University of Texas Spring 2015
|
#include <stdbool.h>
#include <stdint.h>
#include "inc/hw_ints.h"
#include "inc/hw_memmap.h"
#include "inc/hw_types.h"
#include "inc/hw_sysctl.h"
#include "inc/hw_usb.h"
#include "driverlib/debug.h"
#include "driverlib/interrupt.h"
#include "driverlib/sysctl.h"
#include "driverlib/udma.h"
#include "driverlib/usb.h"
Go to the source code of this file.
Macros | |
#define | USB_INTEP_RX_SHIFT 16 |
#define | USB_RX_EPSTATUS_SHIFT 16 |
#define | EP_OFFSET(Endpoint) (Endpoint - 0x10) |
Functions | |
static void | _USBIndexWrite (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32IndexedReg, uint32_t ui32Value, uint32_t ui32Size) |
static uint32_t | _USBIndexRead (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32IndexedReg, uint32_t ui32Size) |
void | USBHostSuspend (uint32_t ui32Base) |
void | USBHostReset (uint32_t ui32Base, bool bStart) |
void | USBHighSpeed (uint32_t ui32Base, bool bEnable) |
void | USBHostResume (uint32_t ui32Base, bool bStart) |
uint32_t | USBHostSpeedGet (uint32_t ui32Base) |
uint32_t | USBDevSpeedGet (uint32_t ui32Base) |
void | USBIntDisableControl (uint32_t ui32Base, uint32_t ui32Flags) |
void | USBIntEnableControl (uint32_t ui32Base, uint32_t ui32Flags) |
uint32_t | USBIntStatusControl (uint32_t ui32Base) |
void | USBIntDisableEndpoint (uint32_t ui32Base, uint32_t ui32Flags) |
void | USBIntEnableEndpoint (uint32_t ui32Base, uint32_t ui32Flags) |
uint32_t | USBIntStatusEndpoint (uint32_t ui32Base) |
static uint32_t | _USBIntNumberGet (uint32_t ui32Base) |
void | USBIntRegister (uint32_t ui32Base, void(*pfnHandler)(void)) |
void | USBIntUnregister (uint32_t ui32Base) |
uint32_t | USBEndpointStatus (uint32_t ui32Base, uint32_t ui32Endpoint) |
void | USBHostEndpointStatusClear (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags) |
void | USBDevEndpointStatusClear (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags) |
void | USBHostEndpointDataToggle (uint32_t ui32Base, uint32_t ui32Endpoint, bool bDataToggle, uint32_t ui32Flags) |
void | USBEndpointDataToggleClear (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags) |
void | USBHostEndpointPing (uint32_t ui32Base, uint32_t ui32Endpoint, bool bEnable) |
void | USBDevEndpointStall (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags) |
void | USBDevEndpointStallClear (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags) |
void | USBDevConnect (uint32_t ui32Base) |
void | USBDevDisconnect (uint32_t ui32Base) |
void | USBDevAddrSet (uint32_t ui32Base, uint32_t ui32Address) |
uint32_t | USBDevAddrGet (uint32_t ui32Base) |
void | USBHostEndpointConfig (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32MaxPayload, uint32_t ui32NAKPollInterval, uint32_t ui32TargetEndpoint, uint32_t ui32Flags) |
void | USBHostEndpointSpeed (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags) |
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 | USBFIFOConfigSet (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32FIFOAddress, uint32_t ui32FIFOSize, uint32_t ui32Flags) |
void | USBFIFOConfigGet (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t *pui32FIFOAddress, uint32_t *pui32FIFOSize, uint32_t ui32Flags) |
void | USBEndpointDMAConfigSet (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Config) |
void | USBEndpointDMAEnable (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags) |
void | USBEndpointDMADisable (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags) |
uint32_t | USBEndpointDataAvail (uint32_t ui32Base, uint32_t ui32Endpoint) |
int32_t | USBEndpointDataGet (uint32_t ui32Base, uint32_t ui32Endpoint, uint8_t *pui8Data, uint32_t *pui32Size) |
void | USBDevEndpointDataAck (uint32_t ui32Base, uint32_t ui32Endpoint, bool bIsLastPacket) |
void | USBHostEndpointDataAck (uint32_t ui32Base, uint32_t ui32Endpoint) |
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 | USBFIFOFlush (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags) |
void | USBHostRequestIN (uint32_t ui32Base, uint32_t ui32Endpoint) |
void | USBHostRequestINClear (uint32_t ui32Base, uint32_t ui32Endpoint) |
void | USBHostRequestStatus (uint32_t ui32Base) |
void | USBHostAddrSet (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Addr, uint32_t ui32Flags) |
uint32_t | USBHostAddrGet (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags) |
void | USBHostHubAddrSet (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Addr, uint32_t ui32Flags) |
uint32_t | USBHostHubAddrGet (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags) |
void | USBHostPwrConfig (uint32_t ui32Base, uint32_t ui32Flags) |
void | USBHostPwrFaultEnable (uint32_t ui32Base) |
void | USBHostPwrFaultDisable (uint32_t ui32Base) |
void | USBHostPwrEnable (uint32_t ui32Base) |
void | USBHostPwrDisable (uint32_t ui32Base) |
uint32_t | USBFrameNumberGet (uint32_t ui32Base) |
void | USBOTGSessionRequest (uint32_t ui32Base, bool bStart) |
uint32_t | USBFIFOAddrGet (uint32_t ui32Base, uint32_t ui32Endpoint) |
uint32_t | USBModeGet (uint32_t ui32Base) |
void | USBEndpointDMAChannel (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Channel) |
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) |
void | USBEndpointPacketCountSet (uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Count) |
uint32_t | USBNumEndpointsGet (uint32_t ui32Base) |
uint32_t | USBControllerVersion (uint32_t ui32Base) |
void | USBClockEnable (uint32_t ui32Base, uint32_t ui32Div, uint32_t ui32Flags) |
void | USBClockDisable (uint32_t ui32Base) |
void | USBDMAChannelIntEnable (uint32_t ui32Base, uint32_t ui32Channel) |
void | USBDMAChannelIntDisable (uint32_t ui32Base, uint32_t ui32Channel) |
uint32_t | USBDMAChannelIntStatus (uint32_t ui32Base) |
void | USBDMAChannelEnable (uint32_t ui32Base, uint32_t ui32Channel) |
void | USBDMAChannelDisable (uint32_t ui32Base, uint32_t ui32Channel) |
void | USBDMAChannelConfigSet (uint32_t ui32Base, uint32_t ui32Channel, uint32_t ui32Endpoint, uint32_t ui32Config) |
uint32_t | USBDMAChannelStatus (uint32_t ui32Base, uint32_t ui32Channel) |
void | USBDMAChannelStatusClear (uint32_t ui32Base, uint32_t ui32Channel, uint32_t ui32Status) |
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 ui32Channel, uint32_t ui32Count) |
uint32_t | USBDMAChannelCountGet (uint32_t ui32Base, uint32_t ui32Channel) |
uint32_t | USBDMANumChannels (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 | USBHostLPMSend (uint32_t ui32Base, uint32_t ui32Address, uint32_t ui32Endpoint) |
void | USBHostLPMConfig (uint32_t ui32Base, uint32_t ui32ResumeTime, uint32_t ui32Config) |
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) |
bool | USBLPMRemoteWakeEnabled (uint32_t ui32Base) |
uint32_t | USBLPMIntStatus (uint32_t ui32Base) |
void | USBLPMIntEnable (uint32_t ui32Base, uint32_t ui32Ints) |
void | USBLPMIntDisable (uint32_t ui32Base, uint32_t ui32Ints) |