From eac8bcf910e537ee4023d7dab279bde3da72496d Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 3 May 2015 16:14:08 -0600 Subject: [PATCH] Olimex LPC1766STK: The USB host waiter stack should be configurable because it needs to be a lot depending when using a hub --- arch/arm/src/lpc17xx/lpc17_usbhost.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/lpc17xx/lpc17_usbhost.c b/arch/arm/src/lpc17xx/lpc17_usbhost.c index 351e78d42d0..491be114f08 100644 --- a/arch/arm/src/lpc17xx/lpc17_usbhost.c +++ b/arch/arm/src/lpc17xx/lpc17_usbhost.c @@ -429,7 +429,7 @@ static struct lpc17_list_s *g_iofree; /* List of unused I/O buffers */ /* Pool and freelist of asynchronous transfer structures */ static struct lpc17_list_s *g_asynchfree; -static struct lpc17_list_s g_asynchbuffers[CONFIG_LPC17_USBHOST_NASYNCH]; +static struct lpc17_asynch_s g_asynchbuffers[CONFIG_LPC17_USBHOST_NASYNCH]; #endif /******************************************************************************* @@ -3499,7 +3499,7 @@ struct usbhost_connection_s *lpc17_usbhost_initialize(int controller) #ifdef CONFIG_USBHOST_ASYNCH /* Initialize asynchronous transfer structures */ - for (i = 0, asynch = (struct lpc17_asynch_s *)g_asynchbuffers; + for (i = 0, asynch = g_asynchbuffers; i < CONFIG_LPC17_USBHOST_NASYNCH; i++, asynch++) {