19#ifndef CFG_TIMER_TIM2_H
20#define CFG_TIMER_TIM2_H
22#include "periph_cpu.h"
35#if defined(CPU_FAM_STM32L0) || defined(CPU_FAM_STM32L1)
40#if defined(CPU_FAM_STM32L4) || defined(CPU_FAM_STM32WB) || \
41 defined(CPU_FAM_STM32WL) || defined(CPU_FAM_STM32G4)
42 .rcc_mask = RCC_APB1ENR1_TIM2EN,
44 .rcc_mask = RCC_MC_APB1ENSETR_TIM2EN,
46 .rcc_mask = RCC_APB1ENR_TIM2EN,
53#define TIMER_0_ISR isr_tim2
55#define TIMER_NUMOF ARRAY_SIZE(timer_config)
@ APB1
Advanced Peripheral Bus 1
Timer device configuration.
TC0_t * dev
Pointer to the used as Timer device.