From 49cfb4732bd4874e901927b3c8289f630b91c3b3 Mon Sep 17 00:00:00 2001 From: YunHorn Technology Date: Thu, 23 May 2024 13:46:05 +0800 Subject: [PATCH] optimize low power --- Core/Src/stm32_lpm_if.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Core/Src/stm32_lpm_if.c b/Core/Src/stm32_lpm_if.c index d9d86b1..8732a4f 100644 --- a/Core/Src/stm32_lpm_if.c +++ b/Core/Src/stm32_lpm_if.c @@ -80,6 +80,7 @@ const struct UTIL_LPM_Driver_s UTIL_PowerDriver = void PWR_EnterOffMode(void) { + POWER_OFF; HAL_GPIO_DeInit(GPIOA,GPIO_PIN_All); HAL_GPIO_DeInit(GPIOB,GPIO_PIN_All); HAL_GPIO_DeInit(GPIOC,GPIO_PIN_All); @@ -127,7 +128,7 @@ void PWR_ExitStopMode(void) /* Resume sysTick : work around for debugger problem in dual core */ HAL_ResumeTick(); - POWER_ON; + //POWER_ON; /*Not retained periph: ADC interface DAC interface USARTx, TIMx, i2Cx, SPIx