mirror of
https://github.com/apache/nuttx.git
synced 2026-10-08 14:55:18 +00:00
PM update
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4982 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
569e4ef123
commit
66833bdf12
2 changed files with 4 additions and 4 deletions
|
|
@ -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 */
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue