diff options
| author | hathach <[email protected]> | 2013-12-11 14:31:27 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-12-11 14:31:27 +0700 |
| commit | 4d14e2ac50dfa137d8b761825011c3a4e97cf26d (patch) | |
| tree | c650661bc180c0138e8895320be97964c58119e8 /tinyusb/host/ehci | |
| parent | b35d2c8f43bd8fa80fd85bbb44c9f3f1d6030e20 (diff) | |
add structure & define for ohci
Diffstat (limited to 'tinyusb/host/ehci')
| -rw-r--r-- | tinyusb/host/ehci/ehci.c | 14 | ||||
| -rw-r--r-- | tinyusb/host/ehci/ehci.h | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/tinyusb/host/ehci/ehci.c b/tinyusb/host/ehci/ehci.c index 21114712e..de9f88f9f 100644 --- a/tinyusb/host/ehci/ehci.c +++ b/tinyusb/host/ehci/ehci.c @@ -171,6 +171,13 @@ tusb_speed_t hcd_port_speed_get(uint8_t hostid) return (tusb_speed_t) get_operational_register(hostid)->portsc_bit.nxp_port_speed; // NXP specific port speed
}
+// TODO refractor abtract later
+void hcd_port_unplug(uint8_t hostid)
+{
+ ehci_registers_t* const regs = get_operational_register(hostid);
+ regs->usb_cmd_bit.advacne_async = 1; // Async doorbell check EHCI 4.8.2 for operational details
+}
+
//--------------------------------------------------------------------+
// Controller API
//--------------------------------------------------------------------+
@@ -572,13 +579,6 @@ static void port_connect_status_change_isr(uint8_t hostid) }
}
-// TODO refractor abtract later
-void hcd_port_unplug(uint8_t hostid)
-{
- ehci_registers_t* const regs = get_operational_register(hostid);
- regs->usb_cmd_bit.advacne_async = 1; // Async doorbell check EHCI 4.8.2 for operational details
-}
-
static void qhd_xfer_complete_isr(ehci_qhd_t * p_qhd)
{
uint8_t max_loop = 0;
diff --git a/tinyusb/host/ehci/ehci.h b/tinyusb/host/ehci/ehci.h index 1736190b8..ed4e8b0ef 100644 --- a/tinyusb/host/ehci/ehci.h +++ b/tinyusb/host/ehci/ehci.h @@ -71,7 +71,7 @@ #define HOST_HCD_XFER_INTERRUPT // TODO interrupt is used widely, should always be enalbed #define EHCI_PERIODIC_LIST (defined HOST_HCD_XFER_INTERRUPT || defined HOST_HCD_XFER_ISOCHRONOUS) -// TODO allow user to configure +// TODO merge OHCI with EHCI #define EHCI_MAX_QHD 8 #define EHCI_MAX_QTD 20 #define EHCI_MAX_ITD 4 |
