From c48eb9ed0ef3ba69825c66cc13a18297ed94e891 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 29 Dec 2014 07:02:32 -0600 Subject: STM32F429i-Disco USB: Strangeness: Conditioned on OTGHS but called otgfs initialize routines. Must be something broken --- nuttx/configs/stm32f429i-disco/src/stm32_usb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nuttx/configs/stm32f429i-disco/src/stm32_usb.c b/nuttx/configs/stm32f429i-disco/src/stm32_usb.c index fabe56395..581107046 100644 --- a/nuttx/configs/stm32f429i-disco/src/stm32_usb.c +++ b/nuttx/configs/stm32f429i-disco/src/stm32_usb.c @@ -109,6 +109,7 @@ static int usbhost_waiter(int argc, char *argv[]) ret = CONN_WAIT(g_usbconn, &connected); DEBUGASSERT(ret == OK); + UNUSED(ret); connected = !connected; uvdbg("%s\n", connected ? "connected" : "disconnected"); @@ -185,7 +186,7 @@ int stm32_usbhost_initialize(void) /* Then get an instance of the USB host interface */ uvdbg("Initialize USB host\n"); - g_usbconn = stm32_otgfshost_initialize(0); + g_usbconn = stm32_otghshost_initialize(0); if (g_usbconn) { /* Start a thread to handle device connection. */ @@ -289,4 +290,3 @@ void stm32_usbsuspend(FAR struct usbdev_s *dev, bool resume) #endif #endif /* CONFIG_STM32_OTGHS */ - -- cgit v1.2.3