diff options
| author | hathach <[email protected]> | 2014-02-19 15:50:39 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2014-02-19 15:50:39 +0700 |
| commit | d86523b16ce4e2512661477b85f8a7447ab91efa (patch) | |
| tree | 339a9b530258ae95e81c3a48a6274c9cadf1bb6a /tinyusb/host | |
| parent | bbe26facb34959c78efacbd3424606c8a6896c3b (diff) | |
re-enable blocking waiting in ehci controller reset (otherwise it wont works)
Diffstat (limited to 'tinyusb/host')
| -rw-r--r-- | tinyusb/host/ehci/ehci.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tinyusb/host/ehci/ehci.c b/tinyusb/host/ehci/ehci.c index b918c7131..ac0a060d8 100644 --- a/tinyusb/host/ehci/ehci.c +++ b/tinyusb/host/ehci/ehci.c @@ -154,11 +154,11 @@ void hcd_port_reset(uint8_t hostid) regs->portsc_bit.port_enable = 0; // disable port before reset
regs->portsc_bit.port_reset = 1;
-//#ifndef _TEST_
-// // 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) {} // TODO use task delay to remove blocking
-//#endif
+#ifndef _TEST_
+ // 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) {} // TODO use task delay to remove blocking
+#endif
}
bool hcd_port_connect_status(uint8_t hostid)
|
