STM32 PM update

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5002 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2012-08-03 15:01:51 +00:00
parent 998d360195
commit eed2776d9a
2 changed files with 4 additions and 4 deletions

View File

@ -100,7 +100,7 @@ void stm32_pmsleep(bool sleeponexit)
{
regval &= ~NVIC_SYSCON_SLEEPONEXIT;
}
putreg32(regval, NVIC_SYSCON);
/* Sleep until the wakeup interrupt or event occurs */
@ -108,10 +108,10 @@ void stm32_pmsleep(bool sleeponexit)
#ifdef CONFIG_PM_WFE
/* Mode: SLEEP + Entry with WFE */
__asm("wfe");
asm("wfe");
#else
/* Mode: SLEEP + Entry with WFI */
__asm("wfi");
asm("wfi");
#endif
}

View File

@ -162,7 +162,7 @@ void stm32_clockconfig(void)
************************************************************************************/
#ifdef CONFIG_PM
void stm32_clockenable(void);
void stm32_clockenable(void)
{
#if defined(CONFIG_ARCH_BOARD_STM32_CUSTOM_CLOCKCONFIG)