diff options
| author | hathach <[email protected]> | 2013-09-30 17:14:44 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-09-30 17:14:44 +0700 |
| commit | 5eebec61f192032192fc89f2be26d842ccf43ed8 (patch) | |
| tree | 4fe2da0bcd4004e9e2a6d2c639890df11faad12c /tinyusb/host/hub.c | |
| parent | 0f05d27ac9ecf63a6e4ad6b3a91ec4ad536d8dfb (diff) | |
refractor hub
Diffstat (limited to 'tinyusb/host/hub.c')
| -rw-r--r-- | tinyusb/host/hub.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tinyusb/host/hub.c b/tinyusb/host/hub.c index fc87ba141..ad14865ad 100644 --- a/tinyusb/host/hub.c +++ b/tinyusb/host/hub.c @@ -161,12 +161,11 @@ tusb_error_t hub_enumerate_subtask(void) OSAL_SUBTASK_INVOKED_AND_WAIT( hub_port_clear_feature_subtask(HUB_FEATURE_PORT_CONNECTION_CHANGE), error ); SUBTASK_ASSERT_STATUS( error ); - //--------------------------------------------------------------------+ - // PORT RESET & WAIT FOR STATUS ENDPOINT & GET STATUS & CLEAR RESET CHANGE - //--------------------------------------------------------------------+ + //------------- Port Reset & Get Port Speed -------------// OSAL_SUBTASK_INVOKED_AND_WAIT ( hub_port_reset_subtask(), error ); SUBTASK_ASSERT_STATUS( error ); + // TODO get port speed p_port_status = (hub_port_status_response_t *) hub_enum_buffer; usbh_devices[0].speed = (p_port_status->status_current.high_speed_device_attached) ? TUSB_SPEED_HIGH : (p_port_status->status_current.low_speed_device_attached ) ? TUSB_SPEED_LOW : TUSB_SPEED_FULL; |
