USB Controller
be used with transmit endpoints. This allows the 3 receive and 3 transmit DMA channels to be
mapped to any endpoint other than 0. The values that should be passed into the ui32Channel
value are the UDMA_CHANNEL_USBEP∗ values defined in udma.h.
Note:
This function only has an effect on microcontrollers that have the ability to change the DMA
channel for an endpoint. Calling this function on other devices will have no effect.
Returns:
None.
24.3.1.19 ROM_USBEndpointDMADisable
Disable DMA on a given endpoint.
Prototype:
void
ROM_USBEndpointDMADisable(uint32_t ui32Base,
uint32_t ui32Endpoint,
uint32_t ui32Flags)
ROM Location:
ROM_APITABLE is an array of pointers located at 0x0100.0010.
ROM_USBTABLE is an array of pointers located at ROM_APITABLE[16].
ROM_USBEndpointDMADisable is a function pointer located at ROM_USBTABLE[43].
Parameters:
ui32Base specifies the USB module base address.
ui32Endpoint is the endpoint to access.
ui32Flags specifies which direction to disable.
Description:
This function will disable DMA on a given end point to allow non-DMA USB transactions to gen-
erate interrupts normally. The ui32Flags should be USB_EP_DEV_IN or USB_EP_DEV_OUT
all other bits are ignored.
Returns:
None.
24.3.1.20 ROM_USBEndpointDMAEnable
Enable DMA on a given endpoint.
Prototype:
void
ROM_USBEndpointDMAEnable(uint32_t ui32Base,
uint32_t ui32Endpoint,
uint32_t ui32Flags)
April 8, 2013 315