summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/examples/usbstorage/Kconfig127
-rw-r--r--nuttx/Kconfig10
-rw-r--r--nuttx/arch/Kconfig4
-rw-r--r--nuttx/arch/arm/src/stm32/Kconfig77
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_allocateheap.c4
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_pwr.c2
-rw-r--r--nuttx/arch/arm/src/stm32/stm32f10xxx_rtc.c4
-rw-r--r--nuttx/arch/mips/src/pic32mx/Kconfig1
-rw-r--r--nuttx/configs/fire-stm32v2/include/board.h2
-rw-r--r--nuttx/configs/fire-stm32v2/nsh/defconfig1045
-rw-r--r--nuttx/configs/fire-stm32v2/src/up_nsh.c2
-rw-r--r--nuttx/configs/fire-stm32v2/src/up_spi.c1
-rw-r--r--nuttx/configs/fire-stm32v2/src/up_usbdev.c6
-rw-r--r--nuttx/configs/shenzhou/nsh/defconfig112
-rw-r--r--nuttx/drivers/Kconfig129
-rw-r--r--nuttx/drivers/usbdev/Kconfig13
16 files changed, 1466 insertions, 73 deletions
diff --git a/apps/examples/usbstorage/Kconfig b/apps/examples/usbstorage/Kconfig
index ce8b7bfe5..96af82b21 100644
--- a/apps/examples/usbstorage/Kconfig
+++ b/apps/examples/usbstorage/Kconfig
@@ -9,5 +9,128 @@ config EXAMPLES_USBMSC
---help---
Enable the USB mass storage class example
-if EXAMPLES_USBMSC
-endif
+config EXAMPLES_USBMSC_BUILTIN
+ bool "NSH built-in command"
+ default y
+ depends on EXAMPLES_USBMSC && NSH_BUILTIN_APPS
+ ---help---
+ This example can be built as two NSH "built-in" commands if this
+ option is selected: 'msconn' will connect the USB mass storage
+ device; 'msdis' will disconnect the USB storage device.
+
+config EXAMPLES_USBMSC_NLUNS
+ int "Number of LUNs"
+ default 1
+ depends on EXAMPLES_USBMSC
+ ---help---
+ Defines the number of logical units (LUNs) exported by the USB
+ storage driver. Each LUN corresponds to one exported block driver
+ (or partition of a block driver). May be 1, 2, or 3. Default is 1.
+
+config EXAMPLES_USBMSC_DEVMINOR1
+ int "LUN1 Minor Device Number"
+ default 0
+ depends on EXAMPLES_USBMSC
+ ---help---
+ The minor device number of the block driver for the first LUN. For
+ example, N in /dev/mmcsdN. Used for registering the block driver.
+ Default is zero.
+
+config EXAMPLES_USBMSC_DEVPATH1
+ string "LUN1 Device Path"
+ default "/dev/mmcsd0"
+ depends on EXAMPLES_USBMSC
+ ---help---
+ The full path to the registered block driver. Default is
+ "/dev/mmcsd0"
+
+config EXAMPLES_USBMSC_DEVMINOR2
+ int "LUN2 Minor Device Number"
+ default 1
+ depends on EXAMPLES_USBMSC
+ ---help---
+ The minor device number of the block driver for the second LUN. For
+ example, N in /dev/mmcsdN. Used for registering the block driver.
+ Ignored if EXAMPLES_USBMSC_NLUNS < 2. Default is one.
+
+config EXAMPLES_USBMSC_DEVPATH2
+ string "LUN2 Device Path"
+ default "/dev/mmcsd1"
+ depends on EXAMPLES_USBMSC
+ ---help---
+ The full path to the registered block driver. Ignored if
+ EXAMPLES_USBMSC_NLUNS < 2. Default is "/dev/mmcsd1"
+
+config EXAMPLES_USBMSC_DEVMINOR3
+ int "LUN3 Minor Device Number"
+ default 2
+ depends on EXAMPLES_USBMSC
+ ---help---
+ The minor device number of the block driver for the third LUN. For
+ example, N in /dev/mmcsdN. Used for registering the block driver.
+ Ignored if EXAMPLES_USBMSC_NLUNS < 2. Default is two.
+
+config EXAMPLES_USBMSC_DEVPATH3
+ string "LUN3 Device Path"
+ default "/dev/mmcsd2"
+ depends on EXAMPLES_USBMSC
+ ---help---
+ The full path to the registered block driver. Ignored if
+ EXAMPLES_USBMSC_NLUNS < 2. Default is "/dev/mmcsd2"
+
+config EXAMPLES_USBMSC_DEBUGMM
+ bool "USB MSC MM Debug"
+ default n
+ depends on EXAMPLES_USBMSC
+ ---help---
+ Enables some debug tests to check for memory usage and memory leaks.
+
+config EXAMPLES_USBMSC_TRACEINIT
+ bool "USB Trace Initialization"
+ default n
+ depends on EXAMPLES_USBMSC
+ ---help---
+ If USBDEV_TRACE is enabled (or CONFIG_DEBUG and CONFIG_DEBUG_USB),
+ then the example code will also manage the USB trace output. The
+ amount of trace output can be controlled this configuration value:
+ This setting will show USB initialization events
+
+config EXAMPLES_USBMSC_TRACECLASS
+ bool "USB Trace Class"
+ default n
+ depends on EXAMPLES_USBMSC
+ ---help---
+ If USBDEV_TRACE is enabled (or CONFIG_DEBUG and CONFIG_DEBUG_USB),
+ then the example code will also manage the USB trace output. The
+ amount of trace output can be controlled this configuration value:
+ This setting will show USB class driver events
+
+config EXAMPLES_USBMSC_TRACETRANSFERS
+ bool "USB Trace Transfers"
+ default n
+ depends on EXAMPLES_USBMSC
+ ---help---
+ If USBDEV_TRACE is enabled (or CONFIG_DEBUG and CONFIG_DEBUG_USB),
+ then the example code will also manage the USB trace output. The
+ amount of trace output can be controlled this configuration value:
+ This setting will show USB data transfer events
+
+config EXAMPLES_USBMSC_TRACECONTROLLER
+ bool "USB Trace Device Controller Events"
+ default n
+ depends on EXAMPLES_USBMSC
+ ---help---
+ If USBDEV_TRACE is enabled (or CONFIG_DEBUG and CONFIG_DEBUG_USB),
+ then the example code will also manage the USB trace output. The
+ amount of trace output can be controlled this configuration value:
+ This setting will show USB device controller events
+
+config EXAMPLES_USBMSC_TRACEINTERRUPTS
+ bool "USB Trace Device Controller Interrupt Events"
+ default n
+ depends on EXAMPLES_USBMSC
+ ---help---
+ If USBDEV_TRACE is enabled (or CONFIG_DEBUG and CONFIG_DEBUG_USB),
+ then the example code will also manage the USB trace output. The
+ amount of trace output can be controlled this configuration value:
+ This setting will show USB device controller interrupt-related events.
diff --git a/nuttx/Kconfig b/nuttx/Kconfig
index fdd99ead0..f920e4984 100644
--- a/nuttx/Kconfig
+++ b/nuttx/Kconfig
@@ -331,24 +331,24 @@ menu "Device Drivers"
source drivers/Kconfig
endmenu
-menu "Networking support"
+menu "Networking Support"
source net/Kconfig
endmenu
-menu "File systems"
+menu "File Systems"
source fs/Kconfig
endmenu
-menu "Memory management"
+menu "Memory Management"
source mm/Kconfig
endmenu
-menu "Library routines"
+menu "Library Routines"
source lib/Kconfig
source libxx/Kconfig
endmenu
-menu "Application configuration"
+menu "Application Configuration"
source "$APPSDIR/Kconfig"
endmenu
diff --git a/nuttx/arch/Kconfig b/nuttx/arch/Kconfig
index 13335441e..b445e5620 100644
--- a/nuttx/arch/Kconfig
+++ b/nuttx/arch/Kconfig
@@ -107,6 +107,10 @@ config ARCH_NOINTC
bool
default n
+config ARCH_DMA
+ bool
+ default n
+
config ARCH_STACKDUMP
bool "Dump stack on assertions"
default n
diff --git a/nuttx/arch/arm/src/stm32/Kconfig b/nuttx/arch/arm/src/stm32/Kconfig
index 80610f271..6b2ac39d3 100644
--- a/nuttx/arch/arm/src/stm32/Kconfig
+++ b/nuttx/arch/arm/src/stm32/Kconfig
@@ -10,20 +10,64 @@ choice
default ARCH_CHIP_STM32F103ZET6
depends on ARCH_CHIP_STM32
-config ARCH_CHIP_STM32F103ZET6
- bool "STM32F103ZET6"
+config ARCH_CHIP_STM32F100C8
+ bool "STM32F100C8"
+ select ARCH_CORTEXM3
+ select STM32_STM32F10XX
+ select STM32_VALUELINE
+
+config ARCH_CHIP_STM32F100CB
+ bool "STM32F100CB"
+ select ARCH_CORTEXM3
+ select STM32_STM32F10XX
+ select STM32_VALUELINE
+
+config ARCH_CHIP_STM32F100R8
+ bool "STM32F100R8"
+ select ARCH_CORTEXM3
+ select STM32_STM32F10XX
+ select STM32_VALUELINE
+
+config ARCH_CHIP_STM32F100RB
+ bool "STM32F100RB"
+ select ARCH_CORTEXM3
+ select STM32_STM32F10XX
+ select STM32_VALUELINE
+
+config ARCH_CHIP_STM32F100V8
+ bool "STM32F100V8"
+ select ARCH_CORTEXM3
+ select STM32_STM32F10XX
+ select STM32_VALUELINE
+
+config ARCH_CHIP_STM32F100VB
+ bool "STM32F100VB"
select ARCH_CORTEXM3
select STM32_STM32F10XX
+ select STM32_VALUELINE
config ARCH_CHIP_STM32F103RET6
bool "STM32F103RET6"
select ARCH_CORTEXM3
select STM32_STM32F10XX
+ select STM32_HIGHDENSITY
config ARCH_CHIP_STM32F103VCT6
bool "STM32F103VCT6"
select ARCH_CORTEXM3
select STM32_STM32F10XX
+ select STM32_HIGHDENSITY
+
+config ARCH_CHIP_STM32F103VET6
+ bool "STM32F103VET6"
+ select ARCH_CORTEXM3
+ select STM32_STM32F10XX
+ select STM32_HIGHDENSITY
+
+config ARCH_CHIP_STM32F103ZET6
+ bool "STM32F103ZET6"
+ select ARCH_CORTEXM3
+ select STM32_STM32F10XX
config ARCH_CHIP_STM32F105VBT7
bool "STM32F105VBT7"
@@ -92,6 +136,12 @@ endchoice
config STM32_STM32F10XX
bool
+config STM32_VALUELINE
+ bool
+
+config STM32_HIGHDENSITY
+ bool
+
config STM32_CONNECTIVITYLINE
bool
@@ -157,10 +207,12 @@ config STM32_CRC
config STM32_DMA1
bool "DMA1"
default n
+ select ARCH_DMA
config STM32_DMA2
bool "DMA2"
default n
+ select ARCH_DMA
config STM32_BKP
bool "BKP"
@@ -408,10 +460,6 @@ config STM32_SPI
bool
default y if STM32_SPI1 || STM32_SPI2 || STM32_SPI3 || STM32_SPI4
-config STM32_DMA
- bool
- default y if STM32_DMA1 || STM32_DMA2
-
config STM32_CAN
bool
default y if STM32_CAN1 || STM32_CAN2
@@ -580,7 +628,7 @@ config ARCH_BOARD_STM32_CUSTOM_CLOCKCONFIG
config STM32_CCMEXCLUDE
bool "Exclude CCM SRAM from the heap"
depends on STM32_STM32F20XX || STM32_STM32F40XX
- default y if STM32_DMA1 || STM32_DMA2
+ default y if ARCH_DMA
---help---
Exclude CCM SRAM from the HEAP because it cannot be used for DMA.
@@ -1485,42 +1533,42 @@ endchoice
config USART1_RXDMA
bool "USART1 Rx DMA"
default n
- depends on STM32_STM32F40XX && ARCH_DMA && STM32_DMA2
+ depends on STM32_STM32F40XX && STM32_DMA2
---help---
In high data rate usage, Rx DMA may eliminate Rx overrun errors
config USART2_RXDMA
bool "USART2 Rx DMA"
default n
- depends on STM32_STM32F40XX && ARCH_DMA && STM32_DMA1
+ depends on STM32_STM32F40XX && STM32_DMA1
---help---
In high data rate usage, Rx DMA may eliminate Rx overrun errors
config USART3_RXDMA
bool "USART3 Rx DMA"
default n
- depends on STM32_STM32F40XX && ARCH_DMA && STM32_DMA1
+ depends on STM32_STM32F40XX && STM32_DMA1
---help---
In high data rate usage, Rx DMA may eliminate Rx overrun errors
config UART4_RXDMA
bool "UART4 Rx DMA"
default n
- depends on STM32_STM32F40XX && ARCH_DMA && STM32_DMA1
+ depends on STM32_STM32F40XX && STM32_DMA1
---help---
In high data rate usage, Rx DMA may eliminate Rx overrun errors
config UART5_RXDMA
bool "UART5 Rx DMA"
default n
- depends on STM32_STM32F40XX && ARCH_DMA && STM32_DMA1
+ depends on STM32_STM32F40XX && STM32_DMA1
---help---
In high data rate usage, Rx DMA may eliminate Rx overrun errors
config USART6_RXDMA
bool "USART6 Rx DMA"
default n
- depends on STM32_STM32F40XX && ARCH_DMA && STM32_DMA2
+ depends on STM32_STM32F40XX && STM32_DMA2
---help---
In high data rate usage, Rx DMA may eliminate Rx overrun errors
@@ -1587,8 +1635,9 @@ menu "Ethernet MAC configuration"
config STM32_PHYADDR
int "PHY address"
+ default 1
---help---
- The 5-bit address of the PHY on the board
+ The 5-bit address of the PHY on the board. Default: 1
config STM32_MII
bool "Use MII interface"
diff --git a/nuttx/arch/arm/src/stm32/stm32_allocateheap.c b/nuttx/arch/arm/src/stm32/stm32_allocateheap.c
index 8aa5622c8..4b8707a2b 100644
--- a/nuttx/arch/arm/src/stm32/stm32_allocateheap.c
+++ b/nuttx/arch/arm/src/stm32/stm32_allocateheap.c
@@ -212,7 +212,7 @@
* should be 3.
*/
-# ifdef CONFIG_STM32_DMA
+# ifdef CONFIG_ARCH_DMA
# warning "CCM SRAM is included in the heap AND DMA is enabled"
# endif
# if CONFIG_MM_REGIONS != 3
@@ -238,7 +238,7 @@
* should be disabled and CONFIG_MM_REGIONS should be 2.
*/
-# ifdef CONFIG_STM32_DMA
+# ifdef CONFIG_ARCH_DMA
# warning "CCM SRAM is included in the heap AND DMA is enabled"
# endif
# if CONFIG_MM_REGIONS < 2
diff --git a/nuttx/arch/arm/src/stm32/stm32_pwr.c b/nuttx/arch/arm/src/stm32/stm32_pwr.c
index bada048e3..14149922f 100644
--- a/nuttx/arch/arm/src/stm32/stm32_pwr.c
+++ b/nuttx/arch/arm/src/stm32/stm32_pwr.c
@@ -95,4 +95,4 @@ void stm32_pwr_enablebkp(void)
stm32_pwr_modifyreg(STM32_PWR_CR_OFFSET, 0, PWR_CR_DBP);
}
-#endif // defined(CONFIG_STM32_PWR)
+#endif /* CONFIG_STM32_PWR */
diff --git a/nuttx/arch/arm/src/stm32/stm32f10xxx_rtc.c b/nuttx/arch/arm/src/stm32/stm32f10xxx_rtc.c
index df8ad9dd5..e1d52ac09 100644
--- a/nuttx/arch/arm/src/stm32/stm32f10xxx_rtc.c
+++ b/nuttx/arch/arm/src/stm32/stm32f10xxx_rtc.c
@@ -113,6 +113,10 @@
# error "CONFIG_STM32_BKP is required for CONFIG_RTC"
#endif
+#ifndef CONFIG_STM32_PWR
+# error "CONFIG_STM32_PWR is required for CONFIG_RTC"
+#endif
+
/* RTC/BKP Definitions *************************************************************/
/* STM32_RTC_PRESCALAR_VALUE
* RTC pre-scalar value. The RTC is driven by a 32,768Hz input clock. This input
diff --git a/nuttx/arch/mips/src/pic32mx/Kconfig b/nuttx/arch/mips/src/pic32mx/Kconfig
index ba77cf5d8..bcb99cf6d 100644
--- a/nuttx/arch/mips/src/pic32mx/Kconfig
+++ b/nuttx/arch/mips/src/pic32mx/Kconfig
@@ -544,6 +544,7 @@ config PIC32MX_RTCC
config PIC32MX_DMA
bool "DMA"
default n
+ select ARCH_DMA
config PIC32MX_FLASH
bool "FLASH"
diff --git a/nuttx/configs/fire-stm32v2/include/board.h b/nuttx/configs/fire-stm32v2/include/board.h
index ea2f93960..532e4347e 100644
--- a/nuttx/configs/fire-stm32v2/include/board.h
+++ b/nuttx/configs/fire-stm32v2/include/board.h
@@ -266,7 +266,7 @@
# errror "USART1 requires CONFIG_STM32_USART1_REMAP=y"
#endif
-#if defined(CONFIG_STM32_USART2) && defined()
+#if defined(CONFIG_STM32_USART2) && defined(CONFIG_STM32_USART2_REMAP)
# errror "USART2 requires CONFIG_STM32_USART2_REMAP=n"
#endif
diff --git a/nuttx/configs/fire-stm32v2/nsh/defconfig b/nuttx/configs/fire-stm32v2/nsh/defconfig
new file mode 100644
index 000000000..ce22a74c9
--- /dev/null
+++ b/nuttx/configs/fire-stm32v2/nsh/defconfig
@@ -0,0 +1,1045 @@
+#
+# Automatically generated file; DO NOT EDIT.
+# Nuttx/ Configuration
+#
+CONFIG_NUTTX_NEWCONFIG=y
+
+#
+# Build Setup
+#
+# CONFIG_EXPERIMENTAL is not set
+
+#
+# Build Configuration
+#
+# CONFIG_APPS_DIR="../apps"
+# CONFIG_BUILD_2PASS is not set
+
+#
+# Binary Output Formats
+#
+# CONFIG_RRLOAD_BINARY is not set
+CONFIG_INTELHEX_BINARY=y
+# CONFIG_MOTOROLA_SREC is not set
+# CONFIG_RAW_BINARY is not set
+
+#
+# Customize Header Files
+#
+# CONFIG_ARCH_STDBOOL_H is not set
+# CONFIG_ARCH_MATH_H is not set
+# CONFIG_ARCH_STDARG_H is not set
+
+#
+# Debug Options
+#
+# CONFIG_DEBUG is not set
+# CONFIG_DEBUG_SYMBOLS is not set
+
+#
+# System Type
+#
+# CONFIG_ARCH_8051 is not set
+CONFIG_ARCH_ARM=y
+# CONFIG_ARCH_AVR is not set
+# CONFIG_ARCH_HC is not set
+# CONFIG_ARCH_MIPS is not set
+# CONFIG_ARCH_RGMP is not set
+# CONFIG_ARCH_SH is not set
+# CONFIG_ARCH_SIM is not set
+# CONFIG_ARCH_X86 is not set
+# CONFIG_ARCH_Z16 is not set
+# CONFIG_ARCH_Z80 is not set
+CONFIG_ARCH="arm"
+# CONFIG_ARCH_CHIP_C5471 is not set
+# CONFIG_ARCH_CHIP_CALYPSO is not set
+# 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_LPC17XX is not set
+# 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_STM32=y
+# CONFIG_ARCH_CHIP_STR71X is not set
+CONFIG_ARCH_CORTEXM3=y
+CONFIG_ARCH_FAMILY="armv7-m"
+CONFIG_ARCH_CHIP="stm32"
+CONFIG_ARCH_HAVE_MPU=y
+# CONFIG_ARMV7M_MPU is not set
+CONFIG_ARCH_IRQPRIO=y
+CONFIG_BOARD_LOOPSPERMSEC=5483
+# CONFIG_ARCH_CALIBRATION is not set
+# CONFIG_SERIAL_TERMIOS is not set
+# CONFIG_NET_MULTICAST is not set
+
+#
+# STM32 Configuration Options
+#
+# CONFIG_ARCH_CHIP_STM32F100C8 is not set
+# CONFIG_ARCH_CHIP_STM32F100CB is not set
+# CONFIG_ARCH_CHIP_STM32F100R8 is not set
+# CONFIG_ARCH_CHIP_STM32F100RB is not set
+# CONFIG_ARCH_CHIP_STM32F100V8 is not set
+# CONFIG_ARCH_CHIP_STM32F100VB is not set
+# CONFIG_ARCH_CHIP_STM32F103RET6 is not set
+# CONFIG_ARCH_CHIP_STM32F103VCT6 is not set
+CONFIG_ARCH_CHIP_STM32F103VET6=y
+# CONFIG_ARCH_CHIP_STM32F103ZET6 is not set
+# CONFIG_ARCH_CHIP_STM32F105VBT7 is not set
+# CONFIG_ARCH_CHIP_STM32F107VC is not set
+# CONFIG_ARCH_CHIP_STM32F207IG is not set
+# CONFIG_ARCH_CHIP_STM32F405RG is not set
+# CONFIG_ARCH_CHIP_STM32F405VG is not set
+# CONFIG_ARCH_CHIP_STM32F405ZG is not set
+# CONFIG_ARCH_CHIP_STM32F407VE is not set
+# CONFIG_ARCH_CHIP_STM32F407VG is not set
+# CONFIG_ARCH_CHIP_STM32F407ZE is not set
+# CONFIG_ARCH_CHIP_STM32F407ZG is not set
+# CONFIG_ARCH_CHIP_STM32F407IE is not set
+# CONFIG_ARCH_CHIP_STM32F407IG is not set
+CONFIG_STM32_STM32F10XX=y
+CONFIG_STM32_HIGHDENSITY=y
+CONFIG_STM32_CODESOURCERYW=y
+# CONFIG_STM32_CODESOURCERYL is not set
+# CONFIG_STM32_ATOLLIC_LITE is not set
+# CONFIG_STM32_ATOLLIC_PRO is not set
+# CONFIG_STM32_DEVKITARM is not set
+# CONFIG_STM32_RAISONANCE is not set
+# CONFIG_STM32_BUILDROOT is not set
+# CONFIG_STM32_DFU is not set
+
+#
+# STM32 Peripheral Support
+#
+# CONFIG_STM32_ADC1 is not set
+# CONFIG_STM32_ADC2 is not set
+# CONFIG_STM32_ADC3 is not set
+# CONFIG_STM32_CRC is not set
+# CONFIG_STM32_DMA1 is not set
+CONFIG_STM32_DMA2=y
+CONFIG_STM32_BKP=y
+# CONFIG_STM32_CAN1 is not set
+# CONFIG_STM32_DAC1 is not set
+# CONFIG_STM32_DAC2 is not set
+# CONFIG_STM32_FSMC is not set
+CONFIG_STM32_I2C1=y
+# CONFIG_STM32_I2C2 is not set
+# CONFIG_STM32_IWDG is not set
+CONFIG_STM32_PWR=y
+CONFIG_STM32_SDIO=y
+# CONFIG_STM32_SPI1 is not set
+# CONFIG_STM32_SPI2 is not set
+# CONFIG_STM32_SPI4 is not set
+# CONFIG_STM32_TIM1 is not set
+# CONFIG_STM32_TIM2 is not set
+# CONFIG_STM32_TIM3 is not set
+# CONFIG_STM32_TIM4 is not set
+# CONFIG_STM32_TIM5 is not set
+# CONFIG_STM32_TIM6 is not set
+# CONFIG_STM32_TIM7 is not set
+# CONFIG_STM32_TIM8 is not set
+CONFIG_STM32_USART1=y
+CONFIG_STM32_USART2=y
+# CONFIG_STM32_USART3 is not set
+# CONFIG_STM32_UART4 is not set
+# CONFIG_STM32_UART5 is not set
+CONFIG_STM32_USB=y
+# CONFIG_STM32_WWDG is not set
+
+#
+# Alternate Pin Mapping
+#
+CONFIG_STM32_USART1_REMAP=y
+# CONFIG_STM32_USART2_REMAP is not set
+# CONFIG_STM32_I2C1_REMAP is not set
+# CONFIG_STM32_JTAG_DISABLE is not set
+CONFIG_STM32_JTAG_FULL_ENABLE=y
+# CONFIG_STM32_JTAG_NOJNTRST_ENABLE is not set
+# CONFIG_STM32_JTAG_SW_ENABLE is not set
+# CONFIG_STM32_FORCEPOWER is not set
+# CONFIG_ARCH_BOARD_STM32_CUSTOM_CLOCKCONFIG is not set
+
+#
+# SDIO Configuration
+#
+CONFIG_SDIO_DMA=y
+CONFIG_SDIO_PRI=128
+CONFIG_SDIO_DMAPRIO=0x00001000
+# CONFIG_SDIO_WIDTH_D1_ONLY is not set
+
+#
+# Ethernet MAC configuration
+#
+CONFIG_STM32_PHYADDR=1
+
+#
+# USB Host Configuration
+#
+
+#
+# Architecture Options
+#
+# CONFIG_ARCH_NOINTC is not set
+CONFIG_ARCH_DMA=y
+CONFIG_ARCH_STACKDUMP=y
+
+#
+# Board Settings
+#
+CONFIG_DRAM_START=0x20000000
+CONFIG_DRAM_SIZE=65536
+CONFIG_ARCH_HAVE_INTERRUPTSTACK=y
+# CONFIG_ARCH_INTERRUPTSTACK is not set
+
+#
+# Boot options
+#
+# CONFIG_BOOT_RUNFROMEXTSRAM is not set
+CONFIG_BOOT_RUNFROMFLASH=y
+# CONFIG_BOOT_RUNFROMISRAM is not set
+# CONFIG_BOOT_RUNFROMSDRAM is not set
+# CONFIG_BOOT_COPYTORAM is not set
+
+#
+# Board Selection
+#
+CONFIG_ARCH_BOARD_FIRE_STM32V2=y
+# CONFIG_ARCH_BOARD_CUSTOM is not set
+CONFIG_ARCH_BOARD="fire-stm32v2"
+
+#
+# Common Board Options
+#
+CONFIG_ARCH_HAVE_LEDS=y
+CONFIG_ARCH_LEDS=y
+CONFIG_ARCH_HAVE_BUTTONS=y
+# CONFIG_ARCH_BUTTONS is not set
+CONFIG_ARCH_HAVE_IRQBUTTONS=y
+CONFIG_NSH_MMCSDMINOR=0
+CONFIG_NSH_MMCSDSLOTNO=0
+CONFIG_NSH_MMCSDSPIPORTNO=0
+
+#
+# Board-Specific Options
+#
+
+#
+# M3 Wildfire Configuration
+#
+
+#
+# RTOS Features
+#
+CONFIG_MSEC_PER_TICK=10
+CONFIG_RR_INTERVAL=200
+# CONFIG_SCHED_INSTRUMENTATION is not set
+CONFIG_TASK_NAME_SIZE=0
+# CONFIG_JULIAN_TIME is not set
+CONFIG_START_YEAR=2011
+CONFIG_START_MONTH=7
+CONFIG_START_DAY=5
+CONFIG_DEV_CONSOLE=y
+# CONFIG_DEV_LOWCONSOLE is not set
+# CONFIG_MUTEX_TYPES is not set
+# CONFIG_PRIORITY_INHERITANCE is not set
+# 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=4
+# CONFIG_SCHED_LPWORK is not set
+CONFIG_SCHED_WAITPID=y
+# CONFIG_SCHED_ATEXIT is not set
+# CONFIG_SCHED_ONEXIT is not set
+CONFIG_USER_ENTRYPOINT="nsh_main"
+CONFIG_DISABLE_OS_API=y
+# CONFIG_DISABLE_CLOCK is not set
+# CONFIG_DISABLE_POSIX_TIMERS is not set
+# 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=y
+
+#
+# Sizes of configurable things (0 disables)
+#
+CONFIG_MAX_TASKS=16
+CONFIG_MAX_TASK_ARGS=4
+CONFIG_NPTHREAD_KEYS=4
+CONFIG_NFILE_DESCRIPTORS=8
+CONFIG_NFILE_STREAMS=8
+CONFIG_NAME_MAX=32
+CONFIG_PREALLOC_MQ_MSGS=4
+CONFIG_MQ_MAXMSGSIZE=32
+CONFIG_MAX_WDOGPARMS=2
+CONFIG_PREALLOC_WDOGS=4
+CONFIG_PREALLOC_TIMERS=4
+
+#
+# Stack and heap information
+#
+# CONFIG_CUSTOM_STACK is not set
+CONFIG_IDLETHREAD_STACKSIZE=1024
+CONFIG_USERMAIN_STACKSIZE=2048
+CONFIG_PTHREAD_STACK_MIN=256
+CONFIG_PTHREAD_STACK_DEFAULT=2048
+
+#
+# Device Drivers
+#
+CONFIG_DEV_NULL=y
+# CONFIG_DEV_ZERO is not set
+# CONFIG_LOOP is not set
+# CONFIG_RAMDISK is not set
+
+#
+# CAN Driver Options
+#
+# CONFIG_CAN is not set
+
+#
+# PWM Driver Options
+#
+# CONFIG_PWM is not set
+
+#
+# I2C Driver Options
+#
+CONFIG_I2C=y
+# CONFIG_I2C_SLAVE is not set
+CONFIG_I2C_TRANSFER=y
+# CONFIG_I2C_WRITEREAD is not set
+CONFIG_I2C_POLLED=y
+# CONFIG_I2C_TRACE is not set
+
+#
+# SPI Driver Options
+#
+CONFIG_SPI=y
+# CONFIG_SPI_OWNBUS is not set
+CONFIG_SPI_EXCHANGE=y
+CONFIG_SPI_CMDDATA=y
+
+#
+# RTC Driver Options
+#
+CONFIG_RTC=y
+# CONFIG_RTC_DATETIME is not set
+# CONFIG_RTC_HIRES is not set
+# CONFIG_RTC_ALARM is not set
+
+#
+# Watchdog Driver Options
+#
+# CONFIG_WATCHDOG is not set
+
+#
+# Analog Driver Options
+#
+# CONFIG_ANALOG is not set
+
+#
+# Block-to-Character Driver Support
+#
+# CONFIG_BCH is not set
+
+#
+# Input device Driver Options
+#
+# CONFIG_INPUT is not set
+
+#
+# LCD Driver Options
+#
+# CONFIG_LCD is not set
+
+#
+# MMCSD Driver Options
+#
+CONFIG_MMCSD=y
+CONFIG_MMCSD_NSLOTS=1
+# CONFIG_MMCSD_READONLY is not set
+# 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=20000000
+CONFIG_MMCSD_SDIO=y
+# CONFIG_SDIO_MUXBUS is not set
+
+#
+# I2C Driver Options
+#
+# CONFIG_MTD is not set
+
+#
+# Network Device Driver Options
+#
+# CONFIG_NETDEVICES is not set
+# CONFIG_NET_SLIP is not set
+
+#
+# Pipe Options
+#
+# CONFIG_PIPES is not set
+
+#
+# Power Management Options
+#
+# CONFIG_PM is not set
+# CONFIG_POWER is not set
+
+#
+# Sensor Driver Options
+#
+# CONFIG_SENSORS is not set
+
+#
+# Osmocom-bb Sercomm Driver Options
+#
+# CONFIG_SERCOMM_CONSOLE is not set
+
+#
+# Serial Driver Options
+#
+CONFIG_SERIAL=y
+# CONFIG_LOWLEVEL_CONSOLE is not set
+# CONFIG_16550_UART is not set
+CONFIG_ARCH_HAVE_USART1=y
+CONFIG_ARCH_HAVE_USART2=y
+CONFIG_MCU_SERIAL=y
+CONFIG_STANDARD_SERIAL=y
+CONFIG_USART1_SERIAL_CONSOLE=y
+# CONFIG_USART2_SERIAL_CONSOLE is not set
+# CONFIG_NO_SERIAL_CONSOLE is not set
+
+#
+# USART1 Configuration
+#
+CONFIG_USART1_RXBUFSIZE=256
+CONFIG_USART1_TXBUFSIZE=256
+CONFIG_USART1_BAUD=115200
+CONFIG_USART1_BITS=8
+CONFIG_USART1_PARITY=0
+CONFIG_USART1_2STOP=0
+
+#
+# USART2 Configuration
+#
+CONFIG_USART2_RXBUFSIZE=256
+CONFIG_USART2_TXBUFSIZE=256
+CONFIG_USART2_BAUD=115200
+CONFIG_USART2_BITS=8
+CONFIG_USART2_PARITY=0
+CONFIG_USART2_2STOP=0
+
+#
+# USB Device Driver Options
+#
+CONFIG_USBDEV=y
+# CONFIG_USBDEV_COMPOSITE is not set
+# CONFIG_USBDEV_ISOCHRONOUS is not set
+# CONFIG_USBDEV_DUALSPEED is not set
+CONFIG_USBDEV_SELFPOWERED=y
+# CONFIG_USBDEV_BUSPOWERED is not set
+# CONFIG_USBDEV_TRACE is not set
+# CONFIG_PL2303 is not set
+# CONFIG_CDCACM is not set
+CONFIG_USBMSC=y
+CONFIG_USBMSC_EP0MAXPACKET=64
+CONFIG_USBMSC_EPBULKOUT=2
+CONFIG_USBMSC_EPBULKIN=5
+CONFIG_USBMSC_NWRREQS=2
+CONFIG_USBMSC_NRDREQS=2
+CONFIG_USBMSC_BULKINREQLEN=256
+CONFIG_USBMSC_BULKOUTREQLEN=256
+CONFIG_USBMSC_VENDORID=0x584e
+CONFIG_USBMSC_VENDORSTR="NuttX"
+CONFIG_USBMSC_PRODUCTID=0x5342
+CONFIG_USBMSC_PRODUCTSTR="USBdev Storage"
+CONFIG_USBMSC_VERSIONNO=0x0399
+CONFIG_USBMSC_REMOVABLE=y
+
+#
+# USB Host Driver Options
+#
+# CONFIG_USBHOST is not set
+
+#
+# Wireless Device Driver Options
+#
+# CONFIG_WIRELESS is not set
+
+#
+# System Logging Device Options
+#
+
+#
+# System Logging
+#
+# CONFIG_RAMLOG is not set
+
+#
+# Networking Support
+#
+CONFIG_NET=y
+# CONFIG_NET_NOINTS is not set
+# CONFIG_NET_MULTIBUFFER is not set
+# CONFIG_NET_IPv6 is not set
+CONFIG_NSOCKET_DESCRIPTORS=0
+CONFIG_NET_NACTIVESOCKETS=16
+CONFIG_NET_SOCKOPTS=y
+CONFIG_NET_BUFSIZE=562
+# CONFIG_NET_TCPURGDATA is not set
+CONFIG_NET_TCP=y
+CONFIG_NET_TCP_CONNS=16
+CONFIG_NET_MAX_LISTENPORTS=16
+CONFIG_NET_TCP_READAHEAD_BUFSIZE=562
+CONFIG_NET_NTCP_READAHEAD_BUFFERS=8
+CONFIG_NET_TCP_RECVDELAY=0
+# CONFIG_NET_TCPBACKLOG is not set
+CONFIG_NET_UDP=y
+CONFIG_NET_UDP_CHECKSUMS=y
+CONFIG_NET_UDP_CONNS=8
+CONFIG_NET_BROADCAST=y
+CONFIG_NET_ICMP=y
+# CONFIG_NET_ICMP_PING is not set
+# CONFIG_NET_PINGADDRCONF is not set
+# CONFIG_NET_IGMP is not set
+CONFIG_NET_STATISTICS=y
+CONFIG_NET_RECEIVE_WINDOW=562
+CONFIG_NET_ARPTAB_SIZE=16
+# CONFIG_NET_ARP_IPIN is not set
+
+#
+# File Systems
+#
+
+#
+# File system configuration
+#
+CONFIG_FS_FAT=y
+CONFIG_FAT_LCNAMES=y
+CONFIG_FAT_LFN=y
+CONFIG_FAT_MAXFNAME=32
+# CONFIG_FS_FATTIME is not set
+# CONFIG_FS_RAMMAP is not set
+# CONFIG_NFS is not set
+# CONFIG_FS_NXFFS is not set
+# CONFIG_FS_ROMFS is not set
+
+#
+# System Logging
+#
+# CONFIG_SYSLOG is not set
+
+#
+# Memory Management
+#
+# CONFIG_MM_SMALL is not set
+CONFIG_MM_REGIONS=1
+
+#
+# Library Routines
+#
+CONFIG_STDIO_BUFFER_SIZE=256
+CONFIG_STDIO_LINEBUFFER=y
+CONFIG_NUNGET_CHARS=2
+CONFIG_LIB_HOMEDIR="/"
+# CONFIG_HAVE_LIBM is not set
+# CONFIG_NOPRINTF_FIELDWIDTH is not set
+# CONFIG_LIBC_FLOATINGPOINT is not set
+# 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_STRERROR is not set
+# CONFIG_LIBC_PERROR_STDOUT is not set
+CONFIG_ARCH_LOWPUTC=y
+CONFIG_LIB_SENDFILE_BUFSIZE=512
+# CONFIG_ARCH_ROMGETC is not set
+# CONFIG_ARCH_OPTIMIZED_FUNCTIONS is not set
+# CONFIG_HAVE_CXX is not set
+# CONFIG_HAVE_CXXINITIALIZE is not set
+# CONFIG_CXX_NEWLONG is not set
+
+#
+# Application Configuration
+#
+
+#
+# Named Applications
+#
+CONFIG_NAMEDAPP=y
+
+#
+# Examples
+#
+
+#
+# ADC example
+#
+# CONFIG_EXAMPLES_ADC is not set
+
+#
+# Buttons example
+#
+# CONFIG_EXAMPLES_BUTTONS is not set
+
+#
+# CAN example
+#
+# CONFIG_EXAMPLES_CAN is not set
+
+#
+# USB CDC/ACM class driver example
+#
+# CONFIG_EXAMPLES_CDCACM is not set
+
+#
+# USB composite class driver example
+#
+# CONFIG_EXAMPLES_COMPOSITE is not set
+
+#
+# DHCP server example
+#
+# CONFIG_EXAMPLES_DHCPD is not set
+
+#
+# FTP client example
+#
+# CONFIG_EXAMPLES_FTPC is not set
+
+#
+# FTP server example
+#
+# CONFIG_EXAMPLES_FTPD is not set
+
+#
+# "Hello, World!" example
+#
+# CONFIG_EXAMPLES_HELLO is not set
+
+#
+# "Hello, World!" C++ example
+#
+# CONFIG_EXAMPLES_HELLOXX is not set
+
+#
+# USB HID keyboard example
+#
+# CONFIG_EXAMPLES_HIDKBD is not set
+
+#
+# IGMP example
+#
+# CONFIG_EXAMPLES_IGMP is not set
+
+#
+# LCD read/write example
+#
+# CONFIG_EXAMPLES_LCDRW is not set
+
+#
+# Memory management example
+#
+# CONFIG_EXAMPLES_MM is not set
+
+#
+# File system mount example
+#
+# CONFIG_EXAMPLES_MOUNT is not set
+
+#
+# FreeModBus example
+#
+# CONFIG_EXAMPLES_MODBUS is not set
+
+#
+# Network test example
+#
+# CONFIG_EXAMPLES_NETTEST is not set
+
+#
+# NuttShell (NSH) example
+#
+CONFIG_EXAMPLES_NSH=y
+
+#
+# NULL example
+#
+# CONFIG_EXAMPLES_NULL is not set
+
+#
+# NX graphics example
+#
+# CONFIG_EXAMPLES_NX is not set
+
+#
+# NxConsole example
+#
+# CONFIG_EXAMPLES_NXCONSOLE is not set
+
+#
+# NXFFS file system example
+#
+# CONFIG_EXAMPLES_NXFFS is not set
+
+#
+# NXFLAT example
+#
+# CONFIG_EXAMPLES_NXFLAT is not set
+
+#
+# NX graphics "Hello, World!" example
+#
+# CONFIG_EXAMPLES_NXHELLO is not set
+
+#
+# NX graphics image example
+#
+# CONFIG_EXAMPLES_NXIMAGE is not set
+
+#
+# NX graphics lines example
+#
+# CONFIG_EXAMPLES_NXLINES is not set
+
+#
+# NX graphics text example
+#
+# CONFIG_EXAMPLES_NXTEXT is not set
+
+#
+# OS test example
+#
+# CONFIG_EXAMPLES_OSTEST is not set
+
+#
+# Pascal "Hello, World!"example
+#
+# CONFIG_EXAMPLES_PASHELLO is not set
+
+#
+# Pipe example
+#
+# CONFIG_EXAMPLES_PIPE is not set
+
+#
+# Poll example
+#
+# CONFIG_EXAMPLES_POLL is not set
+
+#
+# Pulse width modulation (PWM) example
+#
+
+#
+# Quadrature encoder example
+#
+# CONFIG_EXAMPLES_QENCODER is not set
+
+#
+# RGMP example
+#
+# CONFIG_EXAMPLES_RGMP is not set
+
+#
+# ROMFS example
+#
+# CONFIG_EXAMPLES_ROMFS is not set
+
+#
+# sendmail example
+#
+# CONFIG_EXAMPLES_SENDMAIL is not set
+
+#
+# Serial loopback example
+#
+# CONFIG_EXAMPLES_SERLOOP is not set
+
+#
+# Telnet daemon example
+#
+# CONFIG_EXAMPLES_TELNETD is not set
+
+#
+# THTTPD web server example
+#
+# CONFIG_EXAMPLES_THTTPD is not set
+
+#
+# TIFF generation example
+#
+# CONFIG_EXAMPLES_TIFF is not set
+
+#
+# Touchscreen example
+#
+# CONFIG_EXAMPLES_TOUCHSCREEN is not set
+
+#
+# UDP example
+#
+# CONFIG_EXAMPLES_UDP is not set
+
+#
+# uIP web server example
+#
+# CONFIG_EXAMPLES_UIP is not set
+
+#
+# USB serial test example
+#
+# CONFIG_EXAMPLES_USBSERIAL is not set
+
+#
+# USB mass storage class example
+#
+CONFIG_EXAMPLES_USBMSC=y
+CONFIG_EXAMPLES_USBMSC_BUILTIN=y
+CONFIG_EXAMPLES_USBMSC_NLUNS=1
+CONFIG_EXAMPLES_USBMSC_DEVMINOR1=0
+CONFIG_EXAMPLES_USBMSC_DEVPATH1="/dev/mmcsd0"
+CONFIG_EXAMPLES_USBMSC_DEVMINOR2=1
+CONFIG_EXAMPLES_USBMSC_DEVPATH2="/dev/mmcsd1"
+CONFIG_EXAMPLES_USBMSC_DEVMINOR3=2
+CONFIG_EXAMPLES_USBMSC_DEVPATH3="/dev/mmcsd2"
+# CONFIG_EXAMPLES_USBMSC_DEBUGMM is not set
+# CONFIG_EXAMPLES_USBMSC_TRACEINIT is not set
+# CONFIG_EXAMPLES_USBMSC_TRACECLASS is not set
+# CONFIG_EXAMPLES_USBMSC_TRACETRANSFERS is not set
+# CONFIG_EXAMPLES_USBMSC_TRACECONTROLLER is not set
+# CONFIG_EXAMPLES_USBMSC_TRACEINTERRUPTS is not set
+
+#
+# USB serial terminal example
+#
+# CONFIG_EXAMPLES_USBTERM is not set
+
+#
+# Watchdog timer example
+#
+# CONFIG_EXAMPLES_WATCHDOG is not set
+
+#
+# wget example
+#
+# CONFIG_EXAMPLES_WGET is not set
+
+#
+# WLAN example
+#
+# CONFIG_EXAMPLES_WLAN is not set
+
+#
+# Interpreters
+#
+
+#
+# Interpreters
+#
+# CONFIG_FICL is not set
+# CONFIG_PCODE is not set
+
+#
+# Network Utilities
+#
+
+#
+# Networking Utilities
+#
+
+#
+# DHCP client
+#
+# CONFIG_NETUTILS_DHCPC is not set
+
+#
+# DHCP server
+#
+# CONFIG_NETUTILS_DHCPD is not set
+
+#
+# FTP client
+#
+# CONFIG_NETUTILS_FTPC is not set
+
+#
+# FTP server
+#
+# CONFIG_NETUTILS_FTPD is not set
+
+#
+# Name resolution
+#
+CONFIG_NETUTILS_RESOLV=y
+CONFIG_NET_RESOLV_ENTRIES=8
+
+#
+# SMTP
+#
+# CONFIG_NETUTILS_SMTP is not set
+
+#
+# TFTP client
+#
+CONFIG_NETUTILS_TELNETD=y
+
+#
+# TFTP client
+#
+CONFIG_NETUTILS_TFTPC=y
+
+#
+# THTTPD web server
+#
+# CONFIG_NETUTILS_THTTPD is not set
+
+#
+# uIP support library
+#
+CONFIG_NETUTILS_UIPLIB=y
+
+#
+# uIP web client
+#
+CONFIG_NETUTILS_WEBCLIENT=y
+
+#
+# uIP web server
+#
+# CONFIG_NETUTILS_WEBSERVER is not set
+
+#
+# ModBus
+#
+
+#
+# FreeModbus
+#
+# CONFIG_MODBUS is not set
+
+#
+# NSH Library
+#
+CONFIG_NSH_LIBRARY=y
+CONFIG_NSH_BUILTIN_APPS=y
+
+#
+# Disable Individual commands
+#
+# CONFIG_NSH_DISABLE_CAT is not set
+# CONFIG_NSH_DISABLE_CD is not set
+# CONFIG_NSH_DISABLE_CP is not set
+# CONFIG_NSH_DISABLE_DD is not set
+# CONFIG_NSH_DISABLE_ECHO is not set
+# CONFIG_NSH_DISABLE_EXEC is not set
+# CONFIG_NSH_DISABLE_EXIT is not set
+# CONFIG_NSH_DISABLE_FREE is not set
+# CONFIG_NSH_DISABLE_GET is not set
+# CONFIG_NSH_DISABLE_HELP is not set
+# CONFIG_NSH_DISABLE_IFCONFIG is not set
+# CONFIG_NSH_DISABLE_KILL is not set
+# CONFIG_NSH_DISABLE_LOSETUP is not set
+# CONFIG_NSH_DISABLE_LS is not set
+# CONFIG_NSH_DISABLE_MB is not set
+# CONFIG_NSH_DISABLE_MKDIR is not set
+# CONFIG_NSH_DISABLE_MKFATFS is not set
+# CONFIG_NSH_DISABLE_MKFIFO is not set
+# CONFIG_NSH_DISABLE_MKRD is not set
+# CONFIG_NSH_DISABLE_MH is not set
+# CONFIG_NSH_DISABLE_MOUNT is not set
+# CONFIG_NSH_DISABLE_MW is not set
+# CONFIG_NSH_DISABLE_NSFMOUNT is not set
+# CONFIG_NSH_DISABLE_PS is not set
+# CONFIG_NSH_DISABLE_PING is not set
+# CONFIG_NSH_DISABLE_PUT is not set
+# CONFIG_NSH_DISABLE_PWD is not set
+# CONFIG_NSH_DISABLE_RM is not set
+# CONFIG_NSH_DISABLE_RMDIR is not set
+# CONFIG_NSH_DISABLE_SET is not set
+# CONFIG_NSH_DISABLE_SH is not set
+# CONFIG_NSH_DISABLE_SLEEP is not set
+# CONFIG_NSH_DISABLE_TEST is not set
+# CONFIG_NSH_DISABLE_UMOUNT is not set
+# CONFIG_NSH_DISABLE_UNSET is not set
+# CONFIG_NSH_DISABLE_USLEEP is not set
+# CONFIG_NSH_DISABLE_WGET is not set
+# CONFIG_NSH_DISABLE_XD is not set
+CONFIG_NSH_FILEIOSIZE=512
+CONFIG_NSH_LINELEN=64
+CONFIG_NSH_NESTDEPTH=3
+# CONFIG_NSH_DISABLESCRIPT is not set
+# CONFIG_NSH_DISABLEBG is not set
+CONFIG_NSH_CONSOLE=y
+# CONFIG_NSH_USBCONSOLE is not set
+# CONFIG_NSH_CONDEV is not set
+CONFIG_NSH_ARCHINIT=y
+CONFIG_NSH_TELNET=y
+CONFIG_NSH_TELNETD_PORT=23
+CONFIG_NSH_TELNETD_DAEMONPRIO=100
+CONFIG_NSH_TELNETD_DAEMONSTACKSIZE=2048
+CONFIG_NSH_TELNETD_CLIENTPRIO=100
+CONFIG_NSH_TELNETD_CLIENTSTACKSIZE=2048
+CONFIG_NSH_IOBUFFER_SIZE=512
+# CONFIG_NSH_DHCPC is not set
+CONFIG_NSH_IPADDR=0x0a000002
+CONFIG_NSH_DRIPADDR=0x0a000001
+CONFIG_NSH_NETMASK=0xffffff00
+# CONFIG_NSH_NOMAC is not set
+
+#
+# System NSH Add-Ons
+#
+
+#
+# Custom free memory command
+#
+# CONFIG_SYSTEM_FREE is not set
+
+#
+# I2C tool
+#
+CONFIG_SYSTEM_I2CTOOL=y
+CONFIG_I2CTOOL_BUILTIN=y
+CONFIG_I2CTOOL_MINBUS=1
+CONFIG_I2CTOOL_MAXBUS=2
+CONFIG_I2CTOOL_MINADDR=0x03
+CONFIG_I2CTOOL_MAXADDR=0x77
+CONFIG_I2CTOOL_MAXREGADDR=0xff
+CONFIG_I2CTOOL_DEFFREQ=100000
+
+#
+# FLASH Program Installation
+#
+# CONFIG_SYSTEM_INSTALL is not set
+
+#
+# readline() support
+#
+CONFIG_SYSTEM_READLINE=y
+CONFIG_READLINE_ECHO=y
+
+#
+# VSN board Add-Ons
+#
+
+#
+# VSN board add-ons
+#
+# CONFIG_VSN_POWEROFF is not set
+# CONFIG_VSN_RAMTRON is not set
+# CONFIG_VSN_SDCARD is not set
+# CONFIG_VSN_SYSINFO is not set
diff --git a/nuttx/configs/fire-stm32v2/src/up_nsh.c b/nuttx/configs/fire-stm32v2/src/up_nsh.c
index 8aa092df6..f728a227a 100644
--- a/nuttx/configs/fire-stm32v2/src/up_nsh.c
+++ b/nuttx/configs/fire-stm32v2/src/up_nsh.c
@@ -139,7 +139,7 @@ int nsh_archinitialize(void)
/* Initialize the SDIO-based MMC/SD slot */
- ret = stm32_sdinitialze(CONFIG_NSH_MMCSDMINOR);
+ ret = stm32_sdinitialize(CONFIG_NSH_MMCSDMINOR);
if (ret < 0)
{
message("nsh_archinitialize: Failed to initialize MMC/SD slot %d: %d\n",
diff --git a/nuttx/configs/fire-stm32v2/src/up_spi.c b/nuttx/configs/fire-stm32v2/src/up_spi.c
index 50fd58bb4..085542b13 100644
--- a/nuttx/configs/fire-stm32v2/src/up_spi.c
+++ b/nuttx/configs/fire-stm32v2/src/up_spi.c
@@ -170,6 +170,7 @@ void stm32_spi1select(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool sele
stm32_gpiowrite(GPIO_FLASH_CS, !selected);
}
else
+#endif
#ifdef CONFIG_NET_ENC28J60
if (devid == SPIDEV_ETHERNET)
{
diff --git a/nuttx/configs/fire-stm32v2/src/up_usbdev.c b/nuttx/configs/fire-stm32v2/src/up_usbdev.c
index 3222866d3..e335edd43 100644
--- a/nuttx/configs/fire-stm32v2/src/up_usbdev.c
+++ b/nuttx/configs/fire-stm32v2/src/up_usbdev.c
@@ -74,9 +74,11 @@
void stm32_usbinitialize(void)
{
- /* USB Soft Connect Pullup: PB.14 */
+ /* USB Soft Connect Pullup */
+#if 0 /* REVISIT */
stm32_configgpio(GPIO_USB_PULLUP);
+#endif
}
/************************************************************************************
@@ -94,7 +96,9 @@ void stm32_usbinitialize(void)
int stm32_usbpullup(FAR struct usbdev_s *dev, bool enable)
{
usbtrace(TRACE_DEVPULLUP, (uint16_t)enable);
+#if 0 /* REVISIT */
stm32_gpiowrite(GPIO_USB_PULLUP, !enable);
+#endif
return OK;
}
diff --git a/nuttx/configs/shenzhou/nsh/defconfig b/nuttx/configs/shenzhou/nsh/defconfig
index 2030b232b..7aa442e12 100644
--- a/nuttx/configs/shenzhou/nsh/defconfig
+++ b/nuttx/configs/shenzhou/nsh/defconfig
@@ -79,9 +79,16 @@ CONFIG_BOARD_LOOPSPERMSEC=5483
#
# STM32 Configuration Options
#
-# CONFIG_ARCH_CHIP_STM32F103ZET6 is not set
+# CONFIG_ARCH_CHIP_STM32F100C8 is not set
+# CONFIG_ARCH_CHIP_STM32F100CB is not set
+# CONFIG_ARCH_CHIP_STM32F100R8 is not set
+# CONFIG_ARCH_CHIP_STM32F100RB is not set
+# CONFIG_ARCH_CHIP_STM32F100V8 is not set
+# CONFIG_ARCH_CHIP_STM32F100VB is not set
# CONFIG_ARCH_CHIP_STM32F103RET6 is not set
# CONFIG_ARCH_CHIP_STM32F103VCT6 is not set
+# CONFIG_ARCH_CHIP_STM32F103VET6 is not set
+# CONFIG_ARCH_CHIP_STM32F103ZET6 is not set
# CONFIG_ARCH_CHIP_STM32F105VBT7 is not set
CONFIG_ARCH_CHIP_STM32F107VC=y
# CONFIG_ARCH_CHIP_STM32F207IG is not set
@@ -184,6 +191,7 @@ CONFIG_STM32_PHYSR_FULLDUPLEX=0x0004
# Architecture Options
#
# CONFIG_ARCH_NOINTC is not set
+# CONFIG_ARCH_DMA is not set
CONFIG_ARCH_STACKDUMP=y
#
@@ -292,30 +300,70 @@ CONFIG_PTHREAD_STACK_DEFAULT=2048
#
# Device Drivers
#
-
-#
-# Device Driver Configuration
-#
CONFIG_DEV_NULL=y
# CONFIG_DEV_ZERO is not set
# CONFIG_LOOP is not set
# CONFIG_RAMDISK is not set
+
+#
+# CAN Driver Options
+#
# CONFIG_CAN is not set
+
+#
+# PWM Driver Options
+#
# CONFIG_PWM is not set
+
+#
+# I2C Driver Options
+#
# CONFIG_I2C is not set
+
+#
+# SPI Driver Options
+#
CONFIG_SPI=y
# CONFIG_SPI_OWNBUS is not set
CONFIG_SPI_EXCHANGE=y
CONFIG_SPI_CMDDATA=y
+
+#
+# RTC Driver Options
+#
CONFIG_RTC=y
# CONFIG_RTC_DATETIME is not set
# CONFIG_RTC_HIRES is not set
# CONFIG_RTC_ALARM is not set
+
+#
+# Watchdog Driver Options
+#
# CONFIG_WATCHDOG is not set
+
+#
+# Analog Driver Options
+#
# CONFIG_ANALOG is not set
+
+#
+# Block-to-Character Driver Support
+#
# CONFIG_BCH is not set
+
+#
+# Input device Driver Options
+#
# CONFIG_INPUT is not set
+
+#
+# LCD Driver Options
+#
# CONFIG_LCD is not set
+
+#
+# MMCSD Driver Options
+#
CONFIG_MMCSD=y
CONFIG_MMCSD_NSLOTS=1
# CONFIG_MMCSD_READONLY is not set
@@ -325,14 +373,42 @@ CONFIG_MMCSD_HAVECARDDETECT=y
CONFIG_MMCSD_SPI=y
CONFIG_MMCSD_SPICLOCK=12500000
# CONFIG_MMCSD_SDIO is not set
+
+#
+# I2C Driver Options
+#
# CONFIG_MTD is not set
+
+#
+# Network Device Driver Options
+#
# CONFIG_NETDEVICES is not set
# CONFIG_NET_SLIP is not set
+
+#
+# Pipe Options
+#
# CONFIG_PIPES is not set
+
+#
+# Power Management Options
+#
# CONFIG_PM is not set
# CONFIG_POWER is not set
+
+#
+# Sensor Driver Options
+#
# CONFIG_SENSORS is not set
+
+#
+# Osmocom-bb Sercomm Driver Options
+#
# CONFIG_SERCOMM_CONSOLE is not set
+
+#
+# Serial Driver Options
+#
CONFIG_SERIAL=y
# CONFIG_LOWLEVEL_CONSOLE is not set
# CONFIG_16550_UART is not set
@@ -351,17 +427,33 @@ CONFIG_USART2_BAUD=115200
CONFIG_USART2_BITS=8
CONFIG_USART2_PARITY=0
CONFIG_USART2_2STOP=0
+
+#
+# USB Device Driver Options
+#
# CONFIG_USBDEV is not set
+
+#
+# USB Host Driver Options
+#
# CONFIG_USBHOST is not set
+
+#
+# Wireless Device Driver Options
+#
# CONFIG_WIRELESS is not set
#
+# System Logging Device Options
+#
+
+#
# System Logging
#
# CONFIG_RAMLOG is not set
#
-# Networking support
+# Networking Support
#
CONFIG_NET=y
# CONFIG_NET_NOINTS is not set
@@ -393,7 +485,7 @@ CONFIG_NET_ARPTAB_SIZE=16
# CONFIG_NET_ARP_IPIN is not set
#
-# File systems
+# File Systems
#
#
@@ -415,13 +507,13 @@ CONFIG_FAT_MAXFNAME=32
# CONFIG_SYSLOG is not set
#
-# Memory management
+# Memory Management
#
# CONFIG_MM_SMALL is not set
CONFIG_MM_REGIONS=1
#
-# Library routines
+# Library Routines
#
CONFIG_STDIO_BUFFER_SIZE=256
CONFIG_STDIO_LINEBUFFER=y
@@ -445,7 +537,7 @@ CONFIG_HAVE_CXX=y
# CONFIG_CXX_NEWLONG is not set
#
-# Application configuration
+# Application Configuration
#
#
diff --git a/nuttx/drivers/Kconfig b/nuttx/drivers/Kconfig
index 465a62b61..9f7fab9fc 100644
--- a/nuttx/drivers/Kconfig
+++ b/nuttx/drivers/Kconfig
@@ -3,8 +3,6 @@
# see misc/tools/kconfig-language.txt.
#
-comment "Device Driver Configuration"
-
config DEV_NULL
bool "Enable /dev/null"
default y
@@ -22,15 +20,17 @@ config LOOP
loteardown() in include/nuttx/fs/fs.h.
config RAMDISK
- bool "RAM disk support"
+ bool "RAM Disk Support"
default n
---help---
Can be used to set up a block of memory or (read-only) FLASH as
a block driver that can be mounted as a files system. See
include/nuttx/ramdisk.h.
+comment "CAN Driver Options"
+
config CAN
- bool "CAN support"
+ bool "CAN Support"
default n
---help---
This selection enables building of the "upper-half" CAN driver.
@@ -65,8 +65,10 @@ config CAN_LOOPBACK
endif
+comment "PWM Driver Options"
+
config PWM
- bool "PWM support"
+ bool "PWM Support"
default n
---help---
This selection enables building of the "upper-half" PWM driver.
@@ -74,7 +76,7 @@ config PWM
if PWM
config PWM_PULSECOUNT
- bool "PWM pulse count support"
+ bool "PWM Pulse Count Support"
default n
---help---
Some hardware will support generation of a fixed number of pulses. This
@@ -84,18 +86,49 @@ config PWM_PULSECOUNT
endif
+comment "I2C Driver Options"
+
config I2C
- bool "I2C support"
+ bool "I2C Support"
default n
---help---
This selection enables building of the "upper-half" I2C driver.
See include/nuttx/i2c.h for further I2C driver information.
-if I2C
-endif
+config I2C_SLAVE
+ bool "I2C Slave"
+ default n
+ depends on I2C
+
+config I2C_TRANSFER
+ bool "Support the I2C transfer() method"
+ default n
+ depends on I2C
+
+config I2C_WRITEREAD
+ bool "Support the I2C writeread() method"
+ default n
+ depends on I2C
+
+config I2C_POLLED
+ bool "Polled I2C (no interrupts)"
+ default n
+ depends on I2C
+
+config I2C_TRACE
+ bool "Enable I2C trace debug"
+ default n
+ depends on I2C
+
+config I2C_NTRACE
+ bool "Enable I2C trace debug"
+ default n
+ depends on I2C_TRACE
+
+comment "SPI Driver Options"
config SPI
- bool "SPI support"
+ bool "SPI Support"
default n
---help---
This selection enables building of the "upper-half" SPI driver.
@@ -104,7 +137,7 @@ config SPI
if SPI
config SPI_OWNBUS
bool "SPI single device"
- default y
+ default n
---help---
Set if there is only one active device on the SPI bus. No locking or SPI
configuration will be performed. It is not necessary for clients to lock,
@@ -126,8 +159,10 @@ config SPI_CMDDATA
endif
+comment "RTC Driver Options"
+
config RTC
- bool "RTC support"
+ bool "RTC Support"
default n
---help---
This selection enables configuration of a real time clock (RTCdriver.
@@ -135,7 +170,7 @@ config RTC
Most RTC drivers are MCU specific and may require other specific settings.
config RTC_DATETIME
- bool "Date/Time RTC support"
+ bool "Date/Time RTC Support"
default n
depends on RTC
---help---
@@ -147,7 +182,7 @@ config RTC_DATETIME
timer provides for higher resolution time.
config RTC_HIRES
- bool "Hi-Res RTC support"
+ bool "Hi-Res RTC Support"
default n
depends on RTC && !RTC_DATETIME
---help---
@@ -172,15 +207,17 @@ config RTC_FREQUENCY
to be one Hz.
config RTC_ALARM
- bool "RTC alarm support"
+ bool "RTC Alarm Support"
default n
depends on RTC
---help---
Enable if the RTC hardware supports setting of an alarm. A callback
function will be executed when the alarm goes off.
+comment "Watchdog Driver Options"
+
config WATCHDOG
- bool "Watchdog timer support"
+ bool "Watchdog Timer Support"
default n
---help---
This selection enables building of the "upper-half" watchdog timer driver.
@@ -189,8 +226,10 @@ config WATCHDOG
if WATCHDOG
endif
+comment "Analog Driver Options"
+
menuconfig ANALOG
- bool "Analog Device(ADC/DAC) support"
+ bool "Analog Device(ADC/DAC) Support"
default n
---help---
This directory holds implementations of analog device drivers.
@@ -202,8 +241,10 @@ if ANALOG
source drivers/analog/Kconfig
endif
+comment "Block-to-Character Driver Support"
+
config BCH
- bool "BCH support"
+ bool "Block-to-Character (BCH) Support"
default n
---help---
Contains logic that may be used to convert a block driver into
@@ -215,8 +256,10 @@ if BCH
source drivers/bch/Kconfig
endif
+comment "Input device Driver Options"
+
menuconfig INPUT
- bool "Input device support"
+ bool "Input Device Support"
default n
---help---
This directory holds implementations of input device drivers.
@@ -227,8 +270,10 @@ if INPUT
source drivers/input/Kconfig
endif
+comment "LCD Driver Options"
+
menuconfig LCD
- bool "LCD support"
+ bool "LCD Support"
default n
select NX_LCDDRIVER
---help---
@@ -243,8 +288,10 @@ if LCD
source drivers/lcd/Kconfig
endif
+comment "MMCSD Driver Options"
+
menuconfig MMCSD
- bool "MMC/SD support"
+ bool "MMC/SD Support"
default n
---help---
Support for MMC/SD block drivers. MMC/SD block drivers based on
@@ -254,9 +301,11 @@ menuconfig MMCSD
if MMCSD
source drivers/mmcsd/Kconfig
endif
-
+
+comment "I2C Driver Options"
+
menuconfig MTD
- bool "Memory Technology Device (MTD) support"
+ bool "Memory Technology Device (MTD) Support"
default n
---help---
Memory Technology Device (MTD) drivers. Some simple drivers for
@@ -272,8 +321,10 @@ if MTD
source drivers/mtd/Kconfig
endif
+comment "Network Device Driver Options"
+
menuconfig NETDEVICES
- bool "Network Device support"
+ bool "Network Device Support"
default n
---help---
Network interface drivers. See also include/nuttx/net/net.h
@@ -282,6 +333,8 @@ if NETDEVICES
source drivers/net/Kconfig
endif
+comment "Pipe Options"
+
menuconfig PIPES
bool "FIFO and named pipe drivers"
default n
@@ -293,6 +346,8 @@ if PIPES
source drivers/pipes/Kconfig
endif
+comment "Power Management Options"
+
config PM
bool "Power management (PM) driver interfaces"
default n
@@ -303,7 +358,7 @@ config PM
drivers are not active.
menuconfig POWER
- bool "Power management device support"
+ bool "Power Management Support"
default n
---help---
Enable building of power-related devices (battery monitors, chargers, etc).
@@ -312,8 +367,10 @@ if POWER
source drivers/power/Kconfig
endif
+comment "Sensor Driver Options"
+
menuconfig SENSORS
- bool "Sensors support"
+ bool "Sensors Support"
default n
---help---
Drivers for various sensors
@@ -322,6 +379,8 @@ if SENSORS
source drivers/sensors/Kconfig
endif
+comment "Osmocom-bb Sercomm Driver Options"
+
menuconfig SERCOMM_CONSOLE
bool "Osmocom-bb serial console"
default n
@@ -339,8 +398,10 @@ if SERCOMM
source drivers/sercomm/Kconfig
endif
+comment "Serial Driver Options"
+
menuconfig SERIAL
- bool "Serial support"
+ bool "Serial Support"
default y
---help---
Front-end character drivers for chip-specific UARTs. This provide
@@ -351,8 +412,10 @@ if SERIAL
source drivers/serial/Kconfig
endif
+comment "USB Device Driver Options"
+
menuconfig USBDEV
- bool "USB device support"
+ bool "USB Device Support"
default n
---help---
USB device drivers. See also include/nuttx/usb/usbdev.h
@@ -361,8 +424,10 @@ if USBDEV
source drivers/usbdev/Kconfig
endif
+comment "USB Host Driver Options"
+
menuconfig USBHOST
- bool "USB Host support"
+ bool "USB Host Support"
default n
---help---
USB host drivers. See also include/nuttx/usb/usbhost.h
@@ -371,8 +436,10 @@ if USBHOST
source drivers/usbhost/Kconfig
endif
+comment "Wireless Device Driver Options"
+
menuconfig WIRELESS
- bool "Wireless support"
+ bool "Wireless Support"
default n
---help---
Drivers for various wireless devices.
@@ -381,6 +448,8 @@ if WIRELESS
source drivers/wireless/Kconfig
endif
+comment "System Logging Device Options"
+
source drivers/syslog/Kconfig
diff --git a/nuttx/drivers/usbdev/Kconfig b/nuttx/drivers/usbdev/Kconfig
index a74299414..4930b9d21 100644
--- a/nuttx/drivers/usbdev/Kconfig
+++ b/nuttx/drivers/usbdev/Kconfig
@@ -75,8 +75,7 @@ config USBDEV_DUALSPEED
bool "Enable high and full speed"
default n
---help---
- Hardware handles high and full speed
- operation (USB 2.0)
+ Hardware handles high and full speed operation (USB 2.0)
choice USBDEV_POWERED
prompt "Select USB device powered"
@@ -84,14 +83,12 @@ choice USBDEV_POWERED
config USBDEV_SELFPOWERED
bool "Self powerd"
---help---
- Will cause USB features to indicate
- that the device is self-powered
+ Will cause USB features to indicate that the device is self-powered
config USBDEV_BUSPOWERED
bool "Bus powerd"
---help---
- Will cause USB features to indicate
- that the device is self-powered
+ Will cause USB features to indicate that the device is self-powered
endchoice
@@ -450,6 +447,10 @@ config USBMSC_PRODUCTSTR
string "Mass stroage product string"
default "Mass stroage"
+config USBMSC_VERSIONNO
+ hex "USB MSC Version Number"
+ default "0x399"
+
config USBMSC_REMOVABLE
bool "Mass stroage remove able"
default n