From 16db45f77e507e2712bbd2b5c6315c041e94dbb1 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Mon, 29 Nov 2021 14:12:18 +0100 Subject: [PATCH] cpu/stm32: fix missing clock configuration defines for g0 --- cpu/stm32/stmclk/stmclk_gx.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cpu/stm32/stmclk/stmclk_gx.c b/cpu/stm32/stmclk/stmclk_gx.c index 72eed33fc2..ded9a44a0f 100644 --- a/cpu/stm32/stmclk/stmclk_gx.c +++ b/cpu/stm32/stmclk/stmclk_gx.c @@ -71,6 +71,10 @@ #define RCC_CFGR_SW_HSE (RCC_CFGR_SW_0) #define RCC_CFGR_SW_PLL (RCC_CFGR_SW_1) +#define RCC_CFGR_SWS_HSI (0) +#define RCC_CFGR_SWS_HSE (RCC_CFGR_SWS_0) +#define RCC_CFGR_SWS_PLL (RCC_CFGR_SWS_1) + #if CONFIG_CLOCK_HSISYS_DIV == 1 #define CLOCK_HSI_DIV (0) #elif CONFIG_CLOCK_HSISYS_DIV == 2