diff --git a/boards/lobaro-lorabox/Makefile.include b/boards/lobaro-lorabox/Makefile.include index fe3ff9316a..ab0bcab31d 100644 --- a/boards/lobaro-lorabox/Makefile.include +++ b/boards/lobaro-lorabox/Makefile.include @@ -3,7 +3,7 @@ export CPU = stm32l1 export CPU_MODEL = stm32l151cb_a # add the common header files to the include path -INCLUDES += -I$(RIOTBOARD)/lobaro-lorabox/include +INCLUDES += -I$(RIOTBOARD)/common/stm32/include # configure the serial terminal PORT_LINUX ?= /dev/ttyUSB0 diff --git a/boards/lobaro-lorabox/include/periph_conf.h b/boards/lobaro-lorabox/include/periph_conf.h index 30a727f2ba..38f0c51887 100644 --- a/boards/lobaro-lorabox/include/periph_conf.h +++ b/boards/lobaro-lorabox/include/periph_conf.h @@ -25,6 +25,7 @@ #define PERIPH_CONF_H #include "periph_cpu.h" +#include "cfg_timer_tim2.h" #ifdef __cplusplus extern "C" { @@ -70,25 +71,6 @@ extern "C" { #define CLOCK_APB1 (CLOCK_CORECLOCK / 1) /** @} */ -/** - * @name Timer configuration - * @{ - */ -static const timer_conf_t timer_config[] = { - { - .dev = TIM2, - .max = 0x0000ffff, - .rcc_mask = RCC_APB1ENR_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 * @{