21#ifndef CFG_TIMER_DEFAULT_H
22#define CFG_TIMER_DEFAULT_H
24#include "periph_cpu.h"
43 .rcu_mask = RCU_APB2EN_TIMER0EN_Msk,
45 .irqn = TIMER0_Channel_IRQn
50 .rcu_mask = RCU_APB1EN_TIMER1EN_Msk,
54#if !defined(MODULE_PERIPH_PM)
58 .rcu_mask = RCU_APB1EN_TIMER2EN_Msk,
62#if defined(CPU_MODEL_GD32VF103C8T6) || defined(CPU_MODEL_GD32VF103CBT6) || \
63 defined(CPU_MODEL_GD32VF103R8T6) || defined(CPU_MODEL_GD32VF103RBT6) || \
64 defined(CPU_MODEL_GD32VF103T8U6) || defined(CPU_MODEL_GD32VF103TBU6) || \
65 defined(CPU_MODEL_GD32VF103V8T6) || defined(CPU_MODEL_GD32VF103VBT6)
69 .rcu_mask = RCU_APB1EN_TIMER3EN_Msk,
76 .rcu_mask = RCU_APB1EN_TIMER4EN_Msk,
84#define TIMER_0_IRQN TIMER0_Channel_IRQn
85#define TIMER_1_IRQN TIMER1_IRQn
87#if !defined(MODULE_PERIPH_PWM)
88#define TIMER_2_IRQN TIMER2_IRQn
89#if defined(CPU_MODEL_GD32VF103C8T6) || defined(CPU_MODEL_GD32VF103CBT6) || \
90 defined(CPU_MODEL_GD32VF103R8T6) || defined(CPU_MODEL_GD32VF103RBT6) || \
91 defined(CPU_MODEL_GD32VF103T8U6) || defined(CPU_MODEL_GD32VF103TBU6) || \
92 defined(CPU_MODEL_GD32VF103V8T6) || defined(CPU_MODEL_GD32VF103VBT6)
93#define TIMER_3_IRQN TIMER3_IRQn
94#define TIMER_4_IRQN TIMER4_IRQn
98#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.