lpc176x: force minimum usb disconnect time
Fixes GitHub Issue #1499. Resolves USB hang by forcing a minimum USB disconnection time at boot. Signed-off-by: Matt Baker <baker.matt.j@gmail.com>
This commit is contained in:
@@ -277,6 +277,8 @@ usbserial_init(void)
|
||||
gpio_peripheral(GPIO(0, 30), 1, 0);
|
||||
gpio_peripheral(GPIO(0, 29), 1, 0);
|
||||
gpio_peripheral(GPIO(2, 9), 1, 0);
|
||||
// enforce a minimum time bus is disconnected before connecting
|
||||
udelay(5000);
|
||||
// setup endpoints
|
||||
realize_endpoint(EP0OUT, USB_CDC_EP0_SIZE);
|
||||
realize_endpoint(EP0IN, USB_CDC_EP0_SIZE);
|
||||
|
||||
Reference in New Issue
Block a user