1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/lobaro-lorabox: use common timer configuration

This commit is contained in:
Alexandre Abadie 2019-07-05 19:35:29 +02:00
parent 3c00d41764
commit b710cda156
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405
2 changed files with 2 additions and 20 deletions

View File

@ -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

View File

@ -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
* @{