optimize low power

This commit is contained in:
Yunhorn 2024-05-23 13:46:05 +08:00
parent 6493b729f9
commit 49cfb4732b
1 changed files with 2 additions and 1 deletions

View File

@ -80,6 +80,7 @@ const struct UTIL_LPM_Driver_s UTIL_PowerDriver =
void PWR_EnterOffMode(void) void PWR_EnterOffMode(void)
{ {
POWER_OFF;
HAL_GPIO_DeInit(GPIOA,GPIO_PIN_All); HAL_GPIO_DeInit(GPIOA,GPIO_PIN_All);
HAL_GPIO_DeInit(GPIOB,GPIO_PIN_All); HAL_GPIO_DeInit(GPIOB,GPIO_PIN_All);
HAL_GPIO_DeInit(GPIOC,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 */ /* Resume sysTick : work around for debugger problem in dual core */
HAL_ResumeTick(); HAL_ResumeTick();
POWER_ON; //POWER_ON;
/*Not retained periph: /*Not retained periph:
ADC interface ADC interface
DAC interface USARTx, TIMx, i2Cx, SPIx DAC interface USARTx, TIMx, i2Cx, SPIx