From 1458ae8e13a1641094a8aa2707dd4983bd07cd89 Mon Sep 17 00:00:00 2001 From: YunHorn Technology Date: Wed, 10 Apr 2024 11:38:02 +0800 Subject: [PATCH] add back power on after exit standby/stop2 mode --- Core/Src/gpio.c | 4 ++-- Core/Src/stm32_lpm_if.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Core/Src/gpio.c b/Core/Src/gpio.c index 7e60793..d3490fb 100644 --- a/Core/Src/gpio.c +++ b/Core/Src/gpio.c @@ -193,8 +193,8 @@ HAL_GPIO_Init(SOAP_SWITCH_GPIO_Port, &GPIO_InitStruct); /* ============== SOAP LEVEL DETECTION ========================= */ #endif -__HAL_RCC_GPIOA_CLK_DISABLE(); -__HAL_RCC_GPIOB_CLK_DISABLE(); +//__HAL_RCC_GPIOA_CLK_DISABLE(); +//__HAL_RCC_GPIOB_CLK_DISABLE(); #if 0 /* EXTI interrupt init*/ diff --git a/Core/Src/stm32_lpm_if.c b/Core/Src/stm32_lpm_if.c index 6cfb922..d6e973d 100644 --- a/Core/Src/stm32_lpm_if.c +++ b/Core/Src/stm32_lpm_if.c @@ -95,7 +95,7 @@ void PWR_ExitOffMode(void) { /* USER CODE BEGIN ExitOffMode_1 */ #if 1 - + POWER_ON; HAL_ResumeTick(); return; #endif @@ -132,7 +132,7 @@ void PWR_ExitStopMode(void) /* USER CODE END ExitStopMode_1 */ /* Resume sysTick : work around for debugger problem in dual core */ - + POWER_ON; HAL_ResumeTick(); /*Not retained periph: ADC interface