configs/stm3240g-eval/nsh: Configuration converted to use the kconfig-frontends tools
This commit is contained in:
parent
378e4f9dd6
commit
0072c028f6
@ -1097,14 +1097,23 @@ Where <subdir> is one of the following:
|
|||||||
CONFIG_NSH_DRIPADDR=(10<<24|0<<16|0<<8|1) : Host IP address 10.0.0.1
|
CONFIG_NSH_DRIPADDR=(10<<24|0<<16|0<<8|1) : Host IP address 10.0.0.1
|
||||||
|
|
||||||
NOTES:
|
NOTES:
|
||||||
1. This example assumes that a network is connected. During its
|
1. This configuration uses the mconf-based configuration tool. To
|
||||||
|
change this configurations using that tool, you should:
|
||||||
|
|
||||||
|
a. Build and install the kconfig-mconf tool. See nuttx/README.txt
|
||||||
|
and misc/tools/
|
||||||
|
|
||||||
|
b. Execute 'make menuconfig' in nuttx/ in order to start the
|
||||||
|
reconfiguration process.
|
||||||
|
|
||||||
|
2. This example assumes that a network is connected. During its
|
||||||
initialization, it will try to negotiate the link speed. If you have
|
initialization, it will try to negotiate the link speed. If you have
|
||||||
no network connected when you reset the board, there will be a long
|
no network connected when you reset the board, there will be a long
|
||||||
delay (maybe 30 seconds?) before anything happens. That is the timeout
|
delay (maybe 30 seconds?) before anything happens. That is the timeout
|
||||||
before the networking finally gives up and decides that no network is
|
before the networking finally gives up and decides that no network is
|
||||||
available.
|
available.
|
||||||
|
|
||||||
2. This example supports the ADC test (apps/examples/adc) but this must
|
3. This example supports the ADC test (apps/examples/adc) but this must
|
||||||
be manually enabled by selecting:
|
be manually enabled by selecting:
|
||||||
|
|
||||||
CONFIG_ADC=y : Enable the generic ADC infrastructure
|
CONFIG_ADC=y : Enable the generic ADC infrastructure
|
||||||
@ -1120,7 +1129,7 @@ Where <subdir> is one of the following:
|
|||||||
|
|
||||||
CONFIG_DEBUG_ANALOG
|
CONFIG_DEBUG_ANALOG
|
||||||
|
|
||||||
3. This example supports the PWM test (apps/examples/pwm) but this must
|
4. This example supports the PWM test (apps/examples/pwm) but this must
|
||||||
be manually enabled by selecting eeither
|
be manually enabled by selecting eeither
|
||||||
|
|
||||||
CONFIG_PWM=y : Enable the generic PWM infrastructure
|
CONFIG_PWM=y : Enable the generic PWM infrastructure
|
||||||
@ -1149,7 +1158,7 @@ Where <subdir> is one of the following:
|
|||||||
|
|
||||||
CONFIG_DEBUG_PWM
|
CONFIG_DEBUG_PWM
|
||||||
|
|
||||||
4. This example supports the CAN loopback test (apps/examples/can) but this
|
5. This example supports the CAN loopback test (apps/examples/can) but this
|
||||||
must be manually enabled by selecting:
|
must be manually enabled by selecting:
|
||||||
|
|
||||||
CONFIG_CAN=y : Enable the generic CAN infrastructure
|
CONFIG_CAN=y : Enable the generic CAN infrastructure
|
||||||
@ -1164,25 +1173,25 @@ Where <subdir> is one of the following:
|
|||||||
CONFIG_DEBUG_CAN
|
CONFIG_DEBUG_CAN
|
||||||
CONFIG_CAN_REGDEBUG
|
CONFIG_CAN_REGDEBUG
|
||||||
|
|
||||||
5. This example can support an FTP client. In order to build in FTP client
|
6. This example can support an FTP client. In order to build in FTP client
|
||||||
support simply uncomment the following lines in the appconfig file (before
|
support simply uncomment the following lines in the defconfig file (before
|
||||||
configuring) or in the apps/.config file (after configuring):
|
configuring) or in the .config file (after configuring):
|
||||||
|
|
||||||
#CONFIGURED_APPS += netutils/ftpc
|
CONFIG_NETUTILS_FTPC=y
|
||||||
#CONFIGURED_APPS += examples/ftpc
|
CONFIG_EXAMPLES_FTPC=y
|
||||||
|
|
||||||
6. This example can support an FTP server. In order to build in FTP server
|
7. This example can support an FTP server. In order to build in FTP server
|
||||||
support simply uncomment the following lines in the appconfig file (before
|
support simply add the following lines in the defconfig file (before
|
||||||
configuring) or in the apps/.config file (after configuring):
|
configuring) or in the .config file (after configuring):
|
||||||
|
|
||||||
#CONFIGURED_APPS += netutils/ftpd
|
CONFIG_NETUTILS_FTPD=y
|
||||||
#CONFIGURED_APPS += examples/ftpd
|
CONFIG_EXAMPLES_FTPD=y
|
||||||
|
|
||||||
And enable poll() support in the NuttX configuration file:
|
And enable poll() support in the NuttX configuration file:
|
||||||
|
|
||||||
CONFIG_DISABLE_POLL=n
|
CONFIG_DISABLE_POLL=n
|
||||||
|
|
||||||
7. This example supports the watchdog timer test (apps/examples/watchdog)
|
8. This example supports the watchdog timer test (apps/examples/watchdog)
|
||||||
but this must be manually enabled by selecting:
|
but this must be manually enabled by selecting:
|
||||||
|
|
||||||
CONFIG_WATCHDOG=y : Enables watchdog timer driver support
|
CONFIG_WATCHDOG=y : Enables watchdog timer driver support
|
||||||
@ -1198,43 +1207,40 @@ Where <subdir> is one of the following:
|
|||||||
|
|
||||||
The IWDG timer has a range of about 35 seconds and should not be an issue.
|
The IWDG timer has a range of about 35 seconds and should not be an issue.
|
||||||
|
|
||||||
7. Adding LCD and graphics support:
|
9. Adding LCD and graphics support:
|
||||||
|
|
||||||
appconfig (apps/.config): Enable the application configurations that you
|
|
||||||
want to use. Asexamples:
|
|
||||||
|
|
||||||
CONFIGURED_APPS += examples/nx : Pick one or more
|
|
||||||
CONFIGURED_APPS += examples/nxhello :
|
|
||||||
CONFIGURED_APPS += examples/nximage :
|
|
||||||
CONFIGURED_APPS += examples/nxlines :
|
|
||||||
|
|
||||||
defconfig (nuttx/.config):
|
defconfig (nuttx/.config):
|
||||||
|
|
||||||
CONFIG_STM32_FSMC=y : FSMC support is required for the LCD
|
CONFIG_EXAMPLES_nx=y : Pick one or more
|
||||||
CONFIG_NX=y : Enable graphics suppport
|
CONFIG_EXAMPLES_nxhello=y :
|
||||||
CONFIG_MM_REGIONS=3 : When FSMC is enabled, so is the on-board SRAM memory region
|
CONFIG_EXAMPLES_nximage :
|
||||||
|
CONFIG_EXAMPLES_nxlines :
|
||||||
|
|
||||||
8. USB OTG FS Device or Host Support
|
CONFIG_STM32_FSMC=y : FSMC support is required for the LCD
|
||||||
|
CONFIG_NX=y : Enable graphics suppport
|
||||||
|
CONFIG_MM_REGIONS=3 : When FSMC is enabled, so is the on-board SRAM memory region
|
||||||
|
|
||||||
CONFIG_USBDEV - Enable USB device support, OR
|
10. USB OTG FS Device or Host Support
|
||||||
CONFIG_USBHOST - Enable USB host support
|
|
||||||
CONFIG_STM32_OTGFS - Enable the STM32 USB OTG FS block
|
|
||||||
CONFIG_STM32_SYSCFG - Needed
|
|
||||||
CONFIG_SCHED_WORKQUEUE - Worker thread support is required
|
|
||||||
|
|
||||||
9. USB OTG FS Host Support. The following changes will enable support for
|
CONFIG_USBDEV : Enable USB device support, OR
|
||||||
a USB host on the STM32F4Discovery, including support for a mass storage
|
CONFIG_USBHOST : Enable USB host support
|
||||||
class driver:
|
CONFIG_STM32_OTGFS : Enable the STM32 USB OTG FS block
|
||||||
|
CONFIG_STM32_SYSCFG : Needed
|
||||||
|
CONFIG_SCHED_WORKQUEUE : Worker thread support is required
|
||||||
|
|
||||||
CONFIG_USBDEV=n - Make sure tht USB device support is disabled
|
11. USB OTG FS Host Support. The following changes will enable support for
|
||||||
CONFIG_USBHOST=y - Enable USB host support
|
a USB host on the STM32F4Discovery, including support for a mass storage
|
||||||
CONFIG_STM32_OTGFS=y - Enable the STM32 USB OTG FS block
|
class driver:
|
||||||
CONFIG_STM32_SYSCFG=y - Needed for all USB OTF FS support
|
|
||||||
CONFIG_SCHED_WORKQUEUE=y - Worker thread support is required for the mass
|
CONFIG_USBDEV=n : Make sure tht USB device support is disabled
|
||||||
|
CONFIG_USBHOST=y : Enable USB host support
|
||||||
|
CONFIG_STM32_OTGFS=y : Enable the STM32 USB OTG FS block
|
||||||
|
CONFIG_STM32_SYSCFG=y : Needed for all USB OTF FS support
|
||||||
|
CONFIG_SCHED_WORKQUEUE=y : Worker thread support is required for the mass
|
||||||
storage class driver.
|
storage class driver.
|
||||||
CONFIG_NSH_ARCHINIT=y - Architecture specific USB initialization
|
CONFIG_NSH_ARCHINIT=y : Architecture specific USB initialization
|
||||||
is needed for NSH
|
is needed for NSH
|
||||||
CONFIG_FS_FAT=y - Needed by the USB host mass storage class.
|
CONFIG_FS_FAT=y : Needed by the USB host mass storage class.
|
||||||
|
|
||||||
With those changes, you can use NSH with a FLASH pen driver as shown
|
With those changes, you can use NSH with a FLASH pen driver as shown
|
||||||
belong. Here NSH is started with nothing in the USB host slot:
|
belong. Here NSH is started with nothing in the USB host slot:
|
||||||
@ -1281,7 +1287,7 @@ Where <subdir> is one of the following:
|
|||||||
|
|
||||||
nsh> umount /mnt/stuff
|
nsh> umount /mnt/stuff
|
||||||
|
|
||||||
11. By default, this configuration supports /dev/random using the STM32's
|
12. By default, this configuration supports /dev/random using the STM32's
|
||||||
RNG hardware. This can be disabled as follows:
|
RNG hardware. This can be disabled as follows:
|
||||||
|
|
||||||
-CONFIG_STM32_RNG=y
|
-CONFIG_STM32_RNG=y
|
||||||
@ -1290,7 +1296,7 @@ Where <subdir> is one of the following:
|
|||||||
-CONFIG_DEV_RANDOM=y
|
-CONFIG_DEV_RANDOM=y
|
||||||
+CONFIG_DEV_RANDOM=n
|
+CONFIG_DEV_RANDOM=n
|
||||||
|
|
||||||
12. This configuration requires that jumper JP22 be set to enable RS-232
|
13. This configuration requires that jumper JP22 be set to enable RS-232
|
||||||
operation.
|
operation.
|
||||||
|
|
||||||
nsh2:
|
nsh2:
|
||||||
|
@ -1,102 +0,0 @@
|
|||||||
############################################################################
|
|
||||||
# configs/stm3240g-eval/nsh/appconfig
|
|
||||||
#
|
|
||||||
# Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
############################################################################
|
|
||||||
|
|
||||||
# Path to example in apps/examples containing the user_start entry point
|
|
||||||
|
|
||||||
CONFIGURED_APPS += examples/nsh
|
|
||||||
|
|
||||||
# The NSH application library
|
|
||||||
|
|
||||||
CONFIGURED_APPS += system/readline
|
|
||||||
CONFIGURED_APPS += nshlib
|
|
||||||
|
|
||||||
# Networking libraries.
|
|
||||||
# Uncomment netutils/ftpc to include an FTP client library
|
|
||||||
# Uncomment netutils/ftpd to include an FTP server library
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_NET),y)
|
|
||||||
CONFIGURED_APPS += netutils/uiplib
|
|
||||||
CONFIGURED_APPS += netutils/resolv
|
|
||||||
CONFIGURED_APPS += netutils/webclient
|
|
||||||
CONFIGURED_APPS += netutils/tftpc
|
|
||||||
#CONFIGURED_APPS += netutils/ftpc
|
|
||||||
#CONFIGURED_APPS += netutils/ftpd
|
|
||||||
ifeq ($(CONFIG_NSH_TELNET),y)
|
|
||||||
CONFIGURED_APPS += netutils/telnetd
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Applications configured as an NX built-in commands
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_ADC),y)
|
|
||||||
CONFIGURED_APPS += examples/adc
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_PWM),y)
|
|
||||||
CONFIGURED_APPS += examples/pwm
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_CAN),y)
|
|
||||||
CONFIGURED_APPS += examples/can
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_I2C),y)
|
|
||||||
CONFIGURED_APPS += system/i2c
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_WATCHDOG),y)
|
|
||||||
CONFIGURED_APPS += examples/watchdog
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_INPUT_STMPE811),y)
|
|
||||||
CONFIGURED_APPS += examples/touchscreen
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Uncomment examples/ftpc to include the FTP client example
|
|
||||||
# Uncomment examples/ftpd to include the FTP daemon example
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_NET),y)
|
|
||||||
#CONFIGURED_APPS += examples/ftpc
|
|
||||||
#CONFIGURED_APPS += examples/ftpd
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Uncomment to select a graphics example
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_NX),y)
|
|
||||||
#CONFIGURED_APPS += examples/nx
|
|
||||||
#CONFIGURED_APPS += examples/nxhello
|
|
||||||
#CONFIGURED_APPS += examples/nximage
|
|
||||||
#CONFIGURED_APPS += examples/nxlines
|
|
||||||
endif
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user