while ((OTGCLKST & 0x00000001) == 0) {
}
OTGSTCTRL = 0x00000003; //usb port sel , changed from 1 to 3 for usb2 /**/
IOCON_P0_31 = 0x1; // changed 29(D+1) to 31(D+2) /* P0[31] = USB_D+2 */
IOCON_P1_30 = 0x1A1; /* P1[30] = USB_PWRD2 */
IOCON_P1_31 = 0x1A1; /* P1[31] = USB_OVRCR2 */
IOCON_P0_12 = 0x1A1; /* P0[12] = USB_PPWR2 */
|
USB_INT32S Host_EnumDev (void)
{
USB_INT32S rc;
PRINT_Log("Connect a Mass Storage device\n\r");
while (!HOST_RhscIntr); |