19#include "periph_cpu.h"
36#if defined(RCC_APB1ENR1_TIM5EN)
37 .rcc_mask = RCC_APB1ENR1_TIM5EN,
38#elif defined(RCC_APB1LENR_TIM5EN)
39 .rcc_mask = RCC_APB1LENR_TIM5EN,
41 .rcc_mask = RCC_APB1ENR_TIM5EN,
48#if defined(CPU_FAM_STM32L0) || defined(CPU_FAM_STM32L1)
53#if defined(RCC_APB1ENR1_TIM2EN)
54 .rcc_mask = RCC_APB1ENR1_TIM2EN,
55#elif defined(RCC_MC_APB1ENSETR_TIM2EN)
56 .rcc_mask = RCC_MC_APB1ENSETR_TIM2EN,
57#elif defined(RCC_APB1LENR_TIM2EN)
58 .rcc_mask = RCC_APB1LENR_TIM2EN,
60 .rcc_mask = RCC_APB1ENR_TIM2EN,
67#define TIMER_0_ISR isr_tim5
68#define TIMER_1_ISR isr_tim2
70#define TIMER_NUMOF ARRAY_SIZE(timer_config)
@ APB1
Advanced Peripheral Bus 1.
Timer device configuration.