From d0dd196c304175eb328f5e5c017351daefe28f1d Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Fri, 25 Sep 2020 09:07:08 +0200 Subject: [PATCH] boards/stm32gx: use correct clock base for CLOCK_APBx defines --- boards/common/stm32/include/g4/cfg_clock_default.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boards/common/stm32/include/g4/cfg_clock_default.h b/boards/common/stm32/include/g4/cfg_clock_default.h index 479d27fbe1..a92b656a54 100644 --- a/boards/common/stm32/include/g4/cfg_clock_default.h +++ b/boards/common/stm32/include/g4/cfg_clock_default.h @@ -120,11 +120,11 @@ extern "C" { #ifndef CONFIG_CLOCK_APB1_DIV #define CONFIG_CLOCK_APB1_DIV (1) #endif -#define CLOCK_APB1 (CLOCK_CORECLOCK / CONFIG_CLOCK_APB1_DIV) /* max: 170MHz */ +#define CLOCK_APB1 (CLOCK_AHB / CONFIG_CLOCK_APB1_DIV) /* max: 170MHz */ #ifndef CONFIG_CLOCK_APB2_DIV #define CONFIG_CLOCK_APB2_DIV (1) #endif -#define CLOCK_APB2 (CLOCK_CORECLOCK / CONFIG_CLOCK_APB2_DIV) /* max: 170MHz */ +#define CLOCK_APB2 (CLOCK_AHB / CONFIG_CLOCK_APB2_DIV) /* max: 170MHz */ #ifdef __cplusplus }