add back power on after exit standby/stop2 mode
This commit is contained in:
parent
d12e534ff0
commit
1458ae8e13
|
@ -193,8 +193,8 @@ HAL_GPIO_Init(SOAP_SWITCH_GPIO_Port, &GPIO_InitStruct);
|
||||||
/* ============== SOAP LEVEL DETECTION ========================= */
|
/* ============== SOAP LEVEL DETECTION ========================= */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
__HAL_RCC_GPIOA_CLK_DISABLE();
|
//__HAL_RCC_GPIOA_CLK_DISABLE();
|
||||||
__HAL_RCC_GPIOB_CLK_DISABLE();
|
//__HAL_RCC_GPIOB_CLK_DISABLE();
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
/* EXTI interrupt init*/
|
/* EXTI interrupt init*/
|
||||||
|
|
|
@ -95,7 +95,7 @@ void PWR_ExitOffMode(void)
|
||||||
{
|
{
|
||||||
/* USER CODE BEGIN ExitOffMode_1 */
|
/* USER CODE BEGIN ExitOffMode_1 */
|
||||||
#if 1
|
#if 1
|
||||||
|
POWER_ON;
|
||||||
HAL_ResumeTick();
|
HAL_ResumeTick();
|
||||||
return;
|
return;
|
||||||
#endif
|
#endif
|
||||||
|
@ -132,7 +132,7 @@ void PWR_ExitStopMode(void)
|
||||||
|
|
||||||
/* USER CODE END ExitStopMode_1 */
|
/* USER CODE END ExitStopMode_1 */
|
||||||
/* Resume sysTick : work around for debugger problem in dual core */
|
/* Resume sysTick : work around for debugger problem in dual core */
|
||||||
|
POWER_ON;
|
||||||
HAL_ResumeTick();
|
HAL_ResumeTick();
|
||||||
/*Not retained periph:
|
/*Not retained periph:
|
||||||
ADC interface
|
ADC interface
|
||||||
|
|
Loading…
Reference in New Issue