1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

boards/nucleo-l152re: use TIM5 common timer configuration

This commit is contained in:
Alexandre Abadie 2019-07-05 19:52:48 +02:00
parent b710cda156
commit b1fa4fb2d9
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -23,6 +23,7 @@
#define PERIPH_CONF_H
#include "periph_cpu.h"
#include "cfg_timer_tim5.h"
#ifdef __cplusplus
extern "C" {
@ -83,25 +84,6 @@ static const dma_conf_t dma_config[] = {
#endif
/** @} */
/**
* @name Timer configuration
* @{
*/
static const timer_conf_t timer_config[] = {
{
.dev = TIM5,
.max = 0xffffffff,
.rcc_mask = RCC_APB1ENR_TIM5EN,
.bus = APB1,
.irqn = TIM5_IRQn
}
};
#define TIMER_0_ISR (isr_tim5)
#define TIMER_NUMOF (sizeof(timer_config) / sizeof(timer_config[0]))
/** @} */
/**
* @name UART configuration
* @{