1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2025-04-21 12:27:27 +03:00

Minor potential improvements of USB robustness.

- atrf/fw/atspi/atspi.c (main): add a delay to give the host more time to
- atrf/fw/atspi/descr.c: we don't use EP1, so simplify the descriptors we
  send. Keep the EP1 descriptors around (commented out) in case  we need
  them later, e.g., for interrupts.
This commit is contained in:
Werner Almesberger
2010-08-24 18:31:58 -03:00
parent c01a5e0b7a
commit 8f744bba63
2 changed files with 20 additions and 4 deletions

View File

@@ -90,8 +90,16 @@ static void init_io(void)
void main(void)
{
int i;
init_io();
/*
* Make sure the host has enough time (2.5 us) to detect that we reset
* our USB stack.
*/
for (i = 0; i != 10; i++);
usb_init();
ep0_init();