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/ehci | |
| 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/ehci')
| -rw-r--r-- | tinyusb/host/ehci/ehci.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tinyusb/host/ehci/ehci.c b/tinyusb/host/ehci/ehci.c index de9f88f9f..b9116cfae 100644 --- a/tinyusb/host/ehci/ehci.c +++ b/tinyusb/host/ehci/ehci.c @@ -310,7 +310,6 @@ tusb_error_t hcd_pipe_control_open(uint8_t dev_addr, uint8_t max_packet_size) if (dev_addr != 0)
{
//------------- insert to async list -------------//
- // TODO might need to to disable async list first
list_insert( (ehci_link_t*) get_async_head(usbh_devices[dev_addr].core_id),
(ehci_link_t*) p_qhd, EHCI_QUEUE_ELEMENT_QHD);
}
@@ -965,7 +964,7 @@ static inline void qtd_insert_to_qhd(ehci_qhd_t *p_qhd, ehci_qtd_t *p_qtd_new) static void qhd_init(ehci_qhd_t *p_qhd, uint8_t dev_addr, uint16_t max_packet_size, uint8_t endpoint_addr, uint8_t xfer_type, uint8_t interval)
{
- // address 0 uses async head, which always on the list --> cannot be cleared (ehci halted otherwise)
+ // address 0 is used as async head, which always on the list --> cannot be cleared (ehci halted otherwise)
if (dev_addr != 0)
{
memclr_(p_qhd, sizeof(ehci_qhd_t));
|
