add back power on after exit standby/stop2 mode

This commit is contained in:
Yunhorn 2024-04-10 11:38:02 +08:00
parent d12e534ff0
commit 1458ae8e13
2 changed files with 4 additions and 4 deletions

View File

@ -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*/

View File

@ -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