STM32F429i-Disco USB: Strangeness: Conditioned on OTGHS but called otgfs initialize routines. Must be something broken
This commit is contained in:
parent
715ea79555
commit
a99f6c2061
@ -109,6 +109,7 @@ static int usbhost_waiter(int argc, char *argv[])
|
|||||||
|
|
||||||
ret = CONN_WAIT(g_usbconn, &connected);
|
ret = CONN_WAIT(g_usbconn, &connected);
|
||||||
DEBUGASSERT(ret == OK);
|
DEBUGASSERT(ret == OK);
|
||||||
|
UNUSED(ret);
|
||||||
|
|
||||||
connected = !connected;
|
connected = !connected;
|
||||||
uvdbg("%s\n", connected ? "connected" : "disconnected");
|
uvdbg("%s\n", connected ? "connected" : "disconnected");
|
||||||
@ -185,7 +186,7 @@ int stm32_usbhost_initialize(void)
|
|||||||
/* Then get an instance of the USB host interface */
|
/* Then get an instance of the USB host interface */
|
||||||
|
|
||||||
uvdbg("Initialize USB host\n");
|
uvdbg("Initialize USB host\n");
|
||||||
g_usbconn = stm32_otgfshost_initialize(0);
|
g_usbconn = stm32_otghshost_initialize(0);
|
||||||
if (g_usbconn)
|
if (g_usbconn)
|
||||||
{
|
{
|
||||||
/* Start a thread to handle device connection. */
|
/* Start a thread to handle device connection. */
|
||||||
@ -289,4 +290,3 @@ void stm32_usbsuspend(FAR struct usbdev_s *dev, bool resume)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* CONFIG_STM32_OTGHS */
|
#endif /* CONFIG_STM32_OTGHS */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user