Fix some issues introduced to Freedom-KL26Z build. Duplicate changes in Freedom-KL25Z

This commit is contained in:
Gregory Nutt 2015-04-09 14:48:54 -06:00
parent 41bb739c59
commit 5642522a6c
6 changed files with 64 additions and 255 deletions

View File

@ -42,8 +42,9 @@ CONFIG_RAW_BINARY=y
# Debug Options # Debug Options
# #
# CONFIG_DEBUG is not set # CONFIG_DEBUG is not set
CONFIG_ARCH_HAVE_STACKCHECK=y
# CONFIG_ARCH_HAVE_HEAPCHECK is not set # CONFIG_ARCH_HAVE_HEAPCHECK is not set
CONFIG_ARCH_HAVE_STACKCHECK=y
# CONFIG_STACK_COLORATION is not set
# CONFIG_DEBUG_SYMBOLS is not set # CONFIG_DEBUG_SYMBOLS is not set
CONFIG_ARCH_HAVE_CUSTOMOPT=y CONFIG_ARCH_HAVE_CUSTOMOPT=y
# CONFIG_DEBUG_NOOPT is not set # CONFIG_DEBUG_NOOPT is not set
@ -87,6 +88,7 @@ CONFIG_ARCH_CHIP_KL=y
# CONFIG_ARCH_CHIP_SAMA5 is not set # CONFIG_ARCH_CHIP_SAMA5 is not set
# CONFIG_ARCH_CHIP_SAMD is not set # CONFIG_ARCH_CHIP_SAMD is not set
# CONFIG_ARCH_CHIP_SAM34 is not set # CONFIG_ARCH_CHIP_SAM34 is not set
# CONFIG_ARCH_CHIP_SAMV7 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_ARM7TDMI is not set # CONFIG_ARCH_ARM7TDMI is not set
@ -95,13 +97,16 @@ CONFIG_ARCH_CHIP_KL=y
CONFIG_ARCH_CORTEXM0=y CONFIG_ARCH_CORTEXM0=y
# CONFIG_ARCH_CORTEXM3 is not set # CONFIG_ARCH_CORTEXM3 is not set
# CONFIG_ARCH_CORTEXM4 is not set # CONFIG_ARCH_CORTEXM4 is not set
# CONFIG_ARCH_CORTEXM7 is not set
# CONFIG_ARCH_CORTEXA5 is not set # CONFIG_ARCH_CORTEXA5 is not set
# CONFIG_ARCH_CORTEXA8 is not set # CONFIG_ARCH_CORTEXA8 is not set
CONFIG_ARCH_FAMILY="armv6-m" CONFIG_ARCH_FAMILY="armv6-m"
CONFIG_ARCH_CHIP="kl" CONFIG_ARCH_CHIP="kl"
CONFIG_ARCH_HAVE_CMNVECTOR=y CONFIG_ARCH_HAVE_CMNVECTOR=y
# CONFIG_ARMV7M_CMNVECTOR is not set # CONFIG_ARMV7M_CMNVECTOR is not set
# CONFIG_ARMV7M_LAZYFPU is not set
# CONFIG_ARCH_HAVE_FPU is not set # CONFIG_ARCH_HAVE_FPU is not set
# CONFIG_ARCH_HAVE_DPFPU is not set
# #
# ARMV6M Configuration Options # ARMV6M Configuration Options
@ -116,6 +121,7 @@ CONFIG_ARMV6M_TOOLCHAIN_GNU_EABIL=y
# Kinetis Configuration Options # Kinetis Configuration Options
# #
CONFIG_ARCH_CHIP_MKL25Z128=y CONFIG_ARCH_CHIP_MKL25Z128=y
# CONFIG_ARCH_CHIP_MKL26Z128 is not set
CONFIG_ARCH_FAMILY_KL2X=y CONFIG_ARCH_FAMILY_KL2X=y
# #
@ -234,6 +240,11 @@ CONFIG_NSH_MMCSDMINOR=0
# #
# Board-Specific Options # Board-Specific Options
# #
CONFIG_LIB_BOARDCTL=y
# CONFIG_BOARDCTL_TSCTEST is not set
# CONFIG_BOARDCTL_ADCTEST is not set
# CONFIG_BOARDCTL_GRAPHICS is not set
# CONFIG_BOARDCTL_IOCTL is not set
# #
# RTOS Features # RTOS Features
@ -350,9 +361,13 @@ CONFIG_PWM=y
# CONFIG_I2C is not set # CONFIG_I2C is not set
# CONFIG_SPI is not set # CONFIG_SPI is not set
# CONFIG_I2S is not set # CONFIG_I2S is not set
#
# Timer Driver Support
#
# CONFIG_TIMER is not set
# CONFIG_RTC is not set # CONFIG_RTC is not set
# CONFIG_WATCHDOG is not set # CONFIG_WATCHDOG is not set
# CONFIG_TIMER is not set
# CONFIG_ANALOG is not set # CONFIG_ANALOG is not set
# CONFIG_AUDIO_DEVICES is not set # CONFIG_AUDIO_DEVICES is not set
# CONFIG_VIDEO_DEVICES is not set # CONFIG_VIDEO_DEVICES is not set
@ -361,6 +376,7 @@ CONFIG_PWM=y
# CONFIG_LCD is not set # CONFIG_LCD is not set
# CONFIG_MMCSD is not set # CONFIG_MMCSD is not set
# CONFIG_MTD is not set # CONFIG_MTD is not set
# CONFIG_EEPROM is not set
# CONFIG_PIPES is not set # CONFIG_PIPES is not set
# CONFIG_PM is not set # CONFIG_PM is not set
# CONFIG_POWER is not set # CONFIG_POWER is not set
@ -397,6 +413,8 @@ CONFIG_ARCH_HAVE_UART0=y
# #
CONFIG_MCU_SERIAL=y CONFIG_MCU_SERIAL=y
CONFIG_STANDARD_SERIAL=y CONFIG_STANDARD_SERIAL=y
# CONFIG_SERIAL_IFLOWCONTROL is not set
# CONFIG_SERIAL_OFLOWCONTROL is not set
# CONFIG_ARCH_HAVE_SERIAL_TERMIOS is not set # CONFIG_ARCH_HAVE_SERIAL_TERMIOS is not set
CONFIG_UART0_SERIAL_CONSOLE=y CONFIG_UART0_SERIAL_CONSOLE=y
# CONFIG_OTHER_SERIAL_CONSOLE is not set # CONFIG_OTHER_SERIAL_CONSOLE is not set
@ -413,8 +431,6 @@ CONFIG_UART0_PARITY=0
CONFIG_UART0_2STOP=0 CONFIG_UART0_2STOP=0
# CONFIG_UART0_IFLOWCONTROL is not set # CONFIG_UART0_IFLOWCONTROL is not set
# CONFIG_UART0_OFLOWCONTROL is not set # CONFIG_UART0_OFLOWCONTROL is not set
# CONFIG_SERIAL_IFLOWCONTROL is not set
# CONFIG_SERIAL_OFLOWCONTROL is not set
# CONFIG_USBDEV is not set # CONFIG_USBDEV is not set
# CONFIG_USBHOST is not set # CONFIG_USBHOST is not set
# CONFIG_WIRELESS is not set # CONFIG_WIRELESS is not set
@ -427,6 +443,7 @@ CONFIG_UART0_2STOP=0
# System Logging # System Logging
# #
# CONFIG_RAMLOG is not set # CONFIG_RAMLOG is not set
# CONFIG_SYSLOG_CONSOLE is not set
# #
# Networking Support # Networking Support
@ -460,6 +477,7 @@ CONFIG_DISABLE_PSEUDOFS_OPERATIONS=y
# System Logging # System Logging
# #
# CONFIG_SYSLOG is not set # CONFIG_SYSLOG is not set
# CONFIG_SYSLOG_TIMESTAMP is not set
# #
# Graphics Support # Graphics Support
@ -502,6 +520,7 @@ CONFIG_NUNGET_CHARS=0
# CONFIG_LIBM is not set # CONFIG_LIBM is not set
# CONFIG_NOPRINTF_FIELDWIDTH is not set # CONFIG_NOPRINTF_FIELDWIDTH is not set
# CONFIG_LIBC_FLOATINGPOINT is not set # CONFIG_LIBC_FLOATINGPOINT is not set
# CONFIG_LIBC_IOCTL_VARIADIC is not set
CONFIG_LIB_RAND_ORDER=1 CONFIG_LIB_RAND_ORDER=1
# CONFIG_EOL_IS_CR is not set # CONFIG_EOL_IS_CR is not set
# CONFIG_EOL_IS_LF is not set # CONFIG_EOL_IS_LF is not set
@ -513,6 +532,7 @@ CONFIG_TASK_SPAWN_DEFAULT_STACKSIZE=1536
# 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
# CONFIG_TIME_EXTENDED is not set
CONFIG_LIB_SENDFILE_BUFSIZE=512 CONFIG_LIB_SENDFILE_BUFSIZE=512
# CONFIG_ARCH_ROMGETC is not set # CONFIG_ARCH_ROMGETC is not set
# CONFIG_ARCH_OPTIMIZED_FUNCTIONS is not set # CONFIG_ARCH_OPTIMIZED_FUNCTIONS is not set
@ -576,8 +596,6 @@ CONFIG_EXAMPLES_PWM_DEVPATH="/dev/pwm0"
CONFIG_EXAMPLES_PWM_FREQUENCY=100 CONFIG_EXAMPLES_PWM_FREQUENCY=100
CONFIG_EXAMPLES_PWM_DUTYPCT=50 CONFIG_EXAMPLES_PWM_DUTYPCT=50
CONFIG_EXAMPLES_PWM_DURATION=5 CONFIG_EXAMPLES_PWM_DURATION=5
CONFIG_LIB_BOARDCTL=y
CONFIG_BOARDCTL_PWMTEST=y
# CONFIG_EXAMPLES_POSIXSPAWN 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
@ -594,7 +612,6 @@ CONFIG_BOARDCTL_PWMTEST=y
# CONFIG_EXAMPLES_THTTPD is not set # CONFIG_EXAMPLES_THTTPD is not set
# CONFIG_EXAMPLES_TIFF is not set # CONFIG_EXAMPLES_TIFF is not set
# CONFIG_EXAMPLES_TOUCHSCREEN is not set # CONFIG_EXAMPLES_TOUCHSCREEN is not set
# CONFIG_EXAMPLES_UDP is not set
# CONFIG_EXAMPLES_WEBSERVER is not set # CONFIG_EXAMPLES_WEBSERVER is not set
# CONFIG_EXAMPLES_USBSERIAL is not set # CONFIG_EXAMPLES_USBSERIAL is not set
# CONFIG_EXAMPLES_USBTERM is not set # CONFIG_EXAMPLES_USBTERM is not set
@ -604,12 +621,14 @@ CONFIG_BOARDCTL_PWMTEST=y
# Graphics Support # Graphics Support
# #
# CONFIG_TIFF is not set # CONFIG_TIFF is not set
# CONFIG_GRAPHICS_TRAVELER is not set
# #
# Interpreters # Interpreters
# #
# CONFIG_INTERPRETERS_FICL is not set # CONFIG_INTERPRETERS_FICL is not set
# CONFIG_INTERPRETERS_PCODE is not set # CONFIG_INTERPRETERS_PCODE is not set
# CONFIG_INTERPRETERS_MICROPYTHON is not set
# #
# Network Utilities # Network Utilities
@ -619,15 +638,11 @@ CONFIG_BOARDCTL_PWMTEST=y
# Networking Utilities # Networking Utilities
# #
# CONFIG_NETUTILS_CODECS is not set # CONFIG_NETUTILS_CODECS is not set
# CONFIG_NETUTILS_DHCPD is not set
# CONFIG_NETUTILS_FTPC is not set # CONFIG_NETUTILS_FTPC is not set
# CONFIG_NETUTILS_FTPD is not set
# CONFIG_NETUTILS_JSON is not set # CONFIG_NETUTILS_JSON is not set
# CONFIG_NETUTILS_SMTP is not set # CONFIG_NETUTILS_SMTP is not set
# CONFIG_NETUTILS_TFTPC is not set
# CONFIG_NETUTILS_THTTPD is not set # CONFIG_NETUTILS_THTTPD is not set
# CONFIG_NETUTILS_NETLIB is not set # CONFIG_NETUTILS_PPPD is not set
# CONFIG_NETUTILS_WEBCLIENT is not set
# #
# FreeModBus # FreeModBus
@ -680,6 +695,7 @@ CONFIG_NSH_DISABLE_MKDIR=y
CONFIG_NSH_DISABLE_MKRD=y CONFIG_NSH_DISABLE_MKRD=y
# CONFIG_NSH_DISABLE_MH is not set # CONFIG_NSH_DISABLE_MH is not set
CONFIG_NSH_DISABLE_MOUNT=y CONFIG_NSH_DISABLE_MOUNT=y
# CONFIG_NSH_DISABLE_MV is not set
# CONFIG_NSH_DISABLE_MW is not set # CONFIG_NSH_DISABLE_MW is not set
# CONFIG_NSH_DISABLE_PS is not set # CONFIG_NSH_DISABLE_PS is not set
CONFIG_NSH_DISABLE_PUT=y CONFIG_NSH_DISABLE_PUT=y
@ -727,115 +743,19 @@ CONFIG_NSH_CONSOLE=y
# #
# System Libraries and NSH Add-Ons # System Libraries and NSH Add-Ons
# #
#
# Custom Free Memory Command
#
# CONFIG_SYSTEM_FREE is not set # CONFIG_SYSTEM_FREE is not set
#
# EMACS-like Command Line Editor
#
# CONFIG_SYSTEM_CLE is not set # CONFIG_SYSTEM_CLE is not set
# CONFIG_SYSTEM_CUTERM is not set
#
# FLASH Program Installation
#
# CONFIG_SYSTEM_INSTALL is not set # CONFIG_SYSTEM_INSTALL is not set
#
# FLASH Erase-all Command
#
#
# Intel HEX to binary conversion
#
# CONFIG_SYSTEM_HEX2BIN is not set # CONFIG_SYSTEM_HEX2BIN is not set
#
# I2C tool
#
#
# INI File Parser
#
# CONFIG_SYSTEM_INIFILE is not set # CONFIG_SYSTEM_INIFILE is not set
#
# NxPlayer media player library / command Line
#
# CONFIG_SYSTEM_NXPLAYER is not set
#
# RAM test
#
# CONFIG_SYSTEM_RAMTEST is not set # CONFIG_SYSTEM_RAMTEST is not set
#
# readline()
#
CONFIG_SYSTEM_READLINE=y CONFIG_SYSTEM_READLINE=y
CONFIG_READLINE_ECHO=y CONFIG_READLINE_ECHO=y
#
# P-Code Support
#
#
# PHY Tool
#
#
# Power Off
#
# CONFIG_SYSTEM_POWEROFF is not set # CONFIG_SYSTEM_POWEROFF is not set
#
# RAMTRON
#
# CONFIG_SYSTEM_RAMTRON is not set # CONFIG_SYSTEM_RAMTRON is not set
#
# SD Card
#
# CONFIG_SYSTEM_SDCARD is not set # CONFIG_SYSTEM_SDCARD is not set
#
# Sudoku
#
# CONFIG_SYSTEM_SUDOKU is not set # CONFIG_SYSTEM_SUDOKU is not set
#
# Sysinfo
#
# CONFIG_SYSTEM_SYSINFO is not set # CONFIG_SYSTEM_SYSINFO is not set
#
# VI Work-Alike Editor
#
# CONFIG_SYSTEM_VI is not set # CONFIG_SYSTEM_VI is not set
#
# Stack Monitor
#
#
# USB CDC/ACM Device Commands
#
#
# USB Composite Device Commands
#
#
# USB Mass Storage Device Commands
#
#
# USB Monitor
#
#
# Zmodem Commands
#
# CONFIG_SYSTEM_ZMODEM is not set # CONFIG_SYSTEM_ZMODEM is not set

