Add interrupt vector logic for the LM4F120

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5693 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2013-03-01 21:41:29 +00:00
parent 258a86f740
commit ae71c35e5a
31 changed files with 140 additions and 192 deletions
+13
View File
@@ -200,6 +200,15 @@ config ARCH_BOARD_LM3S8962EK
---help--- ---help---
Stellaris LMS38962 Evaluation Kit. Stellaris LMS38962 Evaluation Kit.
config ARCH_BOARD_LM4F120_LAUNCHPAD
bool "Stellaris LM4F120 LaunchPad"
depends on ARCH_CHIP_LM4F120
select ARCH_HAVE_LEDS
select ARCH_HAVE_BUTTONS
select ARCH_HAVE_IRQBUTTONS
---help---
Stellaris LM4F120 LaunchPad.
config ARCH_BOARD_LPCXPRESSO config ARCH_BOARD_LPCXPRESSO
bool "NXP LPCExpresso LPC1768" bool "NXP LPCExpresso LPC1768"
depends on ARCH_CHIP_LPC1768 depends on ARCH_CHIP_LPC1768
@@ -700,6 +709,7 @@ config ARCH_BOARD
default "lm3s6432-s2e" if ARCH_BOARD_LM3S6432S2E default "lm3s6432-s2e" if ARCH_BOARD_LM3S6432S2E
default "lm3s6965-ek" if ARCH_BOARD_LM3S6965EK default "lm3s6965-ek" if ARCH_BOARD_LM3S6965EK
default "lm3s8962-ek" if ARCH_BOARD_LM3S8962EK default "lm3s8962-ek" if ARCH_BOARD_LM3S8962EK
default "lm4f120-launchpad" if ARCH_BOARD_LM4F120_LAUNCHPAD
default "lpc4330-xplorer" if ARCH_BOARD_LPC4330_XPLORER default "lpc4330-xplorer" if ARCH_BOARD_LPC4330_XPLORER
default "lpcxpresso-lpc1768" if ARCH_BOARD_LPCXPRESSO default "lpcxpresso-lpc1768" if ARCH_BOARD_LPCXPRESSO
default "m68322evb" if ARCH_BOARD_M68332EVB default "m68322evb" if ARCH_BOARD_M68332EVB
@@ -861,6 +871,9 @@ endif
if ARCH_BOARD_LM3S8962EK if ARCH_BOARD_LM3S8962EK
source "configs/lm3s8962-ek/Kconfig" source "configs/lm3s8962-ek/Kconfig"
endif endif
if ARCH_BOARD_LM3S8962EK
source "configs/lm4f120-launchpad/Kconfig"
endif
if ARCH_BOARD_LPC4330_XPLORER if ARCH_BOARD_LPC4330_XPLORER
source "configs/lpc4330-xplorer/Kconfig" source "configs/lpc4330-xplorer/Kconfig"
endif endif
+10
View File
@@ -1781,6 +1781,12 @@ configs/lm3s6965-ek
configs/lm3s8962-ek configs/lm3s8962-ek
Stellaris LMS38962 Evaluation Kit. Stellaris LMS38962 Evaluation Kit.
configs/lm4f120-launchpad
This is the port of NuttX to the Stellaris LM4F120 LaunchPad. The
Stellaris® LM4F120 LaunchPad Evaluation Board is a low-cost evaluation
platform for ARM® Cortex™-M4F-based microcontrollers from Texas\
Instruments.
configs/lpcxpresso-lpc1768 configs/lpcxpresso-lpc1768
Embedded Artists base board with NXP LPCExpresso LPC1768. This board Embedded Artists base board with NXP LPCExpresso LPC1768. This board
is based on the NXP LPC1768. The Code Red toolchain is used by default. is based on the NXP LPC1768. The Code Red toolchain is used by default.
@@ -1846,6 +1852,10 @@ configs/nucleus2g
features an NXP LPC1768 processor. See the 2G website (http://www.2g-eng.com/) features an NXP LPC1768 processor. See the 2G website (http://www.2g-eng.com/)
for more information about the Nucleus 2G. for more information about the Nucleus 2G.
configs/nutiny-nuc120
This is the port of NuttX to the NuvoTon NuTiny-SDK-NUC120 board. This
board has the NUC120LE3AN chip with a built-in NuLink debugger.
configs/olimex-lpc1766stk configs/olimex-lpc1766stk
This port uses the Olimex LPC1766-STK board and a GNU GCC toolchain* under This port uses the Olimex LPC1766-STK board and a GNU GCC toolchain* under
Linux or Cygwin. STATUS: Complete and mature. Linux or Cygwin. STATUS: Complete and mature.
-6
View File
@@ -4,10 +4,4 @@
# #
if ARCH_BOARD_C5471EVM if ARCH_BOARD_C5471EVM
config ARCH_LEDS
bool "NuttX LED support"
default n
---help---
"Support control of board LEDs by NuttX to indicate system state"
endif endif
-6
View File
@@ -4,10 +4,4 @@
# #
if ARCH_BOARD_EAGLE100 if ARCH_BOARD_EAGLE100
config ARCH_LEDS
bool "NuttX LED support"
default n
---help---
"Support control of board LEDs by NuttX to indicate system state"
endif endif
-6
View File
@@ -4,10 +4,4 @@
# #
if ARCH_BOARD_LM3S6432S2E if ARCH_BOARD_LM3S6432S2E
config ARCH_LEDS
bool "NuttX LED support"
default n
---help---
"Support control of board LEDs by NuttX to indicate system state"
endif endif
-6
View File
@@ -4,10 +4,4 @@
# #
if ARCH_BOARD_LM3S6965EK if ARCH_BOARD_LM3S6965EK
config ARCH_LEDS
bool "NuttX LED support"
default n
---help---
"Support control of board LEDs by NuttX to indicate system state"
endif endif
-6
View File
@@ -4,10 +4,4 @@
# #
if ARCH_BOARD_LM3S8962EK if ARCH_BOARD_LM3S8962EK
config ARCH_LEDS
bool "NuttX LED support"
default n
---help---
"Support control of board LEDs by NuttX to indicate system state"
endif endif
+1 -7
View File
@@ -3,11 +3,5 @@
# see misc/tools/kconfig-language.txt. # see misc/tools/kconfig-language.txt.
# #
if ARCH_BOARD_LM4FLAUNCHPAD if ARCH_BOARD_LM4F120_LAUNCHPAD
config ARCH_LEDS
bool "NuttX LED support"
default n
---help---
"Support control of board LEDs by NuttX to indicate system state"
endif endif
+1 -1
View File
@@ -512,7 +512,7 @@ LM4F120 LaunchPad Configuration Options
CONFIG_ARCH_BOARD_name - For use in C code CONFIG_ARCH_BOARD_name - For use in C code
CONFIG_ARCH_BOARD_LM4FLAUNCHPAD CONFIG_ARCH_BOARD_LM4F120_LAUNCHPAD
CONFIG_ARCH_LOOPSPERMSEC - Must be calibrated for correct operation CONFIG_ARCH_LOOPSPERMSEC - Must be calibrated for correct operation
of delay loops of delay loops
+1 -1
View File
@@ -142,7 +142,7 @@
#define LED_INIRQ 2 /* NC NC ON (momentary) */ #define LED_INIRQ 2 /* NC NC ON (momentary) */
#define LED_SIGNAL 2 /* NC NC ON (momentary) */ #define LED_SIGNAL 2 /* NC NC ON (momentary) */
#define LED_ASSERTION 3 /* ON NC NC (momentary) */ #define LED_ASSERTION 3 /* ON NC NC (momentary) */
#define LED_PANIC 3 /* ON OFF OFF (flashing 2Hz) */ #define LED_PANIC 4 /* ON OFF OFF (flashing 2Hz) */
/* LED definitions ******************************************************************/ /* LED definitions ******************************************************************/
/* The LM32F120 has a two buttons: /* The LM32F120 has a two buttons:
+47 -29
View File
@@ -66,22 +66,22 @@ CONFIG_ARCH="arm"
# CONFIG_ARCH_CHIP_IMX is not set # CONFIG_ARCH_CHIP_IMX is not set
# CONFIG_ARCH_CHIP_KINETIS is not set # CONFIG_ARCH_CHIP_KINETIS is not set
CONFIG_ARCH_CHIP_LM=y CONFIG_ARCH_CHIP_LM=y
CONFIG_ARCH_CHIP_LM4F=y
# CONFIG_ARCH_CHIP_LPC17XX is not set # CONFIG_ARCH_CHIP_LPC17XX is not set
# CONFIG_ARCH_CHIP_LPC214X is not set # CONFIG_ARCH_CHIP_LPC214X is not set
# CONFIG_ARCH_CHIP_LPC2378 is not set # CONFIG_ARCH_CHIP_LPC2378 is not set
# CONFIG_ARCH_CHIP_LPC31XX is not set # CONFIG_ARCH_CHIP_LPC31XX is not set
# CONFIG_ARCH_CHIP_LPC43XX is not set # CONFIG_ARCH_CHIP_LPC43XX is not set
# CONFIG_ARCH_CHIP_NUC1XX is not set
# CONFIG_ARCH_CHIP_SAM3U is not set # CONFIG_ARCH_CHIP_SAM3U is not set
# CONFIG_ARCH_CHIP_STM32 is not set # CONFIG_ARCH_CHIP_STM32 is not set
# CONFIG_ARCH_CHIP_STR71X is not set # CONFIG_ARCH_CHIP_STR71X is not set
CONFIG_ARCH_CORTEXM4=y CONFIG_ARCH_CORTEXM4=y
CONFIG_ARCH_FAMILY="armv7-m" CONFIG_ARCH_FAMILY="armv7-m"
CONFIG_ARCH_CHIP="lm" CONFIG_ARCH_CHIP="lm"
# CONFIG_ARMV7M_USEBASEPRI is not set
# CONFIG_ARCH_FPU is not set
CONFIG_ARCH_HAVE_MPU=y CONFIG_ARCH_HAVE_MPU=y
# CONFIG_ARMV7M_MPU is not set # CONFIG_ARMV7M_MPU is not set
CONFIG_BOARD_LOOPSPERMSEC=4531
# CONFIG_ARCH_CALIBRATION is not set
# #
# ARMV7M Configuration Options # ARMV7M Configuration Options
@@ -98,12 +98,14 @@ CONFIG_ARMV7M_OABI_TOOLCHAIN=y
# CONFIG_ARCH_CHIP_LM3S6918 is not set # CONFIG_ARCH_CHIP_LM3S6918 is not set
# CONFIG_ARCH_CHIP_LM3S9B96 is not set # CONFIG_ARCH_CHIP_LM3S9B96 is not set
# CONFIG_ARCH_CHIP_LM3S6432 is not set # CONFIG_ARCH_CHIP_LM3S6432 is not set
CONFIG_ARCH_CHIP_LM4F120=y # CONFIG_ARCH_CHIP_LM3S6965 is not set
# CONFIG_ARCH_CHIP_LM3S8962 is not set # CONFIG_ARCH_CHIP_LM3S8962 is not set
CONFIG_ARCH_CHIP_LM4F120=y
CONFIG_ARCH_CHIP_LM4F=y
# CONFIG_LM_REVA2 is not set # CONFIG_LM_REVA2 is not set
# #
# Select Stellaris Peripheral Support # Stellaris Peripheral Support
# #
CONFIG_LM_UART0=y CONFIG_LM_UART0=y
# CONFIG_LM_UART1 is not set # CONFIG_LM_UART1 is not set
@@ -130,23 +132,30 @@ CONFIG_LM_DISABLE_GPIOJ_IRQS=y
# #
CONFIG_SSI_POLLWAIT=y CONFIG_SSI_POLLWAIT=y
CONFIG_SSI_TXLIMIT=4 CONFIG_SSI_TXLIMIT=4
# CONFIG_SDIO_DMA is not set
# CONFIG_SDIO_WIDTH_D1_ONLY is not set #
# External Memory Configuration
#
# #
# Architecture Options # Architecture Options
# #
# CONFIG_ARCH_NOINTC is not set # CONFIG_ARCH_NOINTC is not set
# CONFIG_ARCH_VECNOTIRQ is not set
# CONFIG_ARCH_DMA is not set # CONFIG_ARCH_DMA is not set
CONFIG_ARCH_IRQPRIO=y CONFIG_ARCH_IRQPRIO=y
# CONFIG_CUSTOM_STACK is not set # CONFIG_CUSTOM_STACK is not set
# CONFIG_ADDRENV is not set # CONFIG_ADDRENV is not set
CONFIG_ARCH_HAVE_VFORK=y
CONFIG_ARCH_STACKDUMP=y CONFIG_ARCH_STACKDUMP=y
# CONFIG_ENDIAN_BIG is not set # CONFIG_ENDIAN_BIG is not set
# CONFIG_ARCH_HAVE_RAMFUNCS is not set
# #
# Board Settings # Board Settings
# #
CONFIG_BOARD_LOOPSPERMSEC=4531
# CONFIG_ARCH_CALIBRATION is not set
CONFIG_DRAM_START=0x20000000 CONFIG_DRAM_START=0x20000000
CONFIG_DRAM_SIZE=65536 CONFIG_DRAM_SIZE=65536
CONFIG_ARCH_HAVE_INTERRUPTSTACK=y CONFIG_ARCH_HAVE_INTERRUPTSTACK=y
@@ -164,7 +173,7 @@ CONFIG_BOOT_RUNFROMFLASH=y
# #
# Board Selection # Board Selection
# #
CONFIG_ARCH_BOARD_LM4FLAUNCHPAD=y CONFIG_ARCH_BOARD_LM4F120_LAUNCHPAD=y
# CONFIG_ARCH_BOARD_CUSTOM is not set # CONFIG_ARCH_BOARD_CUSTOM is not set
CONFIG_ARCH_BOARD="lm4f120-launchpad" CONFIG_ARCH_BOARD="lm4f120-launchpad"
@@ -173,6 +182,9 @@ CONFIG_ARCH_BOARD="lm4f120-launchpad"
# #
CONFIG_ARCH_HAVE_LEDS=y CONFIG_ARCH_HAVE_LEDS=y
CONFIG_ARCH_LEDS=y CONFIG_ARCH_LEDS=y
CONFIG_ARCH_HAVE_BUTTONS=y
# CONFIG_ARCH_BUTTONS is not set
CONFIG_ARCH_HAVE_IRQBUTTONS=y
# #
# Board-Specific Options # Board-Specific Options
@@ -181,10 +193,12 @@ CONFIG_ARCH_LEDS=y
# #
# RTOS Features # RTOS Features
# #
# CONFIG_BOARD_INITIALIZE is not set
CONFIG_MSEC_PER_TICK=10 CONFIG_MSEC_PER_TICK=10
CONFIG_RR_INTERVAL=200 CONFIG_RR_INTERVAL=200
# CONFIG_SCHED_INSTRUMENTATION is not set # CONFIG_SCHED_INSTRUMENTATION is not set
CONFIG_TASK_NAME_SIZE=0 CONFIG_TASK_NAME_SIZE=0
# CONFIG_SCHED_HAVE_PARENT is not set
# CONFIG_JULIAN_TIME is not set # CONFIG_JULIAN_TIME is not set
CONFIG_START_YEAR=2010 CONFIG_START_YEAR=2010
CONFIG_START_MONTH=5 CONFIG_START_MONTH=5
@@ -197,6 +211,7 @@ CONFIG_DEV_CONSOLE=y
CONFIG_SDCLONE_DISABLE=y CONFIG_SDCLONE_DISABLE=y
# CONFIG_SCHED_WORKQUEUE is not set # CONFIG_SCHED_WORKQUEUE is not set
# CONFIG_SCHED_WAITPID is not set # CONFIG_SCHED_WAITPID is not set
# CONFIG_SCHED_STARTHOOK is not set
# CONFIG_SCHED_ATEXIT is not set # CONFIG_SCHED_ATEXIT is not set
# CONFIG_SCHED_ONEXIT is not set # CONFIG_SCHED_ONEXIT is not set
CONFIG_USER_ENTRYPOINT="ostest_main" CONFIG_USER_ENTRYPOINT="ostest_main"
@@ -206,9 +221,15 @@ CONFIG_DISABLE_OS_API=y
# CONFIG_DISABLE_PTHREAD is not set # CONFIG_DISABLE_PTHREAD is not set
# CONFIG_DISABLE_SIGNALS is not set # CONFIG_DISABLE_SIGNALS is not set
# CONFIG_DISABLE_MQUEUE is not set # CONFIG_DISABLE_MQUEUE is not set
CONFIG_DISABLE_MOUNTPOINT=y
CONFIG_DISABLE_ENVIRON=y CONFIG_DISABLE_ENVIRON=y
CONFIG_DISABLE_POLL=y
#
# Signal Numbers
#
CONFIG_SIG_SIGUSR1=1
CONFIG_SIG_SIGUSR2=2
CONFIG_SIG_SIGALARM=3
CONFIG_SIG_SIGCONDTIMEDOUT=16
# #
# Sizes of configurable things (0 disables) # Sizes of configurable things (0 disables)
@@ -236,6 +257,7 @@ CONFIG_PTHREAD_STACK_DEFAULT=2048
# #
# Device Drivers # Device Drivers
# #
CONFIG_DISABLE_POLL=y
CONFIG_DEV_NULL=y CONFIG_DEV_NULL=y
# CONFIG_DEV_ZERO is not set # CONFIG_DEV_ZERO is not set
# CONFIG_LOOP is not set # CONFIG_LOOP is not set
@@ -250,16 +272,7 @@ CONFIG_DEV_NULL=y
# CONFIG_BCH is not set # CONFIG_BCH is not set
# CONFIG_INPUT is not set # CONFIG_INPUT is not set
# CONFIG_LCD is not set # CONFIG_LCD is not set
CONFIG_MMCSD=y # CONFIG_MMCSD is not set
CONFIG_MMCSD_NSLOTS=1
# CONFIG_MMCSD_READONLY is not set
# CONFIG_MMCSD_MULTIBLOCK_DISABLE is not set
CONFIG_MMCSD_MMCSUPPORT=y
CONFIG_MMCSD_HAVECARDDETECT=y
CONFIG_MMCSD_SPI=y
CONFIG_MMCSD_SPICLOCK=12500000
# CONFIG_MMCSD_SDIO is not set
# CONFIG_SDIO_MUXBUS is not set
# CONFIG_MTD is not set # CONFIG_MTD is not set
# CONFIG_PIPES is not set # CONFIG_PIPES is not set
# CONFIG_PM is not set # CONFIG_PM is not set
@@ -308,11 +321,13 @@ CONFIG_UART0_2STOP=0
# #
# File system configuration # File system configuration
# #
CONFIG_DISABLE_MOUNTPOINT=y
# CONFIG_FS_RAMMAP is not set # CONFIG_FS_RAMMAP is not set
# #
# System Logging # System Logging
# #
# CONFIG_SYSLOG_ENABLE is not set
# CONFIG_SYSLOG is not set # CONFIG_SYSLOG is not set
# #
@@ -333,6 +348,7 @@ CONFIG_MM_REGIONS=1
# CONFIG_BINFMT_DISABLE is not set # CONFIG_BINFMT_DISABLE is not set
# CONFIG_NXFLAT is not set # CONFIG_NXFLAT is not set
# CONFIG_ELF is not set # CONFIG_ELF is not set
# CONFIG_BUILTIN is not set
# CONFIG_PIC is not set # CONFIG_PIC is not set
# CONFIG_SYMTAB_ORDEREDBYNAME is not set # CONFIG_SYMTAB_ORDEREDBYNAME is not set
@@ -353,6 +369,9 @@ CONFIG_NUNGET_CHARS=2
# CONFIG_EOL_IS_LF is not set # CONFIG_EOL_IS_LF is not set
# CONFIG_EOL_IS_BOTH_CRLF is not set # CONFIG_EOL_IS_BOTH_CRLF is not set
CONFIG_EOL_IS_EITHER_CRLF=y CONFIG_EOL_IS_EITHER_CRLF=y
# CONFIG_LIBC_EXECFUNCS is not set
CONFIG_POSIX_SPAWN_PROXY_STACKSIZE=1024
CONFIG_TASK_SPAWN_DEFAULT_STACKSIZE=2048
# CONFIG_LIBC_STRERROR is not set # CONFIG_LIBC_STRERROR is not set
# CONFIG_LIBC_PERROR_STDOUT is not set # CONFIG_LIBC_PERROR_STDOUT is not set
CONFIG_ARCH_LOWPUTC=y CONFIG_ARCH_LOWPUTC=y
@@ -378,14 +397,12 @@ CONFIG_LIB_SENDFILE_BUFSIZE=512
# #
# Built-In Applications # Built-In Applications
# #
# CONFIG_BUILTIN is not set
# #
# Examples # Examples
# #
# CONFIG_EXAMPLES_BUTTONS is not set # CONFIG_EXAMPLES_BUTTONS is not set
# CONFIG_EXAMPLES_CAN is not set # CONFIG_EXAMPLES_CAN is not set
# CONFIG_EXAMPLES_CDCACM is not set
# CONFIG_EXAMPLES_COMPOSITE is not set # CONFIG_EXAMPLES_COMPOSITE is not set
# CONFIG_EXAMPLES_DHCPD is not set # CONFIG_EXAMPLES_DHCPD is not set
# CONFIG_EXAMPLES_ELF is not set # CONFIG_EXAMPLES_ELF is not set
@@ -401,7 +418,6 @@ CONFIG_LIB_SENDFILE_BUFSIZE=512
# CONFIG_EXAMPLES_MM is not set # CONFIG_EXAMPLES_MM is not set
# CONFIG_EXAMPLES_MOUNT is not set # CONFIG_EXAMPLES_MOUNT is not set
# CONFIG_EXAMPLES_MODBUS is not set # CONFIG_EXAMPLES_MODBUS is not set
# CONFIG_EXAMPLES_NETTEST is not set
# CONFIG_EXAMPLES_NSH is not set # CONFIG_EXAMPLES_NSH is not set
# CONFIG_EXAMPLES_NULL is not set # CONFIG_EXAMPLES_NULL is not set
# CONFIG_EXAMPLES_NX is not set # CONFIG_EXAMPLES_NX is not set
@@ -422,6 +438,7 @@ CONFIG_EXAMPLES_OSTEST_RR_RUNS=10
# CONFIG_EXAMPLES_PASHELLO is not set # CONFIG_EXAMPLES_PASHELLO is not set
# CONFIG_EXAMPLES_PIPE is not set # CONFIG_EXAMPLES_PIPE is not set
# CONFIG_EXAMPLES_POLL is not set # CONFIG_EXAMPLES_POLL is not set
# CONFIG_EXAMPLES_POSIXSPAWN is not set
# CONFIG_EXAMPLES_QENCODER is not set # CONFIG_EXAMPLES_QENCODER is not set
# CONFIG_EXAMPLES_RGMP is not set # CONFIG_EXAMPLES_RGMP is not set
# CONFIG_EXAMPLES_ROMFS is not set # CONFIG_EXAMPLES_ROMFS is not set
@@ -439,8 +456,9 @@ CONFIG_EXAMPLES_OSTEST_RR_RUNS=10
# CONFIG_EXAMPLES_WATCHDOG is not set # CONFIG_EXAMPLES_WATCHDOG is not set
# #
# Interpreters # Graphics Support
# #
# CONFIG_TIFF is not set
# #
# Interpreters # Interpreters
@@ -470,11 +488,7 @@ CONFIG_EXAMPLES_OSTEST_RR_RUNS=10
# CONFIG_NETUTILS_WEBCLIENT is not set # CONFIG_NETUTILS_WEBCLIENT is not set
# #
# ModBus # FreeModBus
#
#
# FreeModbus
# #
# CONFIG_MODBUS is not set # CONFIG_MODBUS is not set
@@ -529,3 +543,7 @@ CONFIG_EXAMPLES_OSTEST_RR_RUNS=10
# Sysinfo # Sysinfo
# #
# CONFIG_SYSTEM_SYSINFO is not set # CONFIG_SYSTEM_SYSINFO is not set
#
# USB Monitor
#
+29 -5
View File
@@ -32,15 +32,39 @@
# POSSIBILITY OF SUCH DAMAGE. # POSSIBILITY OF SUCH DAMAGE.
# #
if [ "$(basename $0)" = "setenv.sh" ] ; then if [ "$_" = "$0" ] ; then
echo "You must source this script, not run it!" 1>&2 echo "You must source this script, not run it!" 1>&2
exit 1 exit 1
fi fi
if [ -z "${PATH_ORIG}" ]; then export PATH_ORIG="${PATH}"; fi
WD=`pwd` WD=`pwd`
export BUILDROOT_BIN="${WD}/../misc/buildroot/build_arm_nofpu/staging_dir/bin" if [ ! -x "setenv.sh" ]; then
export PATH="${BUILDROOT_BIN}:/sbin:/usr/sbin:${PATH_ORIG}" 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 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"
# 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"
# This is the Cygwin path to the location where I build the buildroot
# toolchain.
export TOOLCHAIN_BIN="${WD}/../misc/buildroot/build_arm_nofpu/staging_dir/bin"
# Add the path to the toolchain to the PATH varialble
export PATH="${TOOLCHAIN_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
echo "PATH : ${PATH}" echo "PATH : ${PATH}"
+22 -26
View File
@@ -93,7 +93,7 @@
* LED_INIRQ 2 NC NC ON (momentary) * LED_INIRQ 2 NC NC ON (momentary)
* LED_SIGNAL 2 NC NC ON (momentary) * LED_SIGNAL 2 NC NC ON (momentary)
* LED_ASSERTION 3 ON NC NC (momentary) * LED_ASSERTION 3 ON NC NC (momentary)
* LED_PANIC 3 ON OFF OFF (flashing 2Hz) * LED_PANIC 4 ON OFF OFF (flashing 2Hz)
*/ */
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG /* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG
@@ -130,6 +130,10 @@
/**************************************************************************** /****************************************************************************
* Name: lm4f_ledinit * Name: lm4f_ledinit
*
* Description:
* Called to initialize the on-board LEDs.
*
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_ARCH_LEDS #ifdef CONFIG_ARCH_LEDS
@@ -157,35 +161,31 @@ void up_ledon(int led)
/* All components stay off until the file initialization step */ /* All components stay off until the file initialization step */
default: default:
case LED_STARTED: case 0:
case LED_HEAPALLOCATE:
case LED_IRQSENABLED:
default:
break; break;
/* The GREEN component is illuminated at the final initialization step */ /* The GREEN component is illuminated at the final initialization step */
case LED_STACKCREATED: case 1:
lm_gpiowrite(GPIO_LED_GREEN, false); lm_gpiowrite(GPIO_LED_G, false);
break; break;
/* These will illuminate the BLUE component with on effect no RED and GREEN */ /* These will illuminate the BLUE component with on effect no RED and GREEN */
case LED_INIRQ: case 2:
case LED_SIGNAL: lm_gpiowrite(GPIO_LED_B, false);
lm_gpiowrite(GPIO_LED_BLUE, false);
break; break;
/* This will turn off RED and GREEN and turn RED on */ /* This will turn off RED and GREEN and turn RED on */
case LED_PANIC: case 4:
lm_gpiowrite(GPIO_LED_GREEN, true); lm_gpiowrite(GPIO_LED_G, true);
lm_gpiowrite(GPIO_LED_BLUE, true); lm_gpiowrite(GPIO_LED_B, true);
/* This will illuminate the RED component with no effect on RED and GREEN */ /* This will illuminate the RED component with no effect on RED and GREEN */
case LED_ASSERTION: case 3:
lm_gpiowrite(GPIO_LED_RED, false); lm_gpiowrite(GPIO_LED_R, false);
break; break;
} }
} }
@@ -201,25 +201,21 @@ void up_ledoff(int led)
/* These should not happen and are ignored */ /* These should not happen and are ignored */
default: default:
case LED_STARTED: case 0:
case LED_HEAPALLOCATE: case 1:
case LED_IRQSENABLED:
case LED_STACKCREATED:
default:
break; break;
/* These will extinguish the BLUE component with no effect on RED and GREEN */ /* These will extinguish the BLUE component with no effect on RED and GREEN */
case LED_INIRQ: case 2:
case LED_SIGNAL: lm_gpiowrite(GPIO_LED_B, true);
lm_gpiowrite(GPIO_LED_BLUE, true);
break; break;
/* These will extinguish the RED component with on effect on RED and GREEN */ /* These will extinguish the RED component with on effect on RED and GREEN */
case LED_INIRQ: case 3:
case LED_SIGNAL: case 4:
lm_gpiowrite(GPIO_LED_RED, true); lm_gpiowrite(GPIO_LED_R, true);
break; break;
} }
} }
+1 -1
View File
@@ -55,7 +55,7 @@
/* PORT and SLOT number probably depend on the board configuration */ /* PORT and SLOT number probably depend on the board configuration */
#ifdef CONFIG_ARCH_BOARD_LM4FLAUNCHPAD #ifdef CONFIG_ARCH_BOARD_LM4F120_LAUNCHPAD
# undef NSH_HAVEUSBDEV # undef NSH_HAVEUSBDEV
#else #else
# error "Unrecognized lm3s board" # error "Unrecognized lm3s board"
+1 -2
View File
@@ -54,7 +54,7 @@
/* The LM4F LaunchPad microSD CS is on SSI0 */ /* The LM4F LaunchPad microSD CS is on SSI0 */
#if !defined(CONFIG_SSI0_DISABLE) || !defined(CONFIG_SSI1_DISABLE) #if !defined(CONFIG_SSI0_DISABLE) || !defined(CONFIG_SSI1_DISABLE)
/************************************************************************************ /************************************************************************************
* Definitions * Definitions
@@ -64,7 +64,6 @@
#ifdef CONFIG_DEBUG_SPI #ifdef CONFIG_DEBUG_SPI
# define ssidbg lldbg # define ssidbg lldbg
# endif
#else #else
# define ssidbg(x...) # define ssidbg(x...)
#endif #endif
@@ -136,7 +136,19 @@
* *
************************************************************************************/ ************************************************************************************/
extern void weak_function lm4f_ssiinitialize(void); void weak_function lm4f_ssiinitialize(void);
/****************************************************************************
* Name: lm4f_ledinit
*
* Description:
* Called to initialize the on-board LEDs.
*
****************************************************************************/
#ifdef CONFIG_ARCH_LEDS
void lm4f_ledinit(void);
#endif
#endif /* __ASSEMBLY__ */ #endif /* __ASSEMBLY__ */
#endif /* __CONFIGS_LM4F120_LAUNCHPAD_LM4F120_LAUNCHPAD_H */ #endif /* __CONFIGS_LM4F120_LAUNCHPAD_LM4F120_LAUNCHPAD_H */
-6
View File
@@ -4,10 +4,4 @@
# #
if ARCH_BOARD_LPCXPRESSO if ARCH_BOARD_LPCXPRESSO
config ARCH_LEDS
bool "NuttX LED support"
default n
---help---
"Support control of board LEDs by NuttX to indicate system state"
endif endif
-6
View File
@@ -4,10 +4,4 @@
# #
if ARCH_BOARD_MBED if ARCH_BOARD_MBED
config ARCH_LEDS
bool "NuttX LED support"
default n
---help---
"Support control of board LEDs by NuttX to indicate system state"
endif endif
-6
View File
@@ -4,10 +4,4 @@
# #
if ARCH_BOARD_MCU123 if ARCH_BOARD_MCU123
config ARCH_LEDS
bool "NuttX LED support"
default n
---help---
"Support control of board LEDs by NuttX to indicate system state"
endif endif
+1 -5
View File
@@ -4,15 +4,11 @@
# #
if ARCH_BOARD_MIRTOO if ARCH_BOARD_MIRTOO
config ARCH_LEDS
bool "NuttX LED support"
default n
---help---
"Support control of board LEDs by NuttX to indicate system state"
config MIRTOO_RELEASE config MIRTOO_RELEASE
int "Mirtoo Release 1 (R1)" int "Mirtoo Release 1 (R1)"
default 2 default 2
---help--- ---help---
Select the Mirtoo release number Select the Mirtoo release number
endif endif
-6
View File
@@ -4,10 +4,4 @@
# #
if ARCH_BOARD_MX1ADS if ARCH_BOARD_MX1ADS
config ARCH_LEDS
bool "NuttX LED support"
default n
---help---
"Support control of board LEDs by NuttX to indicate system state"
endif endif
-6
View File
@@ -4,10 +4,4 @@
# #
if ARCH_BOARD_NTOSD_DM320 if ARCH_BOARD_NTOSD_DM320
config ARCH_LEDS
bool "NuttX LED support"
default n
---help---
"Support control of board LEDs by NuttX to indicate system state"
endif endif
-6
View File
@@ -4,10 +4,4 @@
# #
if ARCH_BOARD_NUCLEUS2G if ARCH_BOARD_NUCLEUS2G
config ARCH_LEDS
bool "NuttX LED support"
default n
---help---
"Support control of board LEDs by NuttX to indicate system state"
endif endif
-6
View File
@@ -4,10 +4,4 @@
# #
if ARCH_BOARD_NUTINY_NUC120 if ARCH_BOARD_NUTINY_NUC120
config ARCH_LEDS
bool "NuttX LED support"
default n
---help---
"Support control of the on-board LED by NuttX to indicate system state"
endif endif
-6
View File
@@ -5,10 +5,4 @@
# #
if ARCH_BOARD_OLIMEXLPC2378 if ARCH_BOARD_OLIMEXLPC2378
config ARCH_LEDS
bool "NuttX LED support"
default n
---help---
"Support control of board LEDs by NuttX to indicate system state"
endif endif
-6
View File
@@ -4,10 +4,4 @@
# #
if ARCH_BOARD_PIC32_STARTERKIT if ARCH_BOARD_PIC32_STARTERKIT
config ARCH_LEDS
bool "NuttX LED support"
default n
---help---
"Support control of board LEDs by NuttX to indicate system state"
endif endif
-6
View File
@@ -4,10 +4,4 @@
# #
if ARCH_BOARD_PIC32_PIC32MX7MMB if ARCH_BOARD_PIC32_PIC32MX7MMB
config ARCH_LEDS
bool "NuttX LED support"
default n
---help---
"Support control of board LEDs by NuttX to indicate system state"
endif endif
-6
View File
@@ -4,10 +4,4 @@
# #
if ARCH_BOARD_PJRC_87C52 if ARCH_BOARD_PJRC_87C52
config ARCH_LEDS
bool "NuttX LED support"
default n
---help---
"Support control of board LEDs by NuttX to indicate system state"
endif endif
-6
View File
@@ -4,10 +4,4 @@
# #
if ARCH_BOARD_TEENSY if ARCH_BOARD_TEENSY
config ARCH_LEDS
bool "NuttX LED support"
default n
---help---
"Support control of board LEDs by NuttX to indicate system state"
endif endif
-6
View File
@@ -4,10 +4,4 @@
# #
if ARCH_BOARD_TWR_K60N512 if ARCH_BOARD_TWR_K60N512
config ARCH_LEDS
bool "NuttX LED support"
default n
---help---
"Support control of board LEDs by NuttX to indicate system state"
endif endif
-6
View File
@@ -4,10 +4,4 @@
# #
if ARCH_BOARD_ZKITARM if ARCH_BOARD_ZKITARM
config ARCH_LEDS
bool "NuttX LED support"
default n
---help---
"Support control of board LEDs by NuttX to indicate system state"
endif endif