diff options
Diffstat (limited to 'nuttx/arch/arm/src/stm32/stm32_pmsleep.c')
-rw-r--r-- | nuttx/arch/arm/src/stm32/stm32_pmsleep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_pmsleep.c b/nuttx/arch/arm/src/stm32/stm32_pmsleep.c index 5ebbcbf40..3027b99a7 100644 --- a/nuttx/arch/arm/src/stm32/stm32_pmsleep.c +++ b/nuttx/arch/arm/src/stm32/stm32_pmsleep.c @@ -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 } |