Content originally posted in LPCWare by Tsuneo on Tue Jan 20 05:34:07 MST 2015
Quote:
OTGSTCTRL = 0x00000003; //usb port sel , changed from 1 to 3 for usb2 /**/
OTGSTCTRL &= ~(0x00000001 << 1); // drop the bit 1, to assign USB2 port to host
OTGSTCTRL.PORT_FUNC = 3 means U1 = host, U2 = device
Tsuneo