USB Controller
uint32_t ROM_USBModeGet (uint32_t ui32Base)
uint32_t ROM_USBNumEndpointsGet (uint32_t ui32Base)
void ROM_USBOTGMode (uint32_t ui32Base)
void ROM_USBPHYPowerOff (uint32_t ui32Base)
void ROM_USBPHYPowerOn (uint32_t ui32Base)
24.3.1 Function Documentation
24.3.1.1 ROM_UpdateUSB
Starts an update over the USB interface.
Prototype:
void
ROM_UpdateUSB(uint8_t
*
pui8USBBootROMInfo)
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_UpdateUSB is a function pointer located at ROM_USBTABLE[58].
Parameters:
pui8USBBootROMInfo is a pointer to an array containing the values that are used to cus-
tomize the USB interface.
Description:
Calling this function commences an update of the firmware via the USB interface. This function
assumes that the USB interface has already been configured and the device is being clocked
by the PLL. By using the pui8USBBootROMInfo, the vendor ID, proudct ID, bus- versus self-
powered, maximum power, device version, and USB strings can be customized.
Returns:
Never returns.
24.3.1.2 ROM_USBDevAddrGet
Returns the current device address in device mode.
Prototype:
uint32_t
ROM_USBDevAddrGet(uint32_t ui32Base)
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_USBDevAddrGet is a function pointer located at ROM_USBTABLE[1].
Parameters:
ui32Base specifies the USB module base address.
304 April 8, 2013