diff options
| author | hathach <[email protected]> | 2013-03-29 23:37:59 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-03-29 23:37:59 +0700 |
| commit | fcb8e295ecf5b50ffe2ec98d648d461bc215e2af (patch) | |
| tree | 0e465cd99b459493fa8defeef62a0849a9885221 /tinyusb/host/ehci | |
| parent | e658e67ebefb94ee001dc491ea01c607300490b7 (diff) | |
clean up, update tests for hcd_port_reset after 8 byte descriptor & set configure before open class driver
Diffstat (limited to 'tinyusb/host/ehci')
| -rw-r--r-- | tinyusb/host/ehci/ehci.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/tinyusb/host/ehci/ehci.c b/tinyusb/host/ehci/ehci.c index 8e7086d23..b698fa229 100644 --- a/tinyusb/host/ehci/ehci.c +++ b/tinyusb/host/ehci/ehci.c @@ -414,6 +414,8 @@ void async_advance_isr(ehci_qhd_t * const async_head) async_head->is_removing = 0; async_head->p_qtd_list_head = async_head->p_qtd_list_tail = NULL; async_head->qtd_overlay.halted = 1; + + usbh_devices[0].state = TUSB_DEVICE_STATE_UNPLUG; } for(uint8_t relative_dev_addr=0; relative_dev_addr < TUSB_CFG_HOST_DEVICE_MAX; relative_dev_addr++) @@ -439,23 +441,6 @@ void async_advance_isr(ehci_qhd_t * const async_head) } // TODO free all itd & sitd } - -// // check if any other endpoints in pool is removing -// for (uint8_t i=0; i<EHCI_MAX_QHD; i++) -// { -// ehci_qhd_t *p_qhd = &ehci_data.device[relative_dev_addr].qhd[i]; -// if (p_qhd->is_removing) -// { -// p_qhd->used = 0; -// p_qhd->is_removing = 0; -// -// while(p_qhd->p_qtd_list_head != NULL) // remove all TDs -// { -// p_qhd->p_qtd_list_head->used = 0; // free QTD -// qtd_remove_1st_from_qhd(p_qhd); -// } -// } -// }// end qhd list loop } // end for device[] loop } |
