From 66833bdf1286f945e30ae7dc841a66c2ae7d823b Mon Sep 17 00:00:00 2001 From: patacongo Date: Fri, 27 Jul 2012 00:14:38 +0000 Subject: [PATCH] PM update git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4982 42af7a65-404d-4744-a932-0658087f49c3 --- arch/arm/src/stm32/stm32_pmstandby.c | 4 ++-- arch/arm/src/stm32/stm32_pmstop.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/src/stm32/stm32_pmstandby.c b/arch/arm/src/stm32/stm32_pmstandby.c index 9aacfaa9a6b..467edaec2a8 100644 --- a/arch/arm/src/stm32/stm32_pmstandby.c +++ b/arch/arm/src/stm32/stm32_pmstandby.c @@ -86,7 +86,7 @@ int stm32_pmstandby(void) /* Clear the Wake-Up Flag by setting the CWUF bit in the power control * register. */ - + regval = getreg32(STM32_PWR_CR); regval |= PWR_CR_CWUF; putreg32(regval, STM32_PWR_CR); @@ -104,6 +104,6 @@ int stm32_pmstandby(void) /* Sleep until the wakeup reset occurs */ - asm("WFI"); + asm("wfi"); return OK; /* Won't get here */ } diff --git a/arch/arm/src/stm32/stm32_pmstop.c b/arch/arm/src/stm32/stm32_pmstop.c index 9bd4af73a9a..14ce63b555e 100644 --- a/arch/arm/src/stm32/stm32_pmstop.c +++ b/arch/arm/src/stm32/stm32_pmstop.c @@ -112,11 +112,11 @@ int stm32_pmstop(bool lpds) #ifdef CONFIG_PM_WFE /* Mode: SLEEP + Entry with WFE */ - __asm("wfe"); + asm("wfe"); #else /* Mode: SLEEP + Entry with WFI */ - __asm("wfi"); + asm("wfi"); #endif return OK; }