Add an NSH configuration for the LPC43xx
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4930 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
parent
120ab3cb6e
commit
c2a179d8bf
|
@ -2974,4 +2974,6 @@
|
||||||
alternative by defining CONFIG_ARCH_STDARG_H=y. If CONFIG_ARCH_STDARG_H,
|
alternative by defining CONFIG_ARCH_STDARG_H=y. If CONFIG_ARCH_STDARG_H,
|
||||||
is not defined, then the redirecting stdarg.h header file will stay
|
is not defined, then the redirecting stdarg.h header file will stay
|
||||||
out-of-the-way in include/nuttx/.
|
out-of-the-way in include/nuttx/.
|
||||||
|
* configs/lpc4330-xplorer/nsh: Add an NSH configuration for the LPC4330
|
||||||
|
Xplorer board.
|
||||||
|
|
||||||
|
|
|
@ -363,7 +363,7 @@ void up_irqinitialize(void)
|
||||||
/* If a debugger is connected, try to prevent it from catching hardfaults */
|
/* If a debugger is connected, try to prevent it from catching hardfaults */
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG
|
||||||
regval = getreg32(NVIC_DEMCR);
|
regval = getreg32(NVIC_DEMCR);
|
||||||
regval &= ~NVIC_DEMCR_VCHARDERR;
|
regval &= ~NVIC_DEMCR_VCHARDERR;
|
||||||
putreg32(regval, NVIC_DEMCR);
|
putreg32(regval, NVIC_DEMCR);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -0,0 +1,218 @@
|
||||||
|
############################################################################
|
||||||
|
# configs/lpc4330-xplorer/nsh/Make.defs
|
||||||
|
#
|
||||||
|
# Copyright (C) 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.
|
||||||
|
#
|
||||||
|
############################################################################
|
||||||
|
|
||||||
|
include ${TOPDIR}/.config
|
||||||
|
|
||||||
|
# Setup for the selected toolchain
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_LPC32_CODEREDW),y)
|
||||||
|
# Code Red RedSuite under Windows
|
||||||
|
CROSSDEV = arm-none-eabi-
|
||||||
|
ARCROSSDEV = arm-none-eabi-
|
||||||
|
WINTOOL = y
|
||||||
|
ifeq ($(CONFIG_ARCH_FPU),y)
|
||||||
|
ARCHCPUFLAGS = -mcpu=cortex-m4 -mthumb -march=armv7e-m -mfpu=fpv4-sp-d16 -mfloat-abi=hard
|
||||||
|
else
|
||||||
|
ARCHCPUFLAGS = -mcpu=cortex-m3 -mthumb -mfloat-abi=soft
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(CONFIG_LPC43_CODESOURCERYW),y)
|
||||||
|
# CodeSourcery under Windows
|
||||||
|
CROSSDEV = arm-none-eabi-
|
||||||
|
ARCROSSDEV = arm-none-eabi-
|
||||||
|
WINTOOL = y
|
||||||
|
ARCHCPUFLAGS = -mcpu=cortex-m4 -mthumb -mfloat-abi=soft
|
||||||
|
endif
|
||||||
|
ifeq ($(CONFIG_LPC43_CODESOURCERYL),y)
|
||||||
|
# CodeSourcery under Linux
|
||||||
|
CROSSDEV = arm-none-eabi-
|
||||||
|
ARCROSSDEV = arm-none-eabi-
|
||||||
|
ARCHCPUFLAGS = -mcpu=cortex-m4 -mthumb -mfloat-abi=soft
|
||||||
|
MAXOPTIMIZATION = -O2
|
||||||
|
endif
|
||||||
|
ifeq ($(CONFIG_LPC43_ATOLLIC_LITE),y)
|
||||||
|
# Atollic toolchain under Windows
|
||||||
|
CROSSDEV = arm-atollic-eabi-
|
||||||
|
ARCROSSDEV =
|
||||||
|
WINTOOL = y
|
||||||
|
ifeq ($(CONFIG_ARCH_FPU),y)
|
||||||
|
ARCHCPUFLAGS = -mcpu=cortex-m4 -mthumb -march=armv7e-m -mfpu=fpv4-sp-d16 -mfloat-abi=hard
|
||||||
|
else
|
||||||
|
ARCHCPUFLAGS = -mcpu=cortex-m3 -mthumb -mfloat-abi=soft
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(CONFIG_LPC43_ATOLLIC_PRO),y)
|
||||||
|
# Atollic toolchain under Windows
|
||||||
|
CROSSDEV = arm-atollic-eabi-
|
||||||
|
ARCROSSDEV = arm-atollic-eabi-
|
||||||
|
WINTOOL = y
|
||||||
|
ifeq ($(CONFIG_ARCH_FPU),y)
|
||||||
|
ARCHCPUFLAGS = -mcpu=cortex-m4 -mthumb -march=armv7e-m -mfpu=fpv4-sp-d16 -mfloat-abi=hard
|
||||||
|
else
|
||||||
|
ARCHCPUFLAGS = -mcpu=cortex-m3 -mthumb -mfloat-abi=soft
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(CONFIG_LPC43_DEVKITARM),y)
|
||||||
|
# devkitARM under Windows
|
||||||
|
CROSSDEV = arm-eabi-
|
||||||
|
WINTOOL = y
|
||||||
|
ARCHCPUFLAGS = -mcpu=cortex-m4 -mthumb -mfloat-abi=soft
|
||||||
|
endif
|
||||||
|
ifeq ($(CONFIG_LPC43_BUILDROOT),y)
|
||||||
|
# NuttX buildroot under Linux or Cygwin
|
||||||
|
CROSSDEV = arm-elf-
|
||||||
|
ARCROSSDEV = arm-elf-
|
||||||
|
ARCHCPUFLAGS = -mtune=cortex-m4 -march=armv7-m -mfloat-abi=soft
|
||||||
|
MAXOPTIMIZATION = -Os
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Setup for the kind of memory that we are executing from
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_BOOT_SRAM),y)
|
||||||
|
LDSCRIPT = ramconfig.ld
|
||||||
|
endif
|
||||||
|
ifeq ($(CONFIG_BOOT_SPIFI),y)
|
||||||
|
LDSCRIPT = spiconfig.ld
|
||||||
|
endif
|
||||||
|
ifeq ($(CONFIG_BOOT_FLASHA),y)
|
||||||
|
LDSCRIPT = flashaconfig.ld
|
||||||
|
endif
|
||||||
|
ifeq ($(CONFIG_BOOT_FLASHB),y)
|
||||||
|
LDSCRIPT = flashaconfig.ld
|
||||||
|
endif
|
||||||
|
ifeq ($(CONFIG_BOOT_CS0FLASH),y)
|
||||||
|
LDSCRIPT = cs0flash.ld
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Setup for Windows vs Linux/Cygwin/OSX environments
|
||||||
|
|
||||||
|
ifeq ($(WINTOOL),y)
|
||||||
|
# Windows-native toolchains
|
||||||
|
DIRLINK = $(TOPDIR)/tools/winlink.sh
|
||||||
|
DIRUNLINK = $(TOPDIR)/tools/unlink.sh
|
||||||
|
MKDEP = $(TOPDIR)/tools/mknulldeps.sh
|
||||||
|
ARCHINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}"
|
||||||
|
ARCHXXINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}" -isystem "${shell cygpath -w $(TOPDIR)/include/cxx}"
|
||||||
|
ARCHSCRIPT = -T "${shell cygpath -w $(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/scripts/$(LDSCRIPT)}"
|
||||||
|
MAXOPTIMIZATION = -O2
|
||||||
|
else
|
||||||
|
# Linux/Cygwin-native toolchain
|
||||||
|
MKDEP = $(TOPDIR)/tools/mkdeps.sh
|
||||||
|
ARCHINCLUDES = -I. -isystem $(TOPDIR)/include
|
||||||
|
ARCHXXINCLUDES = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx
|
||||||
|
ARCHSCRIPT = -T$(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/scripts/$(LDSCRIPT)
|
||||||
|
endif
|
||||||
|
|
||||||
|
CC = $(CROSSDEV)gcc
|
||||||
|
CXX = $(CROSSDEV)g++
|
||||||
|
CPP = $(CROSSDEV)gcc -E
|
||||||
|
LD = $(CROSSDEV)ld
|
||||||
|
AR = $(ARCROSSDEV)ar rcs
|
||||||
|
NM = $(ARCROSSDEV)nm
|
||||||
|
OBJCOPY = $(CROSSDEV)objcopy
|
||||||
|
OBJDUMP = $(CROSSDEV)objdump
|
||||||
|
|
||||||
|
ARCHCCVERSION = ${shell $(CC) -v 2>&1 | sed -n '/^gcc version/p' | sed -e 's/^gcc version \([0-9\.]\)/\1/g' -e 's/[-\ ].*//g' -e '1q'}
|
||||||
|
ARCHCCMAJOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f1}
|
||||||
|
|
||||||
|
ifeq ("${CONFIG_DEBUG_SYMBOLS}","y")
|
||||||
|
ARCHOPTIMIZATION = -g
|
||||||
|
else
|
||||||
|
ARCHOPTIMIZATION = $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer
|
||||||
|
endif
|
||||||
|
|
||||||
|
ARCHCFLAGS = -fno-builtin
|
||||||
|
ARCHCXXFLAGS = -fno-builtin -fno-exceptions -fno-rtti
|
||||||
|
ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow
|
||||||
|
ARCHWARNINGSXX = -Wall -Wshadow
|
||||||
|
ARCHDEFINES =
|
||||||
|
ARCHPICFLAGS = -fpic -msingle-pic-base -mpic-register=r10
|
||||||
|
|
||||||
|
CFLAGS = $(ARCHCFLAGS) $(ARCHWARNINGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES) -pipe
|
||||||
|
CPICFLAGS = $(ARCHPICFLAGS) $(CFLAGS)
|
||||||
|
CXXFLAGS = $(ARCHCXXFLAGS) $(ARCHWARNINGSXX) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHXXINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES) -pipe
|
||||||
|
CXXPICFLAGS = $(ARCHPICFLAGS) $(CXXFLAGS)
|
||||||
|
CPPFLAGS = $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES)
|
||||||
|
AFLAGS = $(CFLAGS) -D__ASSEMBLY__
|
||||||
|
|
||||||
|
NXFLATLDFLAGS1 = -r -d -warn-common
|
||||||
|
NXFLATLDFLAGS2 = $(NXFLATLDFLAGS1) -T$(TOPDIR)/binfmt/libnxflat/gnu-nxflat.ld -no-check-sections
|
||||||
|
LDNXFLATFLAGS = -e main -s 2048
|
||||||
|
|
||||||
|
OBJEXT = .o
|
||||||
|
LIBEXT = .a
|
||||||
|
EXEEXT =
|
||||||
|
|
||||||
|
ifneq ($(CROSSDEV),arm-elf-)
|
||||||
|
LDFLAGS += -nostartfiles -nodefaultlibs
|
||||||
|
endif
|
||||||
|
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
||||||
|
LDFLAGS += -g
|
||||||
|
endif
|
||||||
|
|
||||||
|
define PREPROCESS
|
||||||
|
@echo "CPP: $1->$2"
|
||||||
|
@$(CPP) $(CPPFLAGS) $1 -o $2
|
||||||
|
endef
|
||||||
|
|
||||||
|
define COMPILE
|
||||||
|
@echo "CC: $1"
|
||||||
|
@$(CC) -c $(CFLAGS) $1 -o $2
|
||||||
|
endef
|
||||||
|
|
||||||
|
define COMPILEXX
|
||||||
|
@echo "CXX: $1"
|
||||||
|
@$(CXX) -c $(CXXFLAGS) $1 -o $2
|
||||||
|
endef
|
||||||
|
|
||||||
|
define ASSEMBLE
|
||||||
|
@echo "AS: $1"
|
||||||
|
@$(CC) -c $(AFLAGS) $1 -o $2
|
||||||
|
endef
|
||||||
|
|
||||||
|
define ARCHIVE
|
||||||
|
echo "AR: $2"; \
|
||||||
|
$(AR) $1 $2 || { echo "$(AR) $1 $2 FAILED!" ; exit 1 ; }
|
||||||
|
endef
|
||||||
|
|
||||||
|
define CLEAN
|
||||||
|
@rm -f *.o *.a
|
||||||
|
endef
|
||||||
|
|
||||||
|
HOSTCC = gcc
|
||||||
|
HOSTINCLUDES = -I.
|
||||||
|
HOSTCFLAGS = -Wall -Wstrict-prototypes -Wshadow -g -pipe
|
||||||
|
HOSTLDFLAGS =
|
||||||
|
|
|
@ -0,0 +1,89 @@
|
||||||
|
############################################################################
|
||||||
|
# configs/lpc4330-xplorer/nsh2/appconfig
|
||||||
|
#
|
||||||
|
# Copyright (C) 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
|
||||||
|
|
||||||
|
# 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
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,91 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# configs/lpc4330-xplorer/nsh/setenv.sh
|
||||||
|
#
|
||||||
|
# Copyright (C) 2010 Gregory Nutt. All rights reserved.
|
||||||
|
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||||
|
#
|
||||||
|
# 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.
|
||||||
|
#
|
||||||
|
|
||||||
|
if [ "$_" = "$0" ] ; then
|
||||||
|
echo "You must source this script, not run it!" 1>&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
WD=`pwd`
|
||||||
|
if [ ! -x "setenv.sh" ]; then
|
||||||
|
echo "This script must be executed from the top-level NuttX build directory"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "${PATH_ORIG}" ]; then
|
||||||
|
export PATH_ORIG="${PATH}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# This is the Cygwin path to the location where I installed the Code Red
|
||||||
|
# toolchain under windows. You will have to edit this if you install the
|
||||||
|
# Code Red toolchain in any other location or if you install a different
|
||||||
|
# version
|
||||||
|
export TOOLCHAIN_BIN="/cygdrive/c/code_red/RedSuite_4.2.3_379/redsuite/Tools/bin"
|
||||||
|
#export SCRIPT_BIN="/cygdrive/c/code_red/RedSuite_4.2.3_379/redsuite/bin"
|
||||||
|
export SCRIPT_BIN="/cygdrive/c/nxp/LPCXpresso_4.2.3_292/lpcxpresso/bin"
|
||||||
|
|
||||||
|
# This the Cygwin path to the location where I installed the CodeSourcery
|
||||||
|
# toolchain under windows. You will also have to edit this if you install
|
||||||
|
# the CodeSourcery toolchain in any other location
|
||||||
|
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
||||||
|
#export SCRIPT_BIN=
|
||||||
|
|
||||||
|
# These are the Cygwin paths to the locations where I installed the Atollic
|
||||||
|
# toolchain under windows. You will also have to edit this if you install
|
||||||
|
# the Atollic toolchain in any other location. /usr/bin is added before
|
||||||
|
# the Atollic bin path because there is are binaries named gcc.exe and g++.exe
|
||||||
|
# at those locations as well.
|
||||||
|
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for ARM Pro 2.3.0/ARMTools/bin"
|
||||||
|
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for STMicroelectronics STM32 Lite 2.3.0/ARMTools/bin"
|
||||||
|
#export SCRIPT_BIN=
|
||||||
|
|
||||||
|
# This the Cygwin path to the location where I build the buildroot
|
||||||
|
# toolchain.
|
||||||
|
#export TOOLCHAIN_BIN="${WD}/../misc/buildroot/build_arm_nofpu/staging_dir/bin"
|
||||||
|
#export SCRIPT_BIN=
|
||||||
|
|
||||||
|
# And add the selected toolchain path[s] to the PATH variable
|
||||||
|
|
||||||
|
export PATH="/sbin:/usr/sbin:${PATH_ORIG}"
|
||||||
|
|
||||||
|
if [ ! -z ${SCRIPT_BIN} ]; then
|
||||||
|
export PATH="${SCRIPT_BIN}:${PATH}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
export PATH="${TOOLCHAIN_BIN}:${PATH}"
|
||||||
|
echo "PATH : ${PATH}"
|
||||||
|
|
||||||
|
# Set an alias that can be used to put the LPC43xx in boot mode
|
||||||
|
|
||||||
|
alias lpc43xx='${SCRIPT_BIN}/Scripts/bootLPCXpresso.cmd winusb'
|
|
@ -251,6 +251,14 @@ CONFIG_PHY_AUTONEG=y
|
||||||
CONFIG_PHY_SPEED100=n
|
CONFIG_PHY_SPEED100=n
|
||||||
CONFIG_PHY_FDUPLEX=y
|
CONFIG_PHY_FDUPLEX=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# I2C configuration
|
||||||
|
#
|
||||||
|
CONFIG_I2C=n
|
||||||
|
CONFIG_I2C_POLLED=y
|
||||||
|
CONFIG_I2C_TRANSFER=y
|
||||||
|
CONFIG_I2C_TRACE=n
|
||||||
|
|
||||||
#
|
#
|
||||||
# General build options
|
# General build options
|
||||||
#
|
#
|
||||||
|
@ -282,6 +290,10 @@ CONFIG_HAVE_LIBM=n
|
||||||
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
|
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
|
||||||
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
|
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
|
||||||
# debug symbols (needed for use with a debugger).
|
# debug symbols (needed for use with a debugger).
|
||||||
|
# CONFIG_HAVE_CXX - Enable support for C++
|
||||||
|
# CONFIG_HAVE_CXXINITIALIZE - The platform-specific logic includes support
|
||||||
|
# for initialization of static C++ instances for this architecture
|
||||||
|
# and for the selected toolchain (via up_cxxinitialize()).
|
||||||
# CONFIG_MM_REGIONS - If the architecture includes multiple
|
# CONFIG_MM_REGIONS - If the architecture includes multiple
|
||||||
# regions of memory to allocate from, this specifies the
|
# regions of memory to allocate from, this specifies the
|
||||||
# number of memory regions that the memory manager must
|
# number of memory regions that the memory manager must
|
||||||
|
@ -343,9 +355,6 @@ CONFIG_HAVE_LIBM=n
|
||||||
# CONFIG_SDCLONE_DISABLE. Disable cloning of all socket
|
# CONFIG_SDCLONE_DISABLE. Disable cloning of all socket
|
||||||
# desciptors by task_create() when a new task is started. If
|
# desciptors by task_create() when a new task is started. If
|
||||||
# set, all sockets will appear to be closed in the new task.
|
# set, all sockets will appear to be closed in the new task.
|
||||||
# CONFIG_NXFLAT. Enable support for the NXFLAT binary format.
|
|
||||||
# This format will support execution of NuttX binaries located
|
|
||||||
# in a ROMFS filesystem (see examples/nxflat).
|
|
||||||
# CONFIG_SCHED_WORKQUEUE. Create a dedicated "worker" thread to
|
# CONFIG_SCHED_WORKQUEUE. Create a dedicated "worker" thread to
|
||||||
# handle delayed processing from interrupt handlers. This feature
|
# handle delayed processing from interrupt handlers. This feature
|
||||||
# is required for some drivers but, if there are not complaints,
|
# is required for some drivers but, if there are not complaints,
|
||||||
|
@ -364,6 +373,8 @@ CONFIG_HAVE_LIBM=n
|
||||||
# thread. Default: CONFIG_IDLETHREAD_STACKSIZE.
|
# thread. Default: CONFIG_IDLETHREAD_STACKSIZE.
|
||||||
# CONFIG_SIG_SIGWORK - The signal number that will be used to wake-up
|
# CONFIG_SIG_SIGWORK - The signal number that will be used to wake-up
|
||||||
# the worker thread. Default: 4
|
# the worker thread. Default: 4
|
||||||
|
# CONFIG_SCHED_WAITPID - Enable the waitpid() API
|
||||||
|
# CONFIG_SCHED_ATEXIT - Enabled the atexit() API
|
||||||
#
|
#
|
||||||
#CONFIG_APPS_DIR=
|
#CONFIG_APPS_DIR=
|
||||||
CONFIG_DEBUG=n
|
CONFIG_DEBUG=n
|
||||||
|
@ -371,18 +382,20 @@ CONFIG_DEBUG_VERBOSE=n
|
||||||
CONFIG_DEBUG_SYMBOLS=n
|
CONFIG_DEBUG_SYMBOLS=n
|
||||||
CONFIG_DEBUG_SCHED=n
|
CONFIG_DEBUG_SCHED=n
|
||||||
|
|
||||||
|
CONFIG_HAVE_CXX=n
|
||||||
|
CONFIG_HAVE_CXXINITIALIZE=n
|
||||||
CONFIG_MM_REGIONS=2
|
CONFIG_MM_REGIONS=2
|
||||||
CONFIG_ARCH_LOWPUTC=y
|
CONFIG_ARCH_LOWPUTC=y
|
||||||
CONFIG_RR_INTERVAL=200
|
CONFIG_RR_INTERVAL=200
|
||||||
CONFIG_SCHED_INSTRUMENTATION=n
|
CONFIG_SCHED_INSTRUMENTATION=n
|
||||||
CONFIG_TASK_NAME_SIZE=0
|
CONFIG_TASK_NAME_SIZE=0
|
||||||
CONFIG_START_YEAR=2010
|
CONFIG_START_YEAR=2012
|
||||||
CONFIG_START_MONTH=6
|
CONFIG_START_MONTH=7
|
||||||
CONFIG_START_DAY=20
|
CONFIG_START_DAY=11
|
||||||
CONFIG_GREGORIAN_TIME=n
|
CONFIG_GREGORIAN_TIME=n
|
||||||
CONFIG_JULIAN_TIME=n
|
CONFIG_JULIAN_TIME=n
|
||||||
CONFIG_DEV_CONSOLE=y
|
CONFIG_DEV_CONSOLE=y
|
||||||
CONFIG_DEV_LOWCONSOLE=n
|
CONFIG_DEV_LOWCONSOLE=y
|
||||||
CONFIG_MUTEX_TYPES=n
|
CONFIG_MUTEX_TYPES=n
|
||||||
CONFIG_PRIORITY_INHERITANCE=n
|
CONFIG_PRIORITY_INHERITANCE=n
|
||||||
CONFIG_SEM_PREALLOCHOLDERS=0
|
CONFIG_SEM_PREALLOCHOLDERS=0
|
||||||
|
@ -390,12 +403,62 @@ CONFIG_SEM_NNESTPRIO=0
|
||||||
CONFIG_FDCLONE_DISABLE=n
|
CONFIG_FDCLONE_DISABLE=n
|
||||||
CONFIG_FDCLONE_STDIO=n
|
CONFIG_FDCLONE_STDIO=n
|
||||||
CONFIG_SDCLONE_DISABLE=y
|
CONFIG_SDCLONE_DISABLE=y
|
||||||
CONFIG_NXFLAT=n
|
|
||||||
CONFIG_SCHED_WORKQUEUE=n
|
CONFIG_SCHED_WORKQUEUE=n
|
||||||
CONFIG_SCHED_WORKPRIORITY=50
|
CONFIG_SCHED_WORKPRIORITY=192
|
||||||
CONFIG_SCHED_WORKPERIOD=(50*1000)
|
CONFIG_SCHED_WORKPERIOD=(50*1000)
|
||||||
CONFIG_SCHED_WORKSTACKSIZE=1024
|
CONFIG_SCHED_WORKSTACKSIZE=2048
|
||||||
CONFIG_SIG_SIGWORK=4
|
CONFIG_SIG_SIGWORK=4
|
||||||
|
CONFIG_SCHED_WAITPID=n
|
||||||
|
CONFIG_SCHED_ATEXIT=n
|
||||||
|
|
||||||
|
#
|
||||||
|
# System Logging
|
||||||
|
#
|
||||||
|
# CONFIG_SYSLOG - Enables the System Logging feature.
|
||||||
|
# CONFIG_RAMLOG - Enables the RAM logging feature
|
||||||
|
# CONFIG_RAMLOG_CONSOLE - Use the RAM logging device as a system console.
|
||||||
|
# If this feature is enabled (along with CONFIG_DEV_CONSOLE), then all
|
||||||
|
# console output will be re-directed to a circular buffer in RAM. This
|
||||||
|
# is useful, for example, if the only console is a Telnet console. Then
|
||||||
|
# in that case, console output from non-Telnet threads will go to the
|
||||||
|
# circular buffer and can be viewed using the NSH 'dmesg' command.
|
||||||
|
# CONFIG_RAMLOG_SYSLOG - Use the RAM logging device for the syslogging
|
||||||
|
# interface. If this feature is enabled (along with CONFIG_SYSLOG),
|
||||||
|
# then all debug output (only) will be re-directed to the circular
|
||||||
|
# buffer in RAM. This RAM log can be view from NSH using the 'dmesg'
|
||||||
|
# command.
|
||||||
|
# CONFIG_RAMLOG_NPOLLWAITERS - The number of threads than can be waiting
|
||||||
|
# for this driver on poll(). Default: 4
|
||||||
|
#
|
||||||
|
# If CONFIG_RAMLOG_CONSOLE or CONFIG_RAMLOG_SYSLOG is selected, then the
|
||||||
|
# following may also be provided:
|
||||||
|
#
|
||||||
|
# CONFIG_RAMLOG_CONSOLE_BUFSIZE - Size of the console RAM log. Default: 1024
|
||||||
|
#
|
||||||
|
|
||||||
|
CONFIG_SYSLOG=n
|
||||||
|
CONFIG_RAMLOG=n
|
||||||
|
CONFIG_RAMLOG_CONSOLE=n
|
||||||
|
CONFIG_RAMLOG_SYSLOG=n
|
||||||
|
#CONFIG_RAMLOG_NPOLLWAITERS
|
||||||
|
#CONFIG_RAMLOG_CONSOLE_BUFSIZE
|
||||||
|
|
||||||
|
#
|
||||||
|
# Settings for NXFLAT
|
||||||
|
#
|
||||||
|
# CONFIG_NXFLAT. Enable support for the NXFLAT binary format.
|
||||||
|
# This format will support execution of NuttX binaries located
|
||||||
|
# in a ROMFS filesystem (see examples/nxflat).
|
||||||
|
# CONFIG_NXFLAT_DUMPBUFFER. Dump a most buffers that NXFFLAT deals
|
||||||
|
# with. CONFIG_DEBUG, CONFIG_DEBUG_VERBOSE, and
|
||||||
|
# CONFIG_DEBUG_BINFMT have to be defined or
|
||||||
|
# CONFIG_NXFLAT_DUMPBUFFER does nothing.
|
||||||
|
# CONFIG_SYMTAB_ORDEREDBYNAME. Select if the system symbol table
|
||||||
|
# is ordered by symbol name
|
||||||
|
#
|
||||||
|
CONFIG_NXFLAT=n
|
||||||
|
CONFIG_NXFLAT_DUMPBUFFER=n
|
||||||
|
CONFIG_SYMTAB_ORDEREDBYNAME=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# The following can be used to disable categories of
|
# The following can be used to disable categories of
|
||||||
|
@ -463,6 +526,14 @@ CONFIG_ARCH_BZERO=n
|
||||||
# CONFIG_NAME_MAX - The maximum size of a file name.
|
# CONFIG_NAME_MAX - The maximum size of a file name.
|
||||||
# CONFIG_STDIO_BUFFER_SIZE - Size of the buffer to allocate
|
# CONFIG_STDIO_BUFFER_SIZE - Size of the buffer to allocate
|
||||||
# on fopen. (Only if CONFIG_NFILE_STREAMS > 0)
|
# on fopen. (Only if CONFIG_NFILE_STREAMS > 0)
|
||||||
|
# CONFIG_STDIO_LINEBUFFER - If standard C buffered I/O is enabled
|
||||||
|
# (CONFIG_STDIO_BUFFER_SIZE > 0), then this option may be added
|
||||||
|
# to force automatic, line-oriented flushing the output buffer
|
||||||
|
# for putc(), fputc(), putchar(), puts(), fputs(), printf(),
|
||||||
|
# fprintf(), and vfprintf(). When a newline is encountered in
|
||||||
|
# the output string, the output buffer will be flushed. This
|
||||||
|
# (slightly) increases the NuttX footprint but supports the kind
|
||||||
|
# of behavior that people expect for printf().
|
||||||
# CONFIG_NUNGET_CHARS - Number of characters that can be
|
# CONFIG_NUNGET_CHARS - Number of characters that can be
|
||||||
# buffered by ungetc() (Only if CONFIG_NFILE_STREAMS > 0)
|
# buffered by ungetc() (Only if CONFIG_NFILE_STREAMS > 0)
|
||||||
# CONFIG_PREALLOC_MQ_MSGS - The number of pre-allocated message
|
# CONFIG_PREALLOC_MQ_MSGS - The number of pre-allocated message
|
||||||
|
@ -488,6 +559,7 @@ CONFIG_NFILE_DESCRIPTORS=8
|
||||||
CONFIG_NFILE_STREAMS=8
|
CONFIG_NFILE_STREAMS=8
|
||||||
CONFIG_NAME_MAX=32
|
CONFIG_NAME_MAX=32
|
||||||
CONFIG_STDIO_BUFFER_SIZE=256
|
CONFIG_STDIO_BUFFER_SIZE=256
|
||||||
|
CONFIG_STDIO_LINEBUFFER=n
|
||||||
CONFIG_NUNGET_CHARS=2
|
CONFIG_NUNGET_CHARS=2
|
||||||
CONFIG_PREALLOC_MQ_MSGS=4
|
CONFIG_PREALLOC_MQ_MSGS=4
|
||||||
CONFIG_MQ_MAXMSGSIZE=32
|
CONFIG_MQ_MAXMSGSIZE=32
|
||||||
|
@ -500,8 +572,49 @@ CONFIG_PREALLOC_TIMERS=4
|
||||||
#
|
#
|
||||||
# CONFIG_FS_FAT - Enable FAT filesystem support
|
# CONFIG_FS_FAT - Enable FAT filesystem support
|
||||||
# CONFIG_FAT_SECTORSIZE - Max supported sector size
|
# CONFIG_FAT_SECTORSIZE - Max supported sector size
|
||||||
|
# CONFIG_FAT_LCNAMES - Enable use of the NT-style upper/lower case 8.3
|
||||||
|
# file name support.
|
||||||
|
# CONFIG_FAT_LFN - Enable FAT long file names. NOTE: Microsoft claims
|
||||||
|
# patents on FAT long file name technology. Please read the
|
||||||
|
# disclaimer in the top-level COPYING file and only enable this
|
||||||
|
# feature if you understand these issues.
|
||||||
|
# CONFIG_FAT_MAXFNAME - If CONFIG_FAT_LFN is defined, then the
|
||||||
|
# default, maximum long file name is 255 bytes. This can eat up
|
||||||
|
# a lot of memory (especially stack space). If you are willing
|
||||||
|
# to live with some non-standard, short long file names, then
|
||||||
|
# define this value. A good choice would be the same value as
|
||||||
|
# selected for CONFIG_NAME_MAX which will limit the visibility
|
||||||
|
# of longer file names anyway.
|
||||||
|
# CONFIG_FS_NXFFS: Enable NuttX FLASH file system (NXFF) support.
|
||||||
|
# CONFIG_NXFFS_ERASEDSTATE: The erased state of FLASH.
|
||||||
|
# This must have one of the values of 0xff or 0x00.
|
||||||
|
# Default: 0xff.
|
||||||
|
# CONFIG_NXFFS_PACKTHRESHOLD: When packing flash file data,
|
||||||
|
# don't both with file chunks smaller than this number of data bytes.
|
||||||
|
# CONFIG_NXFFS_MAXNAMLEN: The maximum size of an NXFFS file name.
|
||||||
|
# Default: 255.
|
||||||
|
# CONFIG_NXFFS_PACKTHRESHOLD: When packing flash file data,
|
||||||
|
# don't both with file chunks smaller than this number of data bytes.
|
||||||
|
# Default: 32.
|
||||||
|
# CONFIG_NXFFS_TAILTHRESHOLD: clean-up can either mean
|
||||||
|
# packing files together toward the end of the file or, if file are
|
||||||
|
# deleted at the end of the file, clean up can simply mean erasing
|
||||||
|
# the end of FLASH memory so that it can be re-used again. However,
|
||||||
|
# doing this can also harm the life of the FLASH part because it can
|
||||||
|
# mean that the tail end of the FLASH is re-used too often. This
|
||||||
|
# threshold determines if/when it is worth erased the tail end of FLASH
|
||||||
|
# and making it available for re-use (and possible over-wear).
|
||||||
|
# Default: 8192.
|
||||||
# CONFIG_FS_ROMFS - Enable ROMFS filesystem support
|
# CONFIG_FS_ROMFS - Enable ROMFS filesystem support
|
||||||
CONFIG_FS_FAT=y
|
# CONFIG_FS_RAMMAP - For file systems that do not support XIP, this
|
||||||
|
# option will enable a limited form of memory mapping that is
|
||||||
|
# implemented by copying whole files into memory.
|
||||||
|
#
|
||||||
|
CONFIG_FS_FAT=n
|
||||||
|
CONFIG_FAT_LCNAMES=n
|
||||||
|
CONFIG_FAT_LFN=n
|
||||||
|
CONFIG_FAT_MAXFNAME=32
|
||||||
|
CONFIG_FS_NXFFS=n
|
||||||
CONFIG_FS_ROMFS=n
|
CONFIG_FS_ROMFS=n
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -597,6 +710,28 @@ CONFIG_NET_BROADCAST=n
|
||||||
CONFIG_NET_DHCP_LIGHT=n
|
CONFIG_NET_DHCP_LIGHT=n
|
||||||
CONFIG_NET_RESOLV_ENTRIES=4
|
CONFIG_NET_RESOLV_ENTRIES=4
|
||||||
|
|
||||||
|
#
|
||||||
|
# FTP Server
|
||||||
|
#
|
||||||
|
# CONFIG_FTPD_VENDORID - The vendor name to use in FTP communications.
|
||||||
|
# Default: "NuttX"
|
||||||
|
# CONFIG_FTPD_SERVERID - The server name to use in FTP communications.
|
||||||
|
# Default: "NuttX FTP Server"
|
||||||
|
# CONFIG_FTPD_CMDBUFFERSIZE - The maximum size of one command. Default:
|
||||||
|
# 128 bytes.
|
||||||
|
# CONFIG_FTPD_DATABUFFERSIZE - The size of the I/O buffer for data
|
||||||
|
# transfers. Default: 512 bytes.
|
||||||
|
# CONFIG_FTPD_WORKERSTACKSIZE - The stacksize to allocate for each
|
||||||
|
# FTP daemon worker thread. Default: 2048 bytes.
|
||||||
|
#
|
||||||
|
# Other required configuration settings: Of course TCP networking support
|
||||||
|
# is required. But here are a couple that are less obvious:
|
||||||
|
#
|
||||||
|
# CONFIG_DISABLE_PTHREAD - pthread support is required
|
||||||
|
# CONFIG_DISABLE_POLL - poll() support is required
|
||||||
|
#
|
||||||
|
CONFIG_FTPD_CMDBUFFERSIZE=2048
|
||||||
|
|
||||||
#
|
#
|
||||||
# USB Device Configuration
|
# USB Device Configuration
|
||||||
#
|
#
|
||||||
|
@ -757,6 +892,8 @@ CONFIG_EXAMPLES_OSTEST_NBARRIER_THREADS=3
|
||||||
# CONFIG_NSH_DISABLEBG - Disable background commands
|
# CONFIG_NSH_DISABLEBG - Disable background commands
|
||||||
# CONFIG_NSH_ROMFSETC - Use startup script in /etc
|
# CONFIG_NSH_ROMFSETC - Use startup script in /etc
|
||||||
# CONFIG_NSH_CONSOLE - Use serial console front end
|
# CONFIG_NSH_CONSOLE - Use serial console front end
|
||||||
|
# CONFIG_NSH_CONDEV - Select the serial device used to support
|
||||||
|
# the NSH console. Default: stdin and stdout
|
||||||
# CONFIG_NSH_TELNET - Use telnetd console front end
|
# CONFIG_NSH_TELNET - Use telnetd console front end
|
||||||
# CONFIG_NSH_ARCHINIT - Platform provides architecture
|
# CONFIG_NSH_ARCHINIT - Platform provides architecture
|
||||||
# specific initialization (nsh_archinitialize()).
|
# specific initialization (nsh_archinitialize()).
|
||||||
|
@ -787,6 +924,7 @@ CONFIG_NSH_DISABLESCRIPT=n
|
||||||
CONFIG_NSH_DISABLEBG=n
|
CONFIG_NSH_DISABLEBG=n
|
||||||
CONFIG_NSH_ROMFSETC=n
|
CONFIG_NSH_ROMFSETC=n
|
||||||
CONFIG_NSH_CONSOLE=y
|
CONFIG_NSH_CONSOLE=y
|
||||||
|
#CONFIG_NSH_CONDEV="/dev/ttyS1"
|
||||||
CONFIG_NSH_TELNET=n
|
CONFIG_NSH_TELNET=n
|
||||||
CONFIG_NSH_ARCHINIT=y
|
CONFIG_NSH_ARCHINIT=y
|
||||||
CONFIG_NSH_IOBUFFER_SIZE=512
|
CONFIG_NSH_IOBUFFER_SIZE=512
|
||||||
|
@ -811,6 +949,40 @@ CONFIG_NSH_MMCSDSPIPORTNO=0
|
||||||
CONFIG_NSH_MMCSDSLOTNO=0
|
CONFIG_NSH_MMCSDSLOTNO=0
|
||||||
CONFIG_NSH_MMCSDMINOR=0
|
CONFIG_NSH_MMCSDMINOR=0
|
||||||
|
|
||||||
|
#
|
||||||
|
# I2C tool settings
|
||||||
|
#
|
||||||
|
# CONFIG_I2CTOOL_BUILTIN - Build the tools as an NSH built-in command
|
||||||
|
# CONFIG_I2CTOOL_MINBUS - Smallest bus index supported by the hardware (default 0).
|
||||||
|
# CONFIG_I2CTOOL_MAXBUS - Largest bus index supported by the hardware (default 3)
|
||||||
|
# CONFIG_I2CTOOL_MINADDR - Minium device address (default: 0x03)
|
||||||
|
# CONFIG_I2CTOOL_MAXADDR - Largest device address (default: 0x77)
|
||||||
|
# CONFIG_I2CTOOL_MAXREGADDR - Largest register address (default: 0xff)
|
||||||
|
# CONFIG_I2CTOOL_DEFFREQ - Default frequency (default: 1000000)
|
||||||
|
#
|
||||||
|
CONFIG_I2CTOOL_BUILTIN=y
|
||||||
|
CONFIG_I2CTOOL_MINBUS=1
|
||||||
|
CONFIG_I2CTOOL_MAXBUS=3
|
||||||
|
#CONFIG_I2CTOOL_MINADDR
|
||||||
|
#CONFIG_I2CTOOL_MAXADDR
|
||||||
|
#CONFIG_I2CTOOL_MAXREGADDR
|
||||||
|
CONFIG_I2CTOOL_DEFFREQ=100000
|
||||||
|
|
||||||
|
#
|
||||||
|
# Settings for examples/buttons
|
||||||
|
#
|
||||||
|
# CONFIG_EXAMPLE_BUTTONS_MIN and CONFIG_EXAMPLE_BUTTONS_MAX
|
||||||
|
# Lowest and highest button number (0-7)
|
||||||
|
# CONFIG_EXAMPLE_IRQBUTTONS_MIN and CONFIG_EXAMPLE_IRQBUTTONS_MAX
|
||||||
|
# Lowest and highest interrupting button number (-7)
|
||||||
|
# CONFIG_EXAMPLE_BUTTONS_NAMEn - Name for button n
|
||||||
|
#
|
||||||
|
CONFIG_EXAMPLE_BUTTONS_MIN=0
|
||||||
|
CONFIG_EXAMPLE_BUTTONS_MAX=0
|
||||||
|
CONFIG_EXAMPLE_IRQBUTTONS_MIN=0
|
||||||
|
CONFIG_EXAMPLE_IRQBUTTONS_MAX=0
|
||||||
|
CONFIG_EXAMPLE_BUTTONS_NAME1="SW2"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Settings for examples/usbserial
|
# Settings for examples/usbserial
|
||||||
#
|
#
|
||||||
|
@ -834,6 +1006,117 @@ CONFIG_EXAMPLES_USBSERIAL_TRACETRANSFERS=n
|
||||||
CONFIG_EXAMPLES_USBSERIAL_TRACECONTROLLER=n
|
CONFIG_EXAMPLES_USBSERIAL_TRACECONTROLLER=n
|
||||||
CONFIG_EXAMPLES_USBSERIAL_TRACEINTERRUPTS=n
|
CONFIG_EXAMPLES_USBSERIAL_TRACEINTERRUPTS=n
|
||||||
|
|
||||||
|
#
|
||||||
|
# Settings for examples/adc
|
||||||
|
#
|
||||||
|
# CONFIG_ADC - Enabled ADC support
|
||||||
|
# CONFIG_NSH_BUILTIN_APPS - Build the ADC test as an NSH built-in function.
|
||||||
|
# Default: Built as a standalone problem
|
||||||
|
#
|
||||||
|
# CONFIG_EXAMPLES_ADC_DEVPATH - The path to the ADC device. Default: /dev/adc0
|
||||||
|
# CONFIG_EXAMPLES_ADC_NSAMPLES - If CONFIG_NSH_BUILTIN_APPS
|
||||||
|
# is defined, then the number of samples is provided on the command line
|
||||||
|
# and this value is ignored. Otherwise, this number of samples is
|
||||||
|
# collected and the program terminates. Default: Samples are collected
|
||||||
|
# indefinitely.
|
||||||
|
# CONFIG_EXAMPLES_ADC_GROUPSIZE - The number of samples to read at once.
|
||||||
|
# Default: 4
|
||||||
|
|
||||||
|
#
|
||||||
|
# Settings for examples/can
|
||||||
|
#
|
||||||
|
# CONFIG_CAN - Enables CAN support.
|
||||||
|
# CONFIG_CAN_LOOPBACK - A CAN driver may or may not support a loopback
|
||||||
|
# mode for testing. The STM32 CAN driver does support loopback mode.
|
||||||
|
# CONFIG_NSH_BUILTIN_APPS - Build the CAN test as an NSH built-in function.
|
||||||
|
# Default: Built as a standalone problem
|
||||||
|
#
|
||||||
|
# CONFIG_EXAMPLES_CAN_DEVPATH - The path to the CAN device. Default: /dev/can0
|
||||||
|
# CONFIG_EXAMPLES_CAN_NMSGS - If CONFIG_NSH_BUILTIN_APPS
|
||||||
|
# is defined, then the number of loops is provided on the command line
|
||||||
|
# and this value is ignored. Otherwise, this number of CAN message is
|
||||||
|
# collected and the program terminates. Default: If built as an NSH
|
||||||
|
# built-in, the default is 32. Otherwise messages are sent and received
|
||||||
|
# indefinitely.
|
||||||
|
|
||||||
|
#
|
||||||
|
# Settings for examples/watchdog
|
||||||
|
#
|
||||||
|
# This test depends on these specific Watchdog/NSH configurations settings (your
|
||||||
|
# specific watchdog hardware settings might require additional settings).
|
||||||
|
#
|
||||||
|
# CONFIG_WATCHDOG- Enables watchdog timer support support.
|
||||||
|
# CONFIG_NSH_BUILTIN_APPS - Build the watchdog time test as an NSH
|
||||||
|
# built-in function. Default: Not built! The example can only be used
|
||||||
|
# as an NSH built-in application
|
||||||
|
#
|
||||||
|
# The STM32 also needs one of the following enabled:
|
||||||
|
#
|
||||||
|
# CONFIG_STM32_WWDG=y, OR
|
||||||
|
# CONFIG_STM32_IWDG=y (but not both)
|
||||||
|
#
|
||||||
|
# Specific configuration options for this example include:
|
||||||
|
#
|
||||||
|
# CONFIG_EXAMPLES_WATCHDOG_DEVPATH - The path to the Watchdog device.
|
||||||
|
# Default: /dev/watchdog0
|
||||||
|
# CONFIG_EXAMPLES_WATCHDOG_PINGTIME - Time in milliseconds that the example
|
||||||
|
# will ping the watchdog before letting the watchdog expire. Default: 5000
|
||||||
|
# milliseconds
|
||||||
|
# CONFIG_EXAMPLES_WATCHDOG_PINGDELAY - Time delay between pings in
|
||||||
|
# milliseconds. Default: 500 milliseconds.
|
||||||
|
# CONFIG_EXAMPLES_WATCHDOG_TIMEOUT - The watchdog timeout value in
|
||||||
|
# milliseconds before the watchdog timer expires. Default: 2000
|
||||||
|
# milliseconds.
|
||||||
|
#
|
||||||
|
# CONFIG_EXAMPLES_WATCHDOG_DEVPATH
|
||||||
|
# CONFIG_EXAMPLES_WATCHDOG_PINGTIME
|
||||||
|
# CONFIG_EXAMPLES_WATCHDOG_PINGDELAY
|
||||||
|
# CONFIG_EXAMPLES_WATCHDOG_TIMEOUT
|
||||||
|
|
||||||
|
#
|
||||||
|
# Settings for examples/pwm
|
||||||
|
#
|
||||||
|
# CONFIG_PWM - Enables PWM support.
|
||||||
|
# CONFIG_NSH_BUILTIN_APPS - Build the PWM test as an NSH built-in function.
|
||||||
|
# Default: Not built! The example can only be used as an NSH built-in
|
||||||
|
# application
|
||||||
|
#
|
||||||
|
# CONFIG_EXAMPLES_PWM_DEVPATH - The path to the PWM device. Default: /dev/pwm0
|
||||||
|
# CONFIG_EXAMPLES_PWM_FREQUENCY - The initial PWM frequency. Default: 100 Hz
|
||||||
|
# CONFIG_EXAMPLES_PWM_DUTYPCT - The initial PWM duty as a percentage. Default: 50%
|
||||||
|
# CONFIG_EXAMPLES_PWM_DURATION - The initial PWM pulse train duration in sectonds.
|
||||||
|
# as a percentage. Default: 5 seconds
|
||||||
|
|
||||||
|
#
|
||||||
|
# Settings for examples/ftpd
|
||||||
|
#
|
||||||
|
# CONFIG_EXAMPLES_FTPD_PRIO - Priority of the FTP daemon.
|
||||||
|
# Default: SCHED_PRIORITY_DEFAULT
|
||||||
|
# CONFIG_EXAMPLES_FTPD_STACKSIZE - Stack size allocated for the
|
||||||
|
# FTP daemon. Default: 2048
|
||||||
|
# CONFIG_EXAMPLES_FTPD_NONETINIT - Define to suppress configuration of the
|
||||||
|
# network by apps/examples/ftpd. You would need to suppress network
|
||||||
|
# configuration if the network is configuration prior to running the
|
||||||
|
# example.
|
||||||
|
#
|
||||||
|
# NSH always initializes the network so if CONFIG_NSH_BUILTIN_APPS is
|
||||||
|
# defined, so is CONFIG_EXAMPLES_FTPD_NONETINIT (se it does not explicitly
|
||||||
|
# need to be defined in that case):
|
||||||
|
#
|
||||||
|
# CONFIG_NSH_BUILTIN_APPS - Build the FTPD daemon example test as an
|
||||||
|
# NSH built-in function. By default the FTPD daemon will be built
|
||||||
|
# as a standalone application.
|
||||||
|
#
|
||||||
|
# If CONFIG_EXAMPLES_FTPD_NONETINIT is not defined, then the following may
|
||||||
|
# be specified to customized the network configuration:
|
||||||
|
#
|
||||||
|
# CONFIG_EXAMPLE_FTPD_NOMAC - If the hardware has no MAC address of its
|
||||||
|
# own, define this =y to provide a bogus address for testing.
|
||||||
|
# CONFIG_EXAMPLE_FTPD_IPADDR - The target IP address. Default 10.0.0.2
|
||||||
|
# CONFIG_EXAMPLE_FTPD_DRIPADDR - The default router address. Default
|
||||||
|
# 10.0.0.1
|
||||||
|
# CONFIG_EXAMPLE_FTPD_NETMASK - The network mask. Default: 255.255.255.0
|
||||||
|
|
||||||
#
|
#
|
||||||
# Stack and heap information
|
# Stack and heap information
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue