Skip to content

Commit d8b1d34

Browse files
ABOSTMfpistm
authored andcommitted
Call function configIPClock() to restore system IP clocks
Signed-off-by: Alexandre Bourdiol <[email protected]>
1 parent 15c56c0 commit d8b1d34

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/low_power.c

+2-6
Original file line numberDiff line numberDiff line change
@@ -339,19 +339,15 @@ void LowPower_EnableWakeUpUart(serial_t *serial, void (*FuncPtr)(void))
339339
}
340340

341341
/**
342-
* @brief Configures system clock after wake-up from STOP
342+
* @brief Configures system clock and system IP clocks after wake-up from STOP
343343
* @note Weaked function which can be redefined by user at the sketch level.
344344
* By default, call 'SystemClock_Config()'.
345345
* @param None
346346
* @retval None
347347
*/
348348
WEAK void SystemClock_ConfigFromStop(void)
349349
{
350-
#if defined(__HAL_RCC_PWR_CLK_ENABLE)
351-
/* Enable PWR clock, needed for example: voltage scaling */
352-
__HAL_RCC_PWR_CLK_ENABLE();
353-
#endif
354-
350+
configIPClock();
355351
SystemClock_Config();
356352
}
357353

0 commit comments

Comments
 (0)