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
@ -104,6 +104,6 @@ int stm32_pmstandby(void)
|
|||||||
|
|
||||||
/* Sleep until the wakeup reset occurs */
|
/* Sleep until the wakeup reset occurs */
|
||||||
|
|
||||||
asm("WFI");
|
asm("wfi");
|
||||||
return OK; /* Won't get here */
|
return OK; /* Won't get here */
|
||||||
}
|
}
|
||||||
|
@ -112,11 +112,11 @@ int stm32_pmstop(bool lpds)
|
|||||||
#ifdef CONFIG_PM_WFE
|
#ifdef CONFIG_PM_WFE
|
||||||
/* Mode: SLEEP + Entry with WFE */
|
/* Mode: SLEEP + Entry with WFE */
|
||||||
|
|
||||||
__asm("wfe");
|
asm("wfe");
|
||||||
#else
|
#else
|
||||||
/* Mode: SLEEP + Entry with WFI */
|
/* Mode: SLEEP + Entry with WFI */
|
||||||
|
|
||||||
__asm("wfi");
|
asm("wfi");
|
||||||
#endif
|
#endif
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user