summaryrefslogtreecommitdiffstats
path: root/nuttx/arch/arm/src/stm32
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-07-27 00:14:38 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-07-27 00:14:38 +0000
commitb7087c241fcea70bad2691981d6f666ca10152ad (patch)
treea685efd6a9a049173f2c1a75e7edf83472f455e8 /nuttx/arch/arm/src/stm32
parent08a74e1fdc729585810b479dd8c6f8e4903baff0 (diff)
PM update
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4982 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/arch/arm/src/stm32')
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_pmstandby.c4
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_pmstop.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_pmstandby.c b/nuttx/arch/arm/src/stm32/stm32_pmstandby.c
index 9aacfaa9a6..467edaec2a 100644
--- a/nuttx/arch/arm/src/stm32/stm32_pmstandby.c
+++ b/nuttx/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/nuttx/arch/arm/src/stm32/stm32_pmstop.c b/nuttx/arch/arm/src/stm32/stm32_pmstop.c
index 9bd4af73a9..14ce63b555 100644
--- a/nuttx/arch/arm/src/stm32/stm32_pmstop.c
+++ b/nuttx/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;
}