diff --git a/boards/common/blxxxpill/include/periph_conf.h b/boards/common/blxxxpill/include/periph_conf.h index f6ad5a7799..9439892737 100644 --- a/boards/common/blxxxpill/include/periph_conf.h +++ b/boards/common/blxxxpill/include/periph_conf.h @@ -25,7 +25,14 @@ #define PERIPH_CONF_H /* blxxxpill boards provide an LSE */ -#define CLOCK_LSE (1) +#ifndef CONFIG_BOARD_HAS_LSE +#define CONFIG_BOARD_HAS_LSE 1 +#endif + +/* blxxxpill boards provide an HSE */ +#ifndef CONFIG_BOARD_HAS_HSE +#define CONFIG_BOARD_HAS_HSE 1 +#endif #include "periph_cpu.h" #include "f1f3/cfg_clock_default.h" diff --git a/boards/common/iotlab/include/periph_conf_common.h b/boards/common/iotlab/include/periph_conf_common.h index 0a0b6ebf1a..17c2edeeee 100644 --- a/boards/common/iotlab/include/periph_conf_common.h +++ b/boards/common/iotlab/include/periph_conf_common.h @@ -21,13 +21,15 @@ #define PERIPH_CONF_COMMON_H /* iotlab boards provide an LSE */ -#define CLOCK_LSE (1) +#ifndef CONFIG_BOARD_HAS_LSE +#define CONFIG_BOARD_HAS_LSE 1 +#endif /* HSE is clocked at 16MHz */ -#define CLOCK_HSE MHZ(16) - -/* Adjust PLL predevider to reach 72MHz sysclock */ -#define CLOCK_PLL_PREDIV (2) +#ifndef CONFIG_BOARD_HAS_HSE +#define CONFIG_BOARD_HAS_HSE 1 +#endif +#define CLOCK_HSE MHZ(16) #include "periph_cpu.h" #include "f1f3/cfg_clock_default.h" diff --git a/boards/fox/include/periph_conf.h b/boards/fox/include/periph_conf.h index c308261c31..1047e61a77 100644 --- a/boards/fox/include/periph_conf.h +++ b/boards/fox/include/periph_conf.h @@ -19,14 +19,16 @@ #ifndef PERIPH_CONF_H #define PERIPH_CONF_H -/* iotlab boards provide an LSE */ -#define CLOCK_LSE (1) +/* This board provides an LSE */ +#ifndef CONFIG_BOARD_HAS_LSE +#define CONFIG_BOARD_HAS_LSE 1 +#endif /* HSE is clocked at 16MHz */ -#define CLOCK_HSE MHZ(16) - -/* Adjust PLL predevider to reach 72MHz sysclock */ -#define CLOCK_PLL_PREDIV (2) +#ifndef CONFIG_BOARD_HAS_HSE +#define CONFIG_BOARD_HAS_HSE 1 +#endif +#define CLOCK_HSE MHZ(16) #include "periph_cpu.h" #include "f1f3/cfg_clock_default.h" diff --git a/boards/nucleo-f103rb/include/periph_conf.h b/boards/nucleo-f103rb/include/periph_conf.h index 4205f526aa..73765a9d74 100644 --- a/boards/nucleo-f103rb/include/periph_conf.h +++ b/boards/nucleo-f103rb/include/periph_conf.h @@ -20,7 +20,14 @@ #define PERIPH_CONF_H /* This board provides an LSE */ -#define CLOCK_LSE (1) +#ifndef CONFIG_BOARD_HAS_LSE +#define CONFIG_BOARD_HAS_LSE 1 +#endif + +/* This board provides an HSE */ +#ifndef CONFIG_BOARD_HAS_HSE +#define CONFIG_BOARD_HAS_HSE 1 +#endif #include "periph_cpu.h" #include "f1f3/cfg_clock_default.h" diff --git a/boards/olimexino-stm32/include/periph_conf.h b/boards/olimexino-stm32/include/periph_conf.h index 1820912345..f5bedeb1be 100644 --- a/boards/olimexino-stm32/include/periph_conf.h +++ b/boards/olimexino-stm32/include/periph_conf.h @@ -20,7 +20,14 @@ #define PERIPH_CONF_H /* This board provides an LSE */ -#define CLOCK_LSE (1) +#ifndef CONFIG_BOARD_HAS_LSE +#define CONFIG_BOARD_HAS_LSE 1 +#endif + +/* This board provides an HSE */ +#ifndef CONFIG_BOARD_HAS_HSE +#define CONFIG_BOARD_HAS_HSE 1 +#endif #include "periph_cpu.h" #include "f1f3/cfg_clock_default.h" diff --git a/boards/opencm904/include/periph_conf.h b/boards/opencm904/include/periph_conf.h index d18121c9e6..f92aa4d10d 100644 --- a/boards/opencm904/include/periph_conf.h +++ b/boards/opencm904/include/periph_conf.h @@ -19,6 +19,11 @@ #ifndef PERIPH_CONF_H #define PERIPH_CONF_H +/* This board provides an HSE */ +#ifndef CONFIG_BOARD_HAS_HSE +#define CONFIG_BOARD_HAS_HSE 1 +#endif + #include "periph_cpu.h" #include "f1f3/cfg_clock_default.h"