summaryrefslogtreecommitdiff
path: root/tinyusb/host/usbh.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-12-19 12:43:22 +0700
committerhathach <[email protected]>2013-12-19 12:43:22 +0700
commitcfcef0558a5b8ab797408f998074fa0ba6703ece (patch)
treea5d468a79f9e4ad4e369b46e97e8f9408aa7ffa7 /tinyusb/host/usbh.c
parentfce62524569e395709612a93bbe1c7cb4e72b6bd (diff)
fix plug & unplug issue by reseting port immediately instead of waiting for usbh enumeration task to do so
Diffstat (limited to 'tinyusb/host/usbh.c')
-rw-r--r--tinyusb/host/usbh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tinyusb/host/usbh.c b/tinyusb/host/usbh.c
index e701d2605..7b358e2f2 100644
--- a/tinyusb/host/usbh.c
+++ b/tinyusb/host/usbh.c
@@ -374,9 +374,9 @@ tusb_error_t enumeration_body_subtask(void)
{ // connected/disconnected directly with roothub
if( hcd_port_connect_status(usbh_devices[0].core_id) )
{ // connection event
- osal_task_delay(200); // wait for device is stable
- hcd_port_reset( usbh_devices[0].core_id ); // port must be reset to have correct speed operation
- osal_task_delay(50); // TODO reset is recommended to last 50 ms (NXP EHCI passes this)
+ osal_task_delay(200); // wait for port reset is complete & device is stable
+// hcd_port_reset( usbh_devices[0].core_id ); // port must be reset to have correct speed operation
+// osal_task_delay(50); // TODO reset is recommended to last 50 ms (NXP EHCI passes this)
usbh_devices[0].speed = hcd_port_speed_get( usbh_devices[0].core_id );
}
else