re-enable blocking waiting in ehci controller reset (otherwise it wont works)

This commit is contained in:
hathach
2014-02-19 15:50:39 +07:00
parent bbe26facb3
commit d86523b16c

View File

@@ -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)