From cc75c59d8236cfe1aab4cdf88c7b741c8b956bc3 Mon Sep 17 00:00:00 2001 From: Arto Kinnunen Date: Tue, 31 Mar 2020 09:31:33 +0300 Subject: [PATCH] Revert "Disable sleep on STM32F4 as an workaround for stability issues." This reverts commit c3ef3cac09448d5265c7be8bd739e3855b075551. --- targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_pwr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_pwr.c b/targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_pwr.c index e699fd9fff..dffb78e25c 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_pwr.c +++ b/targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_pwr.c @@ -391,7 +391,7 @@ void HAL_PWR_EnterSLEEPMode(uint32_t Regulator, uint8_t SLEEPEntry) if(SLEEPEntry == PWR_SLEEPENTRY_WFI) { /* Request Wait For Interrupt */ - __NOP(); + __WFI(); } else {