USB Controller
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_USBDevEndpointStallClear is a function pointer located at ROM_USBTABLE[8].
Parameters:
ui32Base specifies the USB module base address.
ui32Endpoint specifies which endpoint to remove the stall condition.
ui32Flags specifies whether to remove the stall condition from the IN or the OUT portion of
this endpoint.
Description:
This function will cause the endpoint number passed in to exit the stall condition. If the
ui32Flags parameter is USB_EP_DEV_IN then the stall is cleared on the IN portion of this
endpoint. If the ui32Flags parameter is USB_EP_DEV_OUT then the stall is cleared on the
OUT portion of this endpoint.
Note:
This function should only be called in device mode.
Returns:
None.
24.3.1.11 ROM_USBDevEndpointStatusClear
Clears the status bits in this endpoint in device mode.
Prototype:
void
ROM_USBDevEndpointStatusClear(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_USBDevEndpointStatusClear is a function pointer located at ROM_USBTABLE[9].
Parameters:
ui32Base specifies the USB module base address.
ui32Endpoint is the endpoint to access.
ui32Flags are the status bits that should be cleared.
Description:
This function will clear the status of any bits that are passed in the ui32Flags parameter. The
ui32Flags parameter can take the value returned from the ROM_USBEndpointStatus() call.
Note:
This function should only be called in device mode.
Returns:
None.
310 April 8, 2013