View File

@ -42,8 +42,8 @@ AOBJS = $(ASRCS:.S=$(OBJEXT))
CSRCS = kl_boardinitialize.c CSRCS = kl_boardinitialize.c
ifeq ($(CONFIG_NSH_ARCHINIT),y) ifeq ($(CONFIG_LIB_BOARDCTL),y)
CSRCS += kl_nsh.c CSRCS += kl_appinit.c
endif endif
ifeq ($(CONFIG_WL_CC3000),y) ifeq ($(CONFIG_WL_CC3000),y)
@ -86,10 +86,6 @@ ifeq ($(CONFIG_WATCHDOG),y)
CSRCS += kl_watchdog.c CSRCS += kl_watchdog.c
endif endif
ifeq ($(CONFIG_NSH_LIBRARY),y)
CSRCS += kl_nsh.c
endif
ifeq ($(CONFIG_SENSORS_ADXL345),y) ifeq ($(CONFIG_SENSORS_ADXL345),y)
CSRCS += kl_adxl345.c CSRCS += kl_adxl345.c
endif endif

View File

@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* config/stm32f4discovery/src/kl_nsh.c * config/stm32f4discovery/src/kl_appinit.c
* *
* Copyright (C) 2013 Gregory Nutt. All rights reserved. * Copyright (C) 2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
@ -45,7 +45,7 @@
#include <nuttx/board.h> #include <nuttx/board.h>
#ifdef CONFIG_NSH_LIBRARY #ifdef CONFIG_LIB_BOARDCTL
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
@ -59,16 +59,11 @@
* Name: board_app_initialize * Name: board_app_initialize
* *
* Description: * Description:
* Perform architecture specific initialization * Perform application specific initialization. This function is never
* called directly from application code, but only indirectly via the
* (non-standard) boardctl() interface using the command BOARDIOC_INIT.
* *
* CONFIG_NSH_ARCHINIT=y : *****************************************************************************/
* Called from the NSH library
*
* CONFIG_BOARD_INITIALIZE=y, CONFIG_NSH_LIBRARY=y, &&
* CONFIG_NSH_ARCHINIT=n :
* Called from board_initialize().
*
****************************************************************************/
int board_app_initialize(void) int board_app_initialize(void)
{ {
@ -84,4 +79,4 @@ int board_app_initialize(void)
return OK; return OK;
} }
#endif /* CONFIG_NSH_LIBRARY */ #endif /* CONFIG_LIB_BOARDCTL */

