First of several changes needed to support multiple USB host root hubs

This commit is contained in:
Gregory Nutt
2013-08-12 14:44:06 -06:00
parent 0da218483d
commit e09bd50fdd
20 changed files with 321 additions and 218 deletions
+2 -2
View File
@@ -109,7 +109,7 @@ static int usbhost_waiter(int argc, char *argv[])
{
/* Wait for the device to change state */
ret = DRVR_WAIT(g_drvr, connected);
ret = DRVR_WAIT(g_drvr, &connected);
DEBUGASSERT(ret == OK);
connected = !connected;
@@ -121,7 +121,7 @@ static int usbhost_waiter(int argc, char *argv[])
{
/* Yes.. enumerate the newly connected device */
(void)DRVR_ENUMERATE(g_drvr);
(void)DRVR_ENUMERATE(g_drvr, 0);
}
}