diff options
| author | hathach <[email protected]> | 2013-12-16 12:35:05 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-12-16 12:35:05 +0700 |
| commit | 75ffc0bfecc380995c818ab602e3cb4170aa6720 (patch) | |
| tree | 28c48f31d28ac8d748f9e0484d77b89aeff592f4 /tinyusb/host/usbh.c | |
| parent | 736cbdc276f2c03a547ce8d9f58f0117bb732789 (diff) | |
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
Diffstat (limited to 'tinyusb/host/usbh.c')
| -rw-r--r-- | tinyusb/host/usbh.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
