fix compiling error for tests project

start to add support for host hid mouse
This commit is contained in:
hathach
2013-04-07 03:53:53 +07:00
parent 1776bb53f6
commit 24ade0458e
4 changed files with 33 additions and 3 deletions

View File

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