update
parent
b26b576760
commit
4f1bc73e51
|
@ -64,7 +64,7 @@ void HAL_ADC_LevelOutOfWindowCallback(ADC_HandleTypeDef* hadc)
|
|||
|
||||
void enter_standby_state(uint16_t delay){
|
||||
log_i("EC enter to STANDBY Mode to save power, see you!");
|
||||
osDelay(delay);
|
||||
osDelay(delay);//delay several ms for log information flushed
|
||||
HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN1);//Enable PA0 wakeup function
|
||||
__HAL_RCC_RTC_DISABLE();
|
||||
HAL_RCC_DeInit();
|
||||
|
|
Loading…
Reference in New Issue