View File

@ -88,6 +88,7 @@ CONFIG_ARCH_CHIP_KL=y
# CONFIG_ARCH_CHIP_SAMA5 is not set # CONFIG_ARCH_CHIP_SAMA5 is not set
# CONFIG_ARCH_CHIP_SAMD is not set # CONFIG_ARCH_CHIP_SAMD is not set
# CONFIG_ARCH_CHIP_SAM34 is not set # CONFIG_ARCH_CHIP_SAM34 is not set
# CONFIG_ARCH_CHIP_SAMV7 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_ARM7TDMI is not set # CONFIG_ARCH_ARM7TDMI is not set
@ -96,13 +97,16 @@ CONFIG_ARCH_CHIP_KL=y
CONFIG_ARCH_CORTEXM0=y CONFIG_ARCH_CORTEXM0=y
# CONFIG_ARCH_CORTEXM3 is not set # CONFIG_ARCH_CORTEXM3 is not set
# CONFIG_ARCH_CORTEXM4 is not set # CONFIG_ARCH_CORTEXM4 is not set
# CONFIG_ARCH_CORTEXM7 is not set
# CONFIG_ARCH_CORTEXA5 is not set # CONFIG_ARCH_CORTEXA5 is not set
# CONFIG_ARCH_CORTEXA8 is not set # CONFIG_ARCH_CORTEXA8 is not set
CONFIG_ARCH_FAMILY="armv6-m" CONFIG_ARCH_FAMILY="armv6-m"
CONFIG_ARCH_CHIP="kl" CONFIG_ARCH_CHIP="kl"
CONFIG_ARCH_HAVE_CMNVECTOR=y CONFIG_ARCH_HAVE_CMNVECTOR=y
# CONFIG_ARMV7M_CMNVECTOR is not set # CONFIG_ARMV7M_CMNVECTOR is not set
# CONFIG_ARMV7M_LAZYFPU is not set
# CONFIG_ARCH_HAVE_FPU is not set # CONFIG_ARCH_HAVE_FPU is not set
# CONFIG_ARCH_HAVE_DPFPU is not set
# #
# ARMV6M Configuration Options # ARMV6M Configuration Options
@ -222,7 +226,6 @@ CONFIG_RAM_SIZE=16384
# #
# Board Selection # Board Selection
# #
# CONFIG_ARCH_BOARD_FREEDOM_KL25Z is not set
CONFIG_ARCH_BOARD_FREEDOM_KL26Z=y CONFIG_ARCH_BOARD_FREEDOM_KL26Z=y
# CONFIG_ARCH_BOARD_CUSTOM is not set # CONFIG_ARCH_BOARD_CUSTOM is not set
CONFIG_ARCH_BOARD="freedom-kl26z" CONFIG_ARCH_BOARD="freedom-kl26z"
@ -237,6 +240,11 @@ CONFIG_NSH_MMCSDMINOR=0
# #
# Board-Specific Options # Board-Specific Options
# #
CONFIG_LIB_BOARDCTL=y
# CONFIG_BOARDCTL_TSCTEST is not set
# CONFIG_BOARDCTL_ADCTEST is not set
# CONFIG_BOARDCTL_GRAPHICS is not set
# CONFIG_BOARDCTL_IOCTL is not set
# #
# RTOS Features # RTOS Features
@ -353,9 +361,13 @@ CONFIG_PWM=y
# CONFIG_I2C is not set # CONFIG_I2C is not set
# CONFIG_SPI is not set # CONFIG_SPI is not set
# CONFIG_I2S is not set # CONFIG_I2S is not set
#
# Timer Driver Support
#
# CONFIG_TIMER is not set
# CONFIG_RTC is not set # CONFIG_RTC is not set
# CONFIG_WATCHDOG is not set # CONFIG_WATCHDOG is not set
# CONFIG_TIMER is not set
# CONFIG_ANALOG is not set # CONFIG_ANALOG is not set
# CONFIG_AUDIO_DEVICES is not set # CONFIG_AUDIO_DEVICES is not set
# CONFIG_VIDEO_DEVICES is not set # CONFIG_VIDEO_DEVICES is not set
@ -520,6 +532,7 @@ CONFIG_TASK_SPAWN_DEFAULT_STACKSIZE=1536
# 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
# CONFIG_TIME_EXTENDED is not set
CONFIG_LIB_SENDFILE_BUFSIZE=512 CONFIG_LIB_SENDFILE_BUFSIZE=512
# CONFIG_ARCH_ROMGETC is not set # CONFIG_ARCH_ROMGETC is not set
# CONFIG_ARCH_OPTIMIZED_FUNCTIONS is not set # CONFIG_ARCH_OPTIMIZED_FUNCTIONS is not set
@ -583,8 +596,6 @@ CONFIG_EXAMPLES_PWM_DEVPATH="/dev/pwm0"
CONFIG_EXAMPLES_PWM_FREQUENCY=100 CONFIG_EXAMPLES_PWM_FREQUENCY=100
CONFIG_EXAMPLES_PWM_DUTYPCT=50 CONFIG_EXAMPLES_PWM_DUTYPCT=50
CONFIG_EXAMPLES_PWM_DURATION=5 CONFIG_EXAMPLES_PWM_DURATION=5
CONFIG_LIB_BOARDCTL=y
CONFIG_BOARDCTL_PWMTEST=y
# CONFIG_EXAMPLES_POSIXSPAWN 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
@ -628,13 +639,10 @@ CONFIG_BOARDCTL_PWMTEST=y
# #
# CONFIG_NETUTILS_CODECS is not set # CONFIG_NETUTILS_CODECS is not set
# CONFIG_NETUTILS_FTPC is not set # CONFIG_NETUTILS_FTPC is not set
# CONFIG_NETUTILS_FTPD is not set
# CONFIG_NETUTILS_JSON is not set # CONFIG_NETUTILS_JSON is not set
# CONFIG_NETUTILS_SMTP is not set # CONFIG_NETUTILS_SMTP is not set
# CONFIG_NETUTILS_TFTPC is not set
# CONFIG_NETUTILS_THTTPD is not set # CONFIG_NETUTILS_THTTPD is not set
# CONFIG_NETUTILS_NETLIB is not set # CONFIG_NETUTILS_PPPD is not set
# CONFIG_NETUTILS_WEBCLIENT is not set
# #
# FreeModBus # FreeModBus
@ -687,6 +695,7 @@ CONFIG_NSH_DISABLE_MKDIR=y
CONFIG_NSH_DISABLE_MKRD=y CONFIG_NSH_DISABLE_MKRD=y
# CONFIG_NSH_DISABLE_MH is not set # CONFIG_NSH_DISABLE_MH is not set
CONFIG_NSH_DISABLE_MOUNT=y CONFIG_NSH_DISABLE_MOUNT=y
# CONFIG_NSH_DISABLE_MV is not set
# CONFIG_NSH_DISABLE_MW is not set # CONFIG_NSH_DISABLE_MW is not set
# CONFIG_NSH_DISABLE_PS is not set # CONFIG_NSH_DISABLE_PS is not set
CONFIG_NSH_DISABLE_PUT=y CONFIG_NSH_DISABLE_PUT=y
@ -734,123 +743,19 @@ CONFIG_NSH_CONSOLE=y
# #
# System Libraries and NSH Add-Ons # System Libraries and NSH Add-Ons
# #
#
# Custom Free Memory Command
#
# CONFIG_SYSTEM_FREE is not set # CONFIG_SYSTEM_FREE is not set
#
# EMACS-like Command Line Editor
#
# CONFIG_SYSTEM_CLE is not set # CONFIG_SYSTEM_CLE is not set
#
# CU Minimal Terminal
#
# CONFIG_SYSTEM_CUTERM is not set # CONFIG_SYSTEM_CUTERM is not set
#
# FLASH Program Installation
#
# CONFIG_SYSTEM_INSTALL is not set # CONFIG_SYSTEM_INSTALL is not set
#
# FLASH Erase-all Command
#
#
# Intel HEX to binary conversion
#
# CONFIG_SYSTEM_HEX2BIN is not set # CONFIG_SYSTEM_HEX2BIN is not set
#
# I2C tool
#
#
# INI File Parser
#
# CONFIG_SYSTEM_INIFILE is not set # CONFIG_SYSTEM_INIFILE is not set
#
# NxPlayer media player library / command Line
#
#
# RAM test
#
# CONFIG_SYSTEM_RAMTEST is not set # CONFIG_SYSTEM_RAMTEST is not set
#
# readline()
#
CONFIG_SYSTEM_READLINE=y CONFIG_SYSTEM_READLINE=y
CONFIG_READLINE_ECHO=y CONFIG_READLINE_ECHO=y
#
# P-Code Support
#
#
# PHY Tool
#
#
# Power Off
#
# CONFIG_SYSTEM_POWEROFF is not set # CONFIG_SYSTEM_POWEROFF is not set
#
# RAMTRON
#
# CONFIG_SYSTEM_RAMTRON is not set # CONFIG_SYSTEM_RAMTRON is not set
#
# SD Card
#
# CONFIG_SYSTEM_SDCARD is not set # CONFIG_SYSTEM_SDCARD is not set
#
# Sudoku
#
# CONFIG_SYSTEM_SUDOKU is not set # CONFIG_SYSTEM_SUDOKU is not set
#
# Sysinfo
#
# CONFIG_SYSTEM_SYSINFO is not set # CONFIG_SYSTEM_SYSINFO is not set
#
# Temperature
#
#
# VI Work-Alike Editor
#
# CONFIG_SYSTEM_VI is not set # CONFIG_SYSTEM_VI is not set
#
# Stack Monitor
#
#
# USB CDC/ACM Device Commands
#
#
# USB Composite Device Commands
#
#
# USB Mass Storage Device Commands
#
#
# USB Monitor
#
#
# Zmodem Commands
#
# CONFIG_SYSTEM_ZMODEM is not set # CONFIG_SYSTEM_ZMODEM is not set

