/* Change the mode of the USB controller to device. */
void USBDevMode(unsigned long ulBase)
/* Change the mode of the USB controller to device. */
void USBDevMode(unsigned long ulBase)
{
    ASSERT(ulBase == USB0_BASE);
    HWREGB(ulBase + USB_O_GPCS) = USB_GPCS_DEVMODOTG | USB_GPCS_DEVMOD;
}