You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ag...@apache.org on 2020/06/09 12:13:32 UTC

[incubator-nuttx] branch master updated: arch/arm/src/nrf52/nrf52_idle.c: disable WFI in up_idle

This is an automated email from the ASF dual-hosted git repository.

aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 8708e34  arch/arm/src/nrf52/nrf52_idle.c: disable WFI in up_idle
8708e34 is described below

commit 8708e34b295efdfda891175fc658fc68b1e839a6
Author: raiden00pl <ra...@railab.me>
AuthorDate: Tue Jun 9 12:24:42 2020 +0200

    arch/arm/src/nrf52/nrf52_idle.c: disable WFI in up_idle
---
 arch/arm/src/nrf52/nrf52_idle.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/arch/arm/src/nrf52/nrf52_idle.c b/arch/arm/src/nrf52/nrf52_idle.c
index 5733845..f6851b1 100644
--- a/arch/arm/src/nrf52/nrf52_idle.c
+++ b/arch/arm/src/nrf52/nrf52_idle.c
@@ -176,10 +176,16 @@ void up_idle(void)
 
   up_idlepm();
 
-  /* Sleep until an interrupt occurs to save power */
+  /* Sleep until an interrupt occurs to save power
+   *
+   * REVISIT: The SysTick's clock will only tick when the CPU is
+   * running (not in WFE/WFI) or when the system is in debug interface mode.
+   */
 
+#if 0
   BEGIN_IDLE();
   asm("WFI");
   END_IDLE();
 #endif
+#endif
 }