View File

@ -42,8 +42,8 @@ AOBJS = $(ASRCS:.S=$(OBJEXT))
CSRCS = kl_boardinitialize.c CSRCS = kl_boardinitialize.c
ifeq ($(CONFIG_NSH_ARCHINIT),y) ifeq ($(CONFIG_LIB_BOARDCTL),y)
CSRCS += kl_nsh.c CSRCS += kl_appinit.c
endif endif
ifeq ($(CONFIG_KL_TSI),y) ifeq ($(CONFIG_KL_TSI),y)

View File

@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* config/stm32f4discovery/src/kl_nsh.c * config/stm32f4discovery/src/kl_appinit.c
* *
* Copyright (C) 2015 Gregory Nutt. All rights reserved. * Copyright (C) 2015 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
@ -40,12 +40,10 @@
#include <nuttx/config.h> #include <nuttx/config.h>
#include <sys/types.h> #include <sys/types.h>
#include <stdio.h>
#include <syslog.h>
#include <nuttx/board.h> #include <nuttx/board.h>
#ifdef CONFIG_NSH_LIBRARY #ifdef CONFIG_LIB_BOARDCTL
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
@ -59,20 +57,15 @@
* Name: board_app_initialize * Name: board_app_initialize
* *
* Description: * Description:
* Perform architecture specific initialization * Perform application specific initialization. This function is never
* called directly from application code, but only indirectly via the
* (non-standard) boardctl() interface using the command BOARDIOC_INIT.
* *
* CONFIG_NSH_ARCHINIT=y : *****************************************************************************/
* Called from the NSH library
*
* CONFIG_BOARD_INITIALIZE=y, CONFIG_NSH_LIBRARY=y, &&
* CONFIG_NSH_ARCHINIT=n :
* Called from board_initialize().
*
****************************************************************************/
int board_app_initialize(void) int board_app_initialize(void)
{ {
return OK; return OK;
} }
#endif /* CONFIG_NSH_LIBRARY */ #endif /* CONFIG_LIB_BOARDCTL */