19 #include "periph_cpu.h"
35 #if defined(RCC_APB1ENR_TIM2EN)
36 .rcc_mask = RCC_APB1ENR_TIM2EN,
38 .rcc_mask = RCC_APB1ENR1_TIM2EN,
46 .rcc_mask = RCC_APB2ENR_TIM15EN,
48 .irqn = TIM1_BRK_TIM15_IRQn,
54 .rcc_mask = RCC_APB2ENR_TIM16EN,
56 .irqn = TIM1_UP_TIM16_IRQn,
61 #define TIMER_0_ISR isr_tim2
62 #define TIMER_1_ISR isr_tim1_brk_tim15
63 #define TIMER_2_ISR isr_tim1_up_tim16
65 #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.