summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-08-13 17:43:19 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-08-13 17:43:19 -0600
commit2cf667980a218cc0dde8413c44a7e9cd17315e34 (patch)
tree2932017f70ce2a86573db3a68a7ea32e94ab7026
parente586e9273bbedeb3fc57998660d5869752fea68d (diff)
downloadnuttx-2cf667980a218cc0dde8413c44a7e9cd17315e34.tar.gz
nuttx-2cf667980a218cc0dde8413c44a7e9cd17315e34.tar.bz2
nuttx-2cf667980a218cc0dde8413c44a7e9cd17315e34.zip
Clean up some LP17xx and STM32 USB host configuration compilation errors due to the massive changes to the USB host interfaces needed to support the SAMA5
-rw-r--r--apps/examples/hidkbd/hidkbd_main.c30
-rw-r--r--nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c12
-rw-r--r--nuttx/arch/arm/src/sama5/sam_ohci.c3
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_otgfshost.c8
-rwxr-xr-xnuttx/configs/olimex-lpc1766stk/hidkbd/defconfig173
-rw-r--r--nuttx/configs/stm32f4discovery/nsh/defconfig37
-rw-r--r--nuttx/include/nuttx/usb/usbhost.h4
7 files changed, 187 insertions, 80 deletions
diff --git a/apps/examples/hidkbd/hidkbd_main.c b/apps/examples/hidkbd/hidkbd_main.c
index 9ddbc3e6a..5fb1e282c 100644
--- a/apps/examples/hidkbd/hidkbd_main.c
+++ b/apps/examples/hidkbd/hidkbd_main.c
@@ -112,7 +112,7 @@ struct hidbkd_instream_s
* Private Data
****************************************************************************/
-static struct usbhost_driver_s *g_drvr;
+static struct usbhost_connection_s *g_usbconn;
/****************************************************************************
* Private Functions
@@ -224,15 +224,21 @@ static void hidkbd_decode(FAR char *buffer, ssize_t nbytes)
static int hidkbd_waiter(int argc, char *argv[])
{
bool connected = false;
- int ret;
+ int rhpndx;
printf("hidkbd_waiter: Running\n");
for (;;)
{
- /* Wait for the device to change state */
+ /* Wait for the device to change state.
+ *
+ * REVISIT: This will not handle USB implementations (such as the the
+ * SAMA5) which have multiple downstream, root hub ports. In such cases,
+ * connected must be an array with dimension equal to the number of root
+ * hub ports.
+ */
- ret = DRVR_WAIT(g_drvr, connected);
- DEBUGASSERT(ret == OK);
+ rhpndx = CONN_WAIT(g_usbconn, &connected);
+ DEBUGASSERT(rhpndx == OK);
connected = !connected;
printf("hidkbd_waiter: %s\n", connected ? "connected" : "disconnected");
@@ -243,7 +249,7 @@ static int hidkbd_waiter(int argc, char *argv[])
{
/* Yes.. enumerate the newly connected device */
- (void)DRVR_ENUMERATE(g_drvr);
+ (void)CONN_ENUMERATE(g_usbconn, rhpndx);
}
}
@@ -277,11 +283,17 @@ int hidkbd_main(int argc, char *argv[])
printf("hidkbd_main: Failed to register the KBD class\n");
}
- /* Then get an instance of the USB host interface */
+ /* Then get an instance of the USB host interface.
+ *
+ * REVISIT: This logic needs to be modified. There must be a call-out to
+ * platform specific logic to get the connection hangle. usbhost_initialize()
+ * is not longer common to all platforms and is no longer prototyped in
+ * include/nuttx/usb/usbhost.h.
+ */
printf("hidkbd_main: Initialize USB host keyboard driver\n");
- g_drvr = usbhost_initialize(0);
- if (g_drvr)
+ g_usbconn = usbhost_initialize(0);
+ if (g_usbconn)
{
/* Start a thread to handle device connection. */
diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c b/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c
index 0e6c39a7a..abda1ddf8 100644
--- a/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c
+++ b/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c
@@ -241,7 +241,9 @@ static void lpc17_takesem(sem_t *sem);
/* Byte stream access helper functions *****************************************/
static inline uint16_t lpc17_getle16(const uint8_t *val);
+#if 0 /* Not used */
static void lpc17_putle16(uint8_t *dest, uint16_t val);
+#endif
/* OHCI memory pool helper functions *******************************************/
@@ -294,7 +296,8 @@ static int lpc17_usbinterrupt(int irq, FAR void *context);
/* USB host controller operations **********************************************/
-static int lpc17_wait(FAR struct usbhost_connection_s *conn, FAR bool *connected);
+static int lpc17_wait(FAR struct usbhost_connection_s *conn,
+ FAR const bool *connected);
static int lpc17_enumerate(FAR struct usbhost_connection_s *conn, int rhpndx);
static int lpc17_ep0configure(FAR struct usbhost_driver_s *drvr, uint8_t funcaddr,
@@ -541,11 +544,13 @@ static inline uint16_t lpc17_getle16(const uint8_t *val)
*
*******************************************************************************/
+#if 0 /* Not used */
static void lpc17_putle16(uint8_t *dest, uint16_t val)
{
dest[0] = val & 0xff; /* Little endian means LS byte first in byte stream */
dest[1] = val >> 8;
}
+#endif
/*******************************************************************************
* Name: lpc17_edfree
@@ -1540,7 +1545,8 @@ static int lpc17_usbinterrupt(int irq, FAR void *context)
*
*******************************************************************************/
-static int lpc17_wait(FAR struct usbhost_connection_s *conn, FAR bool *connected)
+static int lpc17_wait(FAR struct usbhost_connection_s *conn,
+ FAR const bool *connected)
{
struct lpc17_usbhost_s *priv = (struct lpc17_usbhost_s *)&g_usbhost;
irqstate_t flags;
@@ -1630,7 +1636,7 @@ static int lpc17_enumerate(FAR struct usbhost_connection_s *conn, int rphndx)
*/
uvdbg("Enumerate the device\n");
- return usbhost_enumerate(drvr, 1, &priv->class);
+ return usbhost_enumerate(&g_usbhost.drvr, 1, &priv->class);
}
/************************************************************************************
diff --git a/nuttx/arch/arm/src/sama5/sam_ohci.c b/nuttx/arch/arm/src/sama5/sam_ohci.c
index 3e9bdb295..0a59faf86 100644
--- a/nuttx/arch/arm/src/sama5/sam_ohci.c
+++ b/nuttx/arch/arm/src/sama5/sam_ohci.c
@@ -338,7 +338,8 @@ static int sam_ohci_interrupt(int irq, FAR void *context);
/* USB host controller operations **********************************************/
-static int sam_wait(FAR struct usbhost_connection_s *conn, FAR const bool *connected);
+static int sam_wait(FAR struct usbhost_connection_s *conn,
+ FAR const bool *connected);
static int sam_enumerate(FAR struct usbhost_connection_s *conn, int rhpndx);
static int sam_ep0configure(FAR struct usbhost_driver_s *drvr, uint8_t funcaddr,
diff --git a/nuttx/arch/arm/src/stm32/stm32_otgfshost.c b/nuttx/arch/arm/src/stm32/stm32_otgfshost.c
index cb517079d..315782a7e 100644
--- a/nuttx/arch/arm/src/stm32/stm32_otgfshost.c
+++ b/nuttx/arch/arm/src/stm32/stm32_otgfshost.c
@@ -358,7 +358,8 @@ static void stm32_txfe_enable(FAR struct stm32_usbhost_s *priv, int chidx);
/* USB host controller operations **********************************************/
-static int stm32_wait(FAR struct usbhost_connection_s *conn, FAR bool *connected);
+static int stm32_wait(FAR struct usbhost_connection_s *conn,
+ FAR const bool *connected);
static int stm32_enumerate(FAR struct usbhost_connection_s *conn, int rhpndx);
static int stm32_ep0configure(FAR struct usbhost_driver_s *drvr, uint8_t funcaddr,
@@ -3035,7 +3036,8 @@ static void stm32_txfe_enable(FAR struct stm32_usbhost_s *priv, int chidx)
*
*******************************************************************************/
-static int stm32_wait(FAR struct usbhost_connection_s *conn, FAR bool *connected)
+static int stm32_wait(FAR struct usbhost_connection_s *conn,
+ FAR const bool *connected)
{
FAR struct stm32_usbhost_s *priv = &g_usbhost;
irqstate_t flags;
@@ -3159,7 +3161,7 @@ static int stm32_enumerate(FAR struct usbhost_connection_s *conn, int rhpndx)
uvdbg("Enumerate the device\n");
priv->smstate = SMSTATE_ENUM;
- ret = usbhost_enumerate(drvr, 1, &priv->class);
+ ret = usbhost_enumerate(&g_usbhost.drvr, 1, &priv->class);
/* The enumeration may fail either because of some HCD interfaces failure
* or because the device class is not supported. In either case, we just
diff --git a/nuttx/configs/olimex-lpc1766stk/hidkbd/defconfig b/nuttx/configs/olimex-lpc1766stk/hidkbd/defconfig
index 1735f73a1..d42e3da48 100755
--- a/nuttx/configs/olimex-lpc1766stk/hidkbd/defconfig
+++ b/nuttx/configs/olimex-lpc1766stk/hidkbd/defconfig
@@ -69,22 +69,33 @@ CONFIG_ARCH="arm"
# CONFIG_ARCH_CHIP_DM320 is not set
# CONFIG_ARCH_CHIP_IMX is not set
# CONFIG_ARCH_CHIP_KINETIS is not set
-# CONFIG_ARCH_CHIP_LM3S is not set
+# CONFIG_ARCH_CHIP_KL is not set
+# CONFIG_ARCH_CHIP_LM is not set
CONFIG_ARCH_CHIP_LPC17XX=y
# CONFIG_ARCH_CHIP_LPC214X is not set
# CONFIG_ARCH_CHIP_LPC2378 is not set
# CONFIG_ARCH_CHIP_LPC31XX is not set
# CONFIG_ARCH_CHIP_LPC43XX is not set
-# CONFIG_ARCH_CHIP_SAM3U is not set
+# CONFIG_ARCH_CHIP_NUC1XX is not set
+# CONFIG_ARCH_CHIP_SAMA5 is not set
+# CONFIG_ARCH_CHIP_SAM34 is not set
# CONFIG_ARCH_CHIP_STM32 is not set
# CONFIG_ARCH_CHIP_STR71X is not set
+# CONFIG_ARCH_ARM7TDMI is not set
+# CONFIG_ARCH_ARM926EJS is not set
+# CONFIG_ARCH_ARM920T is not set
+# CONFIG_ARCH_CORTEXM0 is not set
CONFIG_ARCH_CORTEXM3=y
+# CONFIG_ARCH_CORTEXM4 is not set
+# CONFIG_ARCH_CORTEXA5 is not set
CONFIG_ARCH_FAMILY="armv7-m"
CONFIG_ARCH_CHIP="lpc17xx"
+# CONFIG_ARMV7M_USEBASEPRI is not set
+# CONFIG_ARCH_HAVE_CMNVECTOR is not set
+# CONFIG_ARMV7M_CMNVECTOR is not set
+# CONFIG_ARCH_HAVE_FPU is not set
CONFIG_ARCH_HAVE_MPU=y
# CONFIG_ARMV7M_MPU is not set
-CONFIG_BOARD_LOOPSPERMSEC=8111
-# CONFIG_ARCH_CALIBRATION is not set
#
# ARMV7M Configuration Options
@@ -95,7 +106,9 @@ CONFIG_BOARD_LOOPSPERMSEC=8111
CONFIG_ARMV7M_TOOLCHAIN_CODESOURCERYW=y
# CONFIG_ARMV7M_TOOLCHAIN_DEVKITARM is not set
# CONFIG_ARMV7M_TOOLCHAIN_GNU_EABIL is not set
+# CONFIG_ARMV7M_TOOLCHAIN_GNU_EABIW is not set
# CONFIG_ARMV7M_TOOLCHAIN_RAISONANCE is not set
+# CONFIG_GPIO_IRQ is not set
#
# LPC17xx Configuration Options
@@ -112,6 +125,15 @@ CONFIG_ARCH_CHIP_LPC1766=y
# CONFIG_ARCH_CHIP_LPC1767 is not set
# CONFIG_ARCH_CHIP_LPC1768 is not set
# CONFIG_ARCH_CHIP_LPC1769 is not set
+# CONFIG_ARCH_CHIP_LPC1773 is not set
+# CONFIG_ARCH_CHIP_LPC1774 is not set
+# CONFIG_ARCH_CHIP_LPC1776 is not set
+# CONFIG_ARCH_CHIP_LPC1777 is not set
+# CONFIG_ARCH_CHIP_LPC1778 is not set
+# CONFIG_ARCH_CHIP_LPC1785 is not set
+# CONFIG_ARCH_CHIP_LPC1786 is not set
+# CONFIG_ARCH_CHIP_LPC1787 is not set
+# CONFIG_ARCH_CHIP_LPC1788 is not set
CONFIG_ARCH_FAMILY_LPC176X=y
#
@@ -127,6 +149,7 @@ CONFIG_LPC17_UART0=y
# CONFIG_LPC17_UART1 is not set
# CONFIG_LPC17_UART2 is not set
# CONFIG_LPC17_UART3 is not set
+# CONFIG_LPC17_UART4 is not set
# CONFIG_LPC17_CAN1 is not set
# CONFIG_LPC17_CAN2 is not set
# CONFIG_LPC17_SPI is not set
@@ -152,31 +175,13 @@ CONFIG_LPC17_UART0=y
# CONFIG_LPC17_FLASH is not set
#
-# Serial driver options
-#
-# CONFIG_SERIAL_TERMIOS is not set
-# CONFIG_UART0_FLOWCONTROL is not set
-
-#
-# ADC driver options
-#
-
-#
-# CAN driver options
-#
-# CONFIG_GPIO_IRQ is not set
-
-#
-# I2C driver options
+# External Memory Configuration
#
#
-# Ethernet driver options
-#
-
-#
-# USB device driver options
+# Serial driver options
#
+# CONFIG_SERIAL_TERMIOS is not set
#
# USB host driver options
@@ -190,25 +195,28 @@ CONFIG_USBHOST_IOBUFSIZE=512
CONFIG_USBHOST_BULK_DISABLE=y
# CONFIG_USBHOST_INT_DISABLE is not set
CONFIG_USBHOST_ISOC_DISABLE=y
-# CONFIG_SDIO_DMA is not set
-# CONFIG_SDIO_WIDTH_D1_ONLY is not set
#
# Architecture Options
#
# CONFIG_ARCH_NOINTC is not set
+# CONFIG_ARCH_VECNOTIRQ is not set
# CONFIG_ARCH_DMA is not set
CONFIG_ARCH_IRQPRIO=y
# CONFIG_CUSTOM_STACK is not set
# CONFIG_ADDRENV is not set
+CONFIG_ARCH_HAVE_VFORK=y
CONFIG_ARCH_STACKDUMP=y
# CONFIG_ENDIAN_BIG is not set
+# CONFIG_ARCH_HAVE_RAMFUNCS is not set
+CONFIG_ARCH_HAVE_RAMVECTORS=y
+# CONFIG_ARCH_RAMVECTORS is not set
#
# Board Settings
#
-CONFIG_RAM_START=0x10000000
-CONFIG_RAM_SIZE=32768
+CONFIG_BOARD_LOOPSPERMSEC=8111
+# CONFIG_ARCH_CALIBRATION is not set
CONFIG_ARCH_HAVE_INTERRUPTSTACK=y
CONFIG_ARCH_INTERRUPTSTACK=0
@@ -222,6 +230,12 @@ CONFIG_BOOT_RUNFROMFLASH=y
# CONFIG_BOOT_COPYTORAM is not set
#
+# Boot Memory Configuration
+#
+CONFIG_RAM_START=0x10000000
+CONFIG_RAM_SIZE=32768
+
+#
# Board Selection
#
CONFIG_ARCH_BOARD_LPC1766STK=y
@@ -244,10 +258,12 @@ CONFIG_ARCH_HAVE_IRQBUTTONS=y
#
# RTOS Features
#
+# CONFIG_BOARD_INITIALIZE is not set
CONFIG_MSEC_PER_TICK=10
CONFIG_RR_INTERVAL=200
# CONFIG_SCHED_INSTRUMENTATION is not set
CONFIG_TASK_NAME_SIZE=0
+# CONFIG_SCHED_HAVE_PARENT is not set
# CONFIG_JULIAN_TIME is not set
CONFIG_START_YEAR=2010
CONFIG_START_MONTH=11
@@ -258,13 +274,8 @@ CONFIG_DEV_CONSOLE=y
# CONFIG_FDCLONE_DISABLE is not set
# CONFIG_FDCLONE_STDIO is not set
CONFIG_SDCLONE_DISABLE=y
-CONFIG_SCHED_WORKQUEUE=y
-CONFIG_SCHED_WORKPRIORITY=192
-CONFIG_SCHED_WORKPERIOD=50000
-CONFIG_SCHED_WORKSTACKSIZE=1024
-CONFIG_SIG_SIGWORK=17
-# CONFIG_SCHED_LPWORK is not set
# CONFIG_SCHED_WAITPID is not set
+# CONFIG_SCHED_STARTHOOK is not set
# CONFIG_SCHED_ATEXIT is not set
# CONFIG_SCHED_ONEXIT is not set
CONFIG_USER_ENTRYPOINT="hidkbd_main"
@@ -274,9 +285,16 @@ CONFIG_DISABLE_OS_API=y
# CONFIG_DISABLE_PTHREAD is not set
# CONFIG_DISABLE_SIGNALS is not set
# CONFIG_DISABLE_MQUEUE is not set
-# CONFIG_DISABLE_MOUNTPOINT is not set
# CONFIG_DISABLE_ENVIRON is not set
-# CONFIG_DISABLE_POLL is not set
+
+#
+# Signal Numbers
+#
+CONFIG_SIG_SIGUSR1=1
+CONFIG_SIG_SIGUSR2=2
+CONFIG_SIG_SIGALARM=3
+CONFIG_SIG_SIGCONDTIMEDOUT=16
+CONFIG_SIG_SIGWORK=17
#
# Sizes of configurable things (0 disables)
@@ -304,6 +322,7 @@ CONFIG_PTHREAD_STACK_DEFAULT=2048
#
# Device Drivers
#
+# CONFIG_DISABLE_POLL is not set
CONFIG_DEV_NULL=y
# CONFIG_DEV_ZERO is not set
# CONFIG_LOOP is not set
@@ -315,6 +334,7 @@ CONFIG_DEV_NULL=y
# CONFIG_RTC is not set
# CONFIG_WATCHDOG is not set
# CONFIG_ANALOG is not set
+# CONFIG_AUDIO_DEVICES is not set
# CONFIG_BCH is not set
CONFIG_INPUT=y
# CONFIG_INPUT_TSC2007 is not set
@@ -327,23 +347,23 @@ CONFIG_MMCSD_NSLOTS=1
# CONFIG_MMCSD_MULTIBLOCK_DISABLE is not set
# CONFIG_MMCSD_MMCSUPPORT is not set
# CONFIG_MMCSD_HAVECARDDETECT is not set
-CONFIG_MMCSD_SPI=y
-CONFIG_MMCSD_SPICLOCK=12500000
-# CONFIG_MMCSD_SDIO=y is not set
-# CONFIG_SDIO_MUXBUS is not set
+# CONFIG_ARCH_HAVE_SDIO is not set
# CONFIG_MTD is not set
# CONFIG_PIPES is not set
# CONFIG_PM is not set
# CONFIG_POWER is not set
# CONFIG_SENSORS is not set
-# CONFIG_SERCOMM_CONSOLE is not set
CONFIG_SERIAL=y
# CONFIG_DEV_LOWCONSOLE is not set
# CONFIG_16550_UART is not set
CONFIG_ARCH_HAVE_UART0=y
+
+#
+# USART Configuration
+#
CONFIG_MCU_SERIAL=y
CONFIG_STANDARD_SERIAL=y
-CONFIG_CONFIG_SERIAL_NPOLLWAITERS=2
+CONFIG_SERIAL_NPOLLWAITERS=2
CONFIG_UART0_SERIAL_CONSOLE=y
# CONFIG_NO_SERIAL_CONSOLE is not set
@@ -356,6 +376,10 @@ CONFIG_UART0_BAUD=57600
CONFIG_UART0_BITS=8
CONFIG_UART0_PARITY=0
CONFIG_UART0_2STOP=0
+# CONFIG_UART0_IFLOWCONTROL is not set
+# CONFIG_UART0_OFLOWCONTROL is not set
+# CONFIG_SERIAL_IFLOWCONTROL is not set
+# CONFIG_SERIAL_OFLOWCONTROL is not set
# CONFIG_USBDEV is not set
CONFIG_USBHOST=y
CONFIG_USBHOST_NPREALLOC=0
@@ -393,14 +417,17 @@ CONFIG_HIDKBD_ENCODED=y
#
# File system configuration
#
-# CONFIG_FS_FAT is not set
+# CONFIG_DISABLE_MOUNTPOINT is not set
# CONFIG_FS_RAMMAP is not set
+# CONFIG_FS_FAT is not set
# CONFIG_FS_NXFFS is not set
# CONFIG_FS_ROMFS is not set
+# CONFIG_FS_SMARTFS is not set
#
# System Logging
#
+# CONFIG_SYSLOG_ENABLE is not set
# CONFIG_SYSLOG is not set
#
@@ -411,17 +438,24 @@ CONFIG_HIDKBD_ENCODED=y
#
# Memory Management
#
+# CONFIG_MM_MULTIHEAP is not set
# CONFIG_MM_SMALL is not set
CONFIG_MM_REGIONS=2
# CONFIG_GRAN is not set
#
+# Audio Support
+#
+# CONFIG_AUDIO is not set
+
+#
# Binary Formats
#
# CONFIG_BINFMT_DISABLE is not set
# CONFIG_BINFMT_EXEPATH is not set
# CONFIG_NXFLAT is not set
# CONFIG_ELF is not set
+# CONFIG_BUILTIN is not set
# CONFIG_PIC is not set
# CONFIG_SYMTAB_ORDEREDBYNAME is not set
@@ -439,10 +473,14 @@ CONFIG_LIB_HOMEDIR="/"
# CONFIG_LIBM is not set
# CONFIG_NOPRINTF_FIELDWIDTH is not set
# CONFIG_LIBC_FLOATINGPOINT is not set
+CONFIG_LIB_RAND_ORDER=1
# CONFIG_EOL_IS_CR is not set
# CONFIG_EOL_IS_LF is not set
# CONFIG_EOL_IS_BOTH_CRLF is not set
CONFIG_EOL_IS_EITHER_CRLF=y
+# CONFIG_LIBC_EXECFUNCS is not set
+CONFIG_POSIX_SPAWN_PROXY_STACKSIZE=1024
+CONFIG_TASK_SPAWN_DEFAULT_STACKSIZE=2048
# CONFIG_LIBC_STRERROR is not set
# CONFIG_LIBC_PERROR_STDOUT is not set
CONFIG_ARCH_LOWPUTC=y
@@ -451,9 +489,16 @@ CONFIG_LIB_SENDFILE_BUFSIZE=512
# CONFIG_ARCH_OPTIMIZED_FUNCTIONS is not set
#
-# Non-standard Helper Functions
+# Non-standard Library Support
#
+CONFIG_SCHED_WORKQUEUE=y
+CONFIG_SCHED_HPWORK=y
+CONFIG_SCHED_WORKPRIORITY=192
+CONFIG_SCHED_WORKPERIOD=50000
+CONFIG_SCHED_WORKSTACKSIZE=1024
+# CONFIG_SCHED_LPWORK is not set
CONFIG_LIB_KBDCODEC=y
+# CONFIG_LIB_SLCDCODEC is not set
#
# Basic CXX Support
@@ -468,14 +513,12 @@ CONFIG_LIB_KBDCODEC=y
#
# Built-In Applications
#
-# CONFIG_BUILTIN is not set
#
# Examples
#
# CONFIG_EXAMPLES_BUTTONS is not set
# CONFIG_EXAMPLES_CAN is not set
-# CONFIG_EXAMPLES_CDCACM is not set
# CONFIG_EXAMPLES_COMPOSITE is not set
# CONFIG_EXAMPLES_DHCPD is not set
# CONFIG_EXAMPLES_ELF is not set
@@ -493,9 +536,9 @@ CONFIG_EXAMPLES_HIDKBD_ENCODED=y
# CONFIG_EXAMPLES_IGMP is not set
# CONFIG_EXAMPLES_LCDRW is not set
# CONFIG_EXAMPLES_MM is not set
-# CONFIG_EXAMPLES_MOUNT is not set
# CONFIG_EXAMPLES_MODBUS is not set
-# CONFIG_EXAMPLES_NETTEST is not set
+# CONFIG_EXAMPLES_MOUNT is not set
+# CONFIG_EXAMPLES_NRF24L01TERM is not set
# CONFIG_EXAMPLES_NSH is not set
# CONFIG_EXAMPLES_NULL is not set
# CONFIG_EXAMPLES_NX is not set
@@ -510,11 +553,15 @@ CONFIG_EXAMPLES_HIDKBD_ENCODED=y
# CONFIG_EXAMPLES_PASHELLO is not set
# CONFIG_EXAMPLES_PIPE is not set
# CONFIG_EXAMPLES_POLL is not set
+# CONFIG_EXAMPLES_POSIXSPAWN is not set
# CONFIG_EXAMPLES_QENCODER is not set
# CONFIG_EXAMPLES_RGMP is not set
# CONFIG_EXAMPLES_ROMFS is not set
# CONFIG_EXAMPLES_SENDMAIL is not set
# CONFIG_EXAMPLES_SERLOOP is not set
+# CONFIG_EXAMPLES_SLCD is not set
+# CONFIG_EXAMPLES_SMART is not set
+# CONFIG_EXAMPLES_TCPECHO is not set
# CONFIG_EXAMPLES_TELNETD is not set
# CONFIG_EXAMPLES_THTTPD is not set
# CONFIG_EXAMPLES_TIFF is not set
@@ -525,11 +572,11 @@ CONFIG_EXAMPLES_HIDKBD_ENCODED=y
# CONFIG_EXAMPLES_USBMSC is not set
# CONFIG_EXAMPLES_USBTERM is not set
# CONFIG_EXAMPLES_WATCHDOG is not set
-# CONFIG_EXAMPLES_WLAN is not set
#
-# Interpreters
+# Graphics Support
#
+# CONFIG_TIFF is not set
#
# Interpreters
@@ -559,11 +606,7 @@ CONFIG_EXAMPLES_HIDKBD_ENCODED=y
# CONFIG_NETUTILS_WEBCLIENT is not set
#
-# ModBus
-#
-
-#
-# FreeModbus
+# FreeModBus
#
# CONFIG_MODBUS is not set
@@ -595,6 +638,15 @@ CONFIG_EXAMPLES_HIDKBD_ENCODED=y
# CONFIG_SYSTEM_INSTALL is not set
#
+# FLASH Erase-all Command
+#
+
+#
+# RAM test
+#
+# CONFIG_SYSTEM_RAMTEST is not set
+
+#
# readline()
#
# CONFIG_SYSTEM_READLINE is not set
@@ -618,3 +670,12 @@ CONFIG_EXAMPLES_HIDKBD_ENCODED=y
# Sysinfo
#
# CONFIG_SYSTEM_SYSINFO is not set
+
+#
+# USB Monitor
+#
+
+#
+# Zmodem Commands
+#
+# CONFIG_SYSTEM_ZMODEM is not set
diff --git a/nuttx/configs/stm32f4discovery/nsh/defconfig b/nuttx/configs/stm32f4discovery/nsh/defconfig
index 795aeb8a0..c95b5cda0 100644
--- a/nuttx/configs/stm32f4discovery/nsh/defconfig
+++ b/nuttx/configs/stm32f4discovery/nsh/defconfig
@@ -77,10 +77,17 @@ CONFIG_ARCH="arm"
# CONFIG_ARCH_CHIP_LPC31XX is not set
# CONFIG_ARCH_CHIP_LPC43XX is not set
# CONFIG_ARCH_CHIP_NUC1XX is not set
+# CONFIG_ARCH_CHIP_SAMA5 is not set
# CONFIG_ARCH_CHIP_SAM34 is not set
CONFIG_ARCH_CHIP_STM32=y
# CONFIG_ARCH_CHIP_STR71X is not set
+# CONFIG_ARCH_ARM7TDMI is not set
+# CONFIG_ARCH_ARM926EJS is not set
+# CONFIG_ARCH_ARM920T is not set
+# CONFIG_ARCH_CORTEXM0 is not set
+# CONFIG_ARCH_CORTEXM3 is not set
CONFIG_ARCH_CORTEXM4=y
+# CONFIG_ARCH_CORTEXA5 is not set
CONFIG_ARCH_FAMILY="armv7-m"
CONFIG_ARCH_CHIP="stm32"
# CONFIG_ARMV7M_USEBASEPRI is not set
@@ -258,6 +265,7 @@ CONFIG_STM32_USART=y
# U[S]ART Configuration
#
# CONFIG_USART2_RS485 is not set
+# CONFIG_SERIAL_DISABLE_REORDERING is not set
# CONFIG_STM32_USART_SINGLEWIRE is not set
#
@@ -275,10 +283,6 @@ CONFIG_STM32_USART=y
#
#
-# External Memory Configuration
-#
-
-#
# Architecture Options
#
# CONFIG_ARCH_NOINTC is not set
@@ -299,8 +303,6 @@ CONFIG_ARCH_HAVE_RAMVECTORS=y
#
CONFIG_BOARD_LOOPSPERMSEC=16717
# CONFIG_ARCH_CALIBRATION is not set
-CONFIG_RAM_START=0x20000000
-CONFIG_RAM_SIZE=114688
CONFIG_ARCH_HAVE_INTERRUPTSTACK=y
CONFIG_ARCH_INTERRUPTSTACK=0
@@ -314,6 +316,12 @@ CONFIG_BOOT_RUNFROMFLASH=y
# CONFIG_BOOT_COPYTORAM is not set
#
+# Boot Memory Configuration
+#
+CONFIG_RAM_START=0x20000000
+CONFIG_RAM_SIZE=114688
+
+#
# Board Selection
#
CONFIG_ARCH_BOARD_STM32F4_DISCOVERY=y
@@ -415,6 +423,7 @@ CONFIG_SPI=y
# CONFIG_SPI_OWNBUS is not set
CONFIG_SPI_EXCHANGE=y
# CONFIG_SPI_CMDDATA is not set
+# CONFIG_SPI_BITBANG is not set
# CONFIG_RTC is not set
# CONFIG_WATCHDOG is not set
# CONFIG_ANALOG is not set
@@ -432,6 +441,11 @@ CONFIG_SERIAL=y
# CONFIG_DEV_LOWCONSOLE is not set
# CONFIG_16550_UART is not set
CONFIG_ARCH_HAVE_USART2=y
+
+#
+# USART Configuration
+#
+CONFIG_USART2_ISUART=y
CONFIG_MCU_SERIAL=y
CONFIG_STANDARD_SERIAL=y
CONFIG_USART2_SERIAL_CONSOLE=y
@@ -682,6 +696,7 @@ CONFIG_NSH_BUILTIN_APPS=y
# CONFIG_NSH_DISABLE_CAT is not set
# CONFIG_NSH_DISABLE_CD is not set
# CONFIG_NSH_DISABLE_CP is not set
+# CONFIG_NSH_DISABLE_CMP is not set
# CONFIG_NSH_DISABLE_DD is not set
# CONFIG_NSH_DISABLE_ECHO is not set
# CONFIG_NSH_DISABLE_EXEC is not set
@@ -765,6 +780,11 @@ CONFIG_NSH_CONSOLE=y
#
#
+# RAM test
+#
+# CONFIG_SYSTEM_RAMTEST is not set
+
+#
# readline()
#
CONFIG_SYSTEM_READLINE=y
@@ -793,3 +813,8 @@ CONFIG_READLINE_ECHO=y
#
# USB Monitor
#
+
+#
+# Zmodem Commands
+#
+# CONFIG_SYSTEM_ZMODEM is not set
diff --git a/nuttx/include/nuttx/usb/usbhost.h b/nuttx/include/nuttx/usb/usbhost.h
index 937bc7769..1fe4e3dfe 100644
--- a/nuttx/include/nuttx/usb/usbhost.h
+++ b/nuttx/include/nuttx/usb/usbhost.h
@@ -595,7 +595,7 @@ struct usbhost_connection_s
{
/* Wait for a device to connect or disconnect. */
- int (*wait)(FAR struct usbhost_connection_s *drvr, FAR const bool *connected);
+ int (*wait)(FAR struct usbhost_connection_s *conn, FAR const bool *connected);
/* Enumerate the device connected on a root hub port. As part of this
* enumeration process, the driver will (1) get the device's configuration
@@ -607,7 +607,7 @@ struct usbhost_connection_s
* in charge of the sequence of operations.
*/
- int (*enumerate)(FAR struct usbhost_connection_s *drvr, int rhpndx);
+ int (*enumerate)(FAR struct usbhost_connection_s *conn, int rhpndx);
};
/* struct usbhost_driver_s provides access to the USB host driver from the