From 8f1c5ab91968b15efdf7645bf8a50b578db1e514 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Tue, 8 Sep 2020 15:54:32 +0200 Subject: [PATCH] Update boards/common/stm32/include/f0/cfg_clock_default.h --- boards/common/stm32/include/f0/cfg_clock_default.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards/common/stm32/include/f0/cfg_clock_default.h b/boards/common/stm32/include/f0/cfg_clock_default.h index 50038d220a..dd49a049d6 100644 --- a/boards/common/stm32/include/f0/cfg_clock_default.h +++ b/boards/common/stm32/include/f0/cfg_clock_default.h @@ -128,7 +128,7 @@ extern "C" { #ifndef CONFIG_CLOCK_APB1_DIV #define CONFIG_CLOCK_APB1_DIV (1) #endif -#define CLOCK_APB1 (CLOCK_CORECLOCK / CONFIG_CLOCK_APB1_DIV) /* max: 48MHz */ +#define CLOCK_APB1 (CLOCK_AHB / CONFIG_CLOCK_APB1_DIV) /* max: 48MHz */ /** @} */ #ifdef __cplusplus