From f7122813d51018e5d3460a30596d2320a08ef740 Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 1 Apr 2013 15:52:55 +0000 Subject: LPC17xx: Hold off sleep mode while DMA is in progress. Open1788: Reverse sense of the IDLE LED git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5810 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/configs/open1788/README.txt | 2 +- nuttx/configs/open1788/include/board.h | 3 ++- nuttx/configs/open1788/knsh/defconfig | 5 +++-- nuttx/configs/open1788/nsh/defconfig | 4 ++-- nuttx/configs/open1788/src/lpc17_autoleds.c | 8 ++++---- 5 files changed, 12 insertions(+), 10 deletions(-) (limited to 'nuttx/configs/open1788') diff --git a/nuttx/configs/open1788/README.txt b/nuttx/configs/open1788/README.txt index c29e4d93f..45d5ae167 100644 --- a/nuttx/configs/open1788/README.txt +++ b/nuttx/configs/open1788/README.txt @@ -39,7 +39,7 @@ the LEDs: LED_SIGNAL LED3 glows, on while in signal handler LED_ASSERTION LED3 glows, on while in assertion LED_PANIC LED3 Flashes at 2Hz - LED_IDLE LED glows, ON while sleeping + LED_IDLE LED glows: ON while active; OFF while sleeping Buttons ======= diff --git a/nuttx/configs/open1788/include/board.h b/nuttx/configs/open1788/include/board.h index bf9918199..9a3995077 100644 --- a/nuttx/configs/open1788/include/board.h +++ b/nuttx/configs/open1788/include/board.h @@ -254,7 +254,8 @@ #define LED_SIGNAL 4 /* LED3 glows, on while in signal handler */ #define LED_ASSERTION 4 /* LED3 glows, on while in assertion */ #define LED_PANIC 4 /* LED3 Flashes at 2Hz */ -#define LED_IDLE 5 /* LED4 glows, ON while sleeping */ +#define LED_IDLE 5 /* LED4 glows: ON while active * + * OFF while sleeping */ /* Button definitions ***************************************************************/ /* The Open1788 supports several buttons. All will read "1" when open and "0" diff --git a/nuttx/configs/open1788/knsh/defconfig b/nuttx/configs/open1788/knsh/defconfig index 9fef87f5b..346e8fdbc 100755 --- a/nuttx/configs/open1788/knsh/defconfig +++ b/nuttx/configs/open1788/knsh/defconfig @@ -191,7 +191,8 @@ CONFIG_LPC17_GPDMA=y # # SDIO Configuration # -# CONFIG_SDIO_DMA is not set +CONFIG_SDIO_DMA=y +CONFIG_SDIO_DMAPRIO=0x0 # CONFIG_SDIO_WIDTH_D1_ONLY is not set # @@ -229,7 +230,7 @@ CONFIG_ARCH_EXTSRAM0HEAP=y # # CONFIG_ARCH_NOINTC is not set # CONFIG_ARCH_VECNOTIRQ is not set -# CONFIG_ARCH_DMA is not set +CONFIG_ARCH_DMA=y CONFIG_ARCH_IRQPRIO=y # CONFIG_CUSTOM_STACK is not set # CONFIG_ADDRENV is not set diff --git a/nuttx/configs/open1788/nsh/defconfig b/nuttx/configs/open1788/nsh/defconfig index d3e2aae92..edd5e13d6 100644 --- a/nuttx/configs/open1788/nsh/defconfig +++ b/nuttx/configs/open1788/nsh/defconfig @@ -173,7 +173,7 @@ CONFIG_LPC17_GPDMA=y # # SDIO Configuration # -# CONFIG_SDIO_DMA is not set +CONFIG_SDIO_DMA=y CONFIG_SDIO_DMAPRIO=0x0 # CONFIG_SDIO_WIDTH_D1_ONLY is not set @@ -186,7 +186,7 @@ CONFIG_SDIO_DMAPRIO=0x0 # # CONFIG_ARCH_NOINTC is not set # CONFIG_ARCH_VECNOTIRQ is not set -# CONFIG_ARCH_DMA is not set +CONFIG_ARCH_DMA=y CONFIG_ARCH_IRQPRIO=y # CONFIG_CUSTOM_STACK is not set # CONFIG_ADDRENV is not set diff --git a/nuttx/configs/open1788/src/lpc17_autoleds.c b/nuttx/configs/open1788/src/lpc17_autoleds.c index 80d682df5..a483f5a9a 100644 --- a/nuttx/configs/open1788/src/lpc17_autoleds.c +++ b/nuttx/configs/open1788/src/lpc17_autoleds.c @@ -129,10 +129,10 @@ #define LED_EVENT_OFF_SETBITS ((0) << OFF_SETBITS_SHIFT) #define LED_EVENT_OFF_CLRBITS ((OPEN1788_LED3) << OFF_CLRBITS_SHIFT) -#define LED_IDLE_ON_SETBITS ((OPEN1788_LED4) << ON_SETBITS_SHIFT) -#define LED_IDLE_ON_CLRBITS ((0) << ON_CLRBITS_SHIFT) -#define LED_IDLE_OFF_SETBITS ((0) << OFF_SETBITS_SHIFT) -#define LED_IDLE_OFF_CLRBITS ((OPEN1788_LED4) << OFF_CLRBITS_SHIFT) +#define LED_IDLE_ON_SETBITS ((0) << ON_SETBITS_SHIFT) +#define LED_IDLE_ON_CLRBITS ((OPEN1788_LED4) << ON_CLRBITS_SHIFT) +#define LED_IDLE_OFF_SETBITS ((OPEN1788_LED4) << OFF_SETBITS_SHIFT) +#define LED_IDLE_OFF_CLRBITS ((0) << OFF_CLRBITS_SHIFT) /* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG * with CONFIG_DEBUG_VERBOSE too) -- cgit v1.2.3