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