20#ifndef CFG_TIMER_TIM2_TIM15_TIM16_H
21#define CFG_TIMER_TIM2_TIM15_TIM16_H
23#include "periph_cpu.h"
39#if defined(RCC_APB1ENR_TIM2EN)
40 .rcc_mask = RCC_APB1ENR_TIM2EN,
42 .rcc_mask = RCC_APB1ENR1_TIM2EN,
50 .rcc_mask = RCC_APB2ENR_TIM15EN,
52 .irqn = TIM1_BRK_TIM15_IRQn,
58 .rcc_mask = RCC_APB2ENR_TIM16EN,
60 .irqn = TIM1_UP_TIM16_IRQn,
65#define TIMER_0_ISR isr_tim2
66#define TIMER_1_ISR isr_tim1_brk_tim15
67#define TIMER_2_ISR isr_tim1_up_tim16
69#define TIMER_NUMOF ARRAY_SIZE(timer_config)
@ APB1
Advanced Peripheral Bus 1
@ APB2
Advanced Peripheral Bus 2
Timer device configuration.
TC0_t * dev
Pointer to the used as Timer device.