diff --git a/boards/nucleo-l432kc/include/periph_conf.h b/boards/nucleo-l432kc/include/periph_conf.h index 4a18c0a139..96579c26d5 100644 --- a/boards/nucleo-l432kc/include/periph_conf.h +++ b/boards/nucleo-l432kc/include/periph_conf.h @@ -25,6 +25,7 @@ #include "periph_cpu.h" #include "cfg_rtt_default.h" +#include "cfg_timer_tim2.h" #ifdef __cplusplus extern "C" { @@ -74,25 +75,6 @@ extern "C" { #define CLOCK_APB2 (CLOCK_CORECLOCK / 2) /** @} */ -/** - * @name Timer configuration - * @{ - */ -static const timer_conf_t timer_config[] = { - { - .dev = TIM2, - .max = 0xffffffff, - .rcc_mask = RCC_APB1ENR1_TIM2EN, - .bus = APB1, - .irqn = TIM2_IRQn - } -}; - -#define TIMER_0_ISR isr_tim2 - -#define TIMER_NUMOF (sizeof(timer_config) / sizeof(timer_config[0])) -/** @} */ - /** * @name UART configuration * @{ diff --git a/boards/nucleo-l433rc/include/periph_conf.h b/boards/nucleo-l433rc/include/periph_conf.h index 648333312c..fd6f744208 100644 --- a/boards/nucleo-l433rc/include/periph_conf.h +++ b/boards/nucleo-l433rc/include/periph_conf.h @@ -23,6 +23,7 @@ #include "periph_cpu.h" #include "cfg_rtt_default.h" +#include "cfg_timer_tim2.h" #ifdef __cplusplus extern "C" { @@ -83,25 +84,6 @@ extern "C" { #define CLOCK_APB2 (CLOCK_CORECLOCK / 2) /** @} */ -/** - * @name Timer configuration - * @{ - */ -static const timer_conf_t timer_config[] = { - { - .dev = TIM2, - .max = 0xffffffff, - .rcc_mask = RCC_APB1ENR1_TIM2EN, - .bus = APB1, - .irqn = TIM2_IRQn - } -}; - -#define TIMER_0_ISR isr_tim2 - -#define TIMER_NUMOF (sizeof(timer_config) / sizeof(timer_config[0])) -/** @} */ - /** * @name UART configuration * @{ diff --git a/boards/nucleo-l452re/include/periph_conf.h b/boards/nucleo-l452re/include/periph_conf.h index 83e5ae2fa5..47b0bc275d 100644 --- a/boards/nucleo-l452re/include/periph_conf.h +++ b/boards/nucleo-l452re/include/periph_conf.h @@ -27,6 +27,7 @@ #include "periph_cpu.h" #include "cfg_rtt_default.h" +#include "cfg_timer_tim2.h" #ifdef __cplusplus extern "C" { @@ -86,25 +87,6 @@ extern "C" { #define CLOCK_APB2 (CLOCK_CORECLOCK / 2) /** @} */ -/** - * @name Timer configuration - * @{ - */ -static const timer_conf_t timer_config[] = { - { - .dev = TIM2, - .max = 0xffffffff, - .rcc_mask = RCC_APB1ENR1_TIM2EN, - .bus = APB1, - .irqn = TIM2_IRQn - } -}; - -#define TIMER_0_ISR isr_tim2 - -#define TIMER_NUMOF (sizeof(timer_config) / sizeof(timer_config[0])) -/** @} */ - /** * @name UART configuration * @{