From 75ffc0bfecc380995c818ab602e3cb4170aa6720 Mon Sep 17 00:00:00 2001 From: hathach Date: Mon, 16 Dec 2013 12:35:05 +0700 Subject: implement ohci - hcd_port_reset - hcd_port_connect_status - hcd_port_speed_get - hcd_pipe_control_open - hcd_pipe_control_xfer - done_queue_isr for control xfer able to go through enumeration with MSC device --- tinyusb/host/usbh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tinyusb/host/usbh.c') diff --git a/tinyusb/host/usbh.c b/tinyusb/host/usbh.c index 23ab2ba24..0589bad2c 100644 --- a/tinyusb/host/usbh.c +++ b/tinyusb/host/usbh.c @@ -373,7 +373,7 @@ tusb_error_t enumeration_body_subtask(void) { // 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(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 @@ -437,7 +437,7 @@ tusb_error_t enumeration_body_subtask(void) { // connected directly to roothub SUBTASK_ASSERT_STATUS(error); // TODO some slow device is observed to fail the very fist controller xfer, can try more times hcd_port_reset( usbh_devices[0].core_id ); // reset port after 8 byte descriptor -// osal_task_delay(50); // TODO reset is recommended to last 50 ms (NXP EHCI passes this) + osal_task_delay(50); // TODO reset is recommended to last 50 ms (NXP EHCI passes this) } #if TUSB_CFG_HOST_HUB else -- cgit v1.3.1