From b5ec8fbd44f0710aa7b09e912955f405e82c0df5 Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 5 Mar 2013 01:26:02 +0000 Subject: [PATCH] Enable LEDs in all Open1788 configurations git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5706 42af7a65-404d-4744-a932-0658087f49c3 --- ChangeLog | 6 ++++++ configs/Kconfig | 3 +++ configs/open1788/nsh/defconfig | 5 +++++ configs/open1788/ostest/defconfig | 5 +++++ 4 files changed, 19 insertions(+) diff --git a/ChangeLog b/ChangeLog index 548dffa1fe..055d6be2c7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4241,3 +4241,9 @@ * arch/arm/src/lpc17/lpc17*_clockconfig.c: The WaveShare Open1788 board now boots and passes the OS test. This is the work of Rommel Marcelo (2013-03-04). + * arch/arm/src/lm/lm_gpio.c, lm_gpio.h, and chip/lm4f_pinconfig.h + Extend GPIO logic to handle LM4F. Add LM4F pin configuration header + file (2013-03-04). + * configs/open1788: Enable LED support in all configurations. + (2013-03-04) + diff --git a/configs/Kconfig b/configs/Kconfig index 9883ca3de8..2ef27ea23e 100644 --- a/configs/Kconfig +++ b/configs/Kconfig @@ -368,6 +368,9 @@ config ARCH_BOARD_OLIMEX_STM32P107 config ARCH_BOARD_OPEN1788 bool "Wave Share Open1788" depends on ARCH_CHIP_LPC1788 + select ARCH_HAVE_LEDS + select ARCH_HAVE_BUTTONS + select ARCH_HAVE_IRQBUTTONS ---help--- This port uses the Wave Share Open1788 board. See the http://wvshare.com/product/Open1788-Standard.htm for further diff --git a/configs/open1788/nsh/defconfig b/configs/open1788/nsh/defconfig index 0d16b690e2..70e98e55d6 100644 --- a/configs/open1788/nsh/defconfig +++ b/configs/open1788/nsh/defconfig @@ -249,6 +249,11 @@ CONFIG_ARCH_BOARD="open1788" # # Common Board Options # +CONFIG_ARCH_HAVE_LEDS=y +CONFIG_ARCH_LEDS=y +CONFIG_ARCH_HAVE_BUTTONS=y +# CONFIG_ARCH_BUTTONS is not set +CONFIG_ARCH_HAVE_IRQBUTTONS=y CONFIG_NSH_MMCSDMINOR=0 # diff --git a/configs/open1788/ostest/defconfig b/configs/open1788/ostest/defconfig index b992fc0d0d..4bfad09633 100644 --- a/configs/open1788/ostest/defconfig +++ b/configs/open1788/ostest/defconfig @@ -249,6 +249,11 @@ CONFIG_ARCH_BOARD="open1788" # # Common Board Options # +CONFIG_ARCH_HAVE_LEDS=y +CONFIG_ARCH_LEDS=y +CONFIG_ARCH_HAVE_BUTTONS=y +# CONFIG_ARCH_BUTTONS is not set +CONFIG_ARCH_HAVE_IRQBUTTONS=y # # Board-Specific Options