Skip to content

Commit f3c6811

Browse files
FRASTMMaureenHelm
authored andcommitted
drivers: clock_control: stm32g0 soc enables the PWR clock
After system reset, the PWR interface clock must be enabled by setting the PWREN bit of the RCC_APBENR1 This sequence is needed to use the RTC. Signed-off-by: Francois Ramu <[email protected]>
1 parent f58f6b8 commit f3c6811

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/clock_control/clock_stm32g0.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ void config_pll_init(LL_UTILS_PLLInitTypeDef *pllinit)
4242
*/
4343
void config_enable_default_clocks(void)
4444
{
45-
/* Do nothing */
45+
/* Enable the power interface clock */
46+
LL_APB1_GRP1_EnableClock(LL_APB1_GRP1_PERIPH_PWR);
4647
}
4748

4849
/**

0 commit comments

Comments
 (0)