summaryrefslogtreecommitdiff
path: root/tinyusb/host
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-04-07 03:53:53 +0700
committerhathach <[email protected]>2013-04-07 03:53:53 +0700
commit24ade0458e0fe3831615d7ddb1be0e3b8ed64ba6 (patch)
treec29338345ba0a60cc1aac7bd9379435417c01c33 /tinyusb/host
parent1776bb53f630295c33ea0d283deadf8a794b8c88 (diff)
fix compiling error for tests project
start to add support for host hid mouse
Diffstat (limited to 'tinyusb/host')
-rw-r--r--tinyusb/host/ehci/ehci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tinyusb/host/ehci/ehci.c b/tinyusb/host/ehci/ehci.c
index 453f6b8e8..7a8ad8f30 100644
--- a/tinyusb/host/ehci/ehci.c
+++ b/tinyusb/host/ehci/ehci.c
@@ -135,11 +135,12 @@ void hcd_port_reset(uint8_t hostid)
// NXP specific, port reset will automatically be 0 when reset sequence complete
// there is chance device is unplugged while reset sequence is not complete
while( regs->portsc_bit.port_reset) {}
-#endif
+
// TODO finalize delay after reset, hack delay 100 ms, otherwise speed is detected as LOW in most cases
volatile uint32_t delay_us = 100000;
delay_us *= (SystemCoreClock / 1000000) / 3;
while(delay_us--);
+#endif
}
bool hcd_port_connect_status(uint8_t hostid)