From cfbb2261b9a1444a19cf0c1ae28fde7ad6860bea Mon Sep 17 00:00:00 2001 From: Andrey Tolstoy Date: Fri, 8 Apr 2016 11:51:27 +0700 Subject: [PATCH] WKP pin should not be enabled as a wakeup source unconditionally for STOP mode on STM32F2 --- hal/src/stm32f2xx/core_hal_stm32f2xx.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/hal/src/stm32f2xx/core_hal_stm32f2xx.c b/hal/src/stm32f2xx/core_hal_stm32f2xx.c index 00877536cb..7c31ad7bb9 100644 --- a/hal/src/stm32f2xx/core_hal_stm32f2xx.c +++ b/hal/src/stm32f2xx/core_hal_stm32f2xx.c @@ -480,9 +480,6 @@ void HAL_Core_Enter_Stop_Mode(uint16_t wakeUpPin, uint16_t edgeTriggerMode, long void HAL_Core_Execute_Stop_Mode(void) { - /* Enable WKUP pin */ - PWR_WakeUpPinCmd(ENABLE); - /* Request to enter STOP mode with regulator in low power mode */ PWR_EnterSTOPMode(PWR_Regulator_LowPower, PWR_STOPEntry_WFI);