From b046262a8778ce3d7893250f3d977e99bc03b93f Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 2 Mar 2011 14:43:28 +0000 Subject: [PATCH] Add logic to sleep in lpc17xx idle loop git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3329 42af7a65-404d-4744-a932-0658087f49c3 --- ChangeLog | 13 ++- Documentation/NuttX.html | 12 ++- TODO | 4 + arch/arm/src/lpc17xx/Make.defs | 8 +- arch/arm/src/lpc17xx/lpc17_idle.c | 104 ++++++++++++++++++++++ configs/nucleus2g/README.txt | 1 + configs/olimex-lpc1766stk/README.txt | 46 ++++++---- configs/olimex-lpc1766stk/include/board.h | 11 +-- configs/olimex-lpc1766stk/src/up_leds.c | 14 ++- configs/stm3210e-eval/README.txt | 1 + include/stdint.h | 8 +- 11 files changed, 187 insertions(+), 35 deletions(-) create mode 100755 arch/arm/src/lpc17xx/lpc17_idle.c diff --git a/ChangeLog b/ChangeLog index 23520da45d4..261415e1674 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1483,6 +1483,9 @@ 5.19 2011-xx-xx Gregory Nutt + * arch/arm/stm32/stm32_idle.c -- During idle times, the STM32 now uses the + WFI instruction to sleep in a reduced power mode until the next interrupt + occurs (Contributed by Uros Platise). * NSH: 'mem' command renamed to 'free'. Output is now more similar to the Linux 'free' command. * NSH: Correct a redirection bug in NSH. The following would not work; it @@ -1500,7 +1503,13 @@ nsh> cat test.txt This is a test - * drvers/pipes/pipe_common.c: Driver open method eas not returning an EINTR + * drivers/pipes/pipe_common.c: Driver open method eas not returning an EINTR error when it received a signal. Instead, it just re-started the wait. This makes it impossible to kill a background pipe operation from NSH. - + * include/stdint.h -- Correct some errors in conditional compilation (submitted + by Johannes Hampel). + * arch/arm/lpc17xx/lp17_idle.c -- Uses the same logic as the STM32: uses the + WFI instruction to sleep in a reduced power mode until the next interrupt + occurs. + * configs/olimex-lpc1766stk -- Added an LED encoded to indicate if the LPC1766 + is in sleeping. diff --git a/Documentation/NuttX.html b/Documentation/NuttX.html index 44fc71a9eaa..56ddb635170 100644 --- a/Documentation/NuttX.html +++ b/Documentation/NuttX.html @@ -2085,6 +2085,9 @@ buildroot-1.9 2011-02-10 <spudmonkey@racsa.co.cr>