Loading...
Searching...
No Matches
cfg_timer_tim2_tim15_tim16.h File Reference

Common configuration for STM32 Timer peripheral based on TIM2, TIM15, and TIM16. More...

Detailed Description

Common configuration for STM32 Timer peripheral based on TIM2, TIM15, and TIM16.

Author
Marian Buschsieweke maria.nosp@m.n.bu.nosp@m.schsi.nosp@m.ewek.nosp@m.e@ovg.nosp@m.u.de

Definition in file cfg_timer_tim2_tim15_tim16.h.

#include "periph_cpu.h"
+ Include dependency graph for cfg_timer_tim2_tim15_tim16.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Timer configuration

#define TIMER_0_ISR   isr_tim2
 IRQ of timer at idx 0.
 
#define TIMER_1_ISR   isr_tim1_brk_tim15
 IRQ of timer at idx 1.
 
#define TIMER_2_ISR   isr_tim1_up_tim16
 IRQ of timer at idx 2.
 
#define TIMER_NUMOF   ARRAY_SIZE(timer_config)
 
static const timer_conf_t timer_config []
 

Macro Definition Documentation

◆ TIMER_0_ISR

#define TIMER_0_ISR   isr_tim2

IRQ of timer at idx 0.

Definition at line 65 of file cfg_timer_tim2_tim15_tim16.h.

◆ TIMER_1_ISR

#define TIMER_1_ISR   isr_tim1_brk_tim15

IRQ of timer at idx 1.

Definition at line 66 of file cfg_timer_tim2_tim15_tim16.h.

◆ TIMER_2_ISR

#define TIMER_2_ISR   isr_tim1_up_tim16

IRQ of timer at idx 2.

Definition at line 67 of file cfg_timer_tim2_tim15_tim16.h.

◆ TIMER_NUMOF

#define TIMER_NUMOF   ARRAY_SIZE(timer_config)

Definition at line 69 of file cfg_timer_tim2_tim15_tim16.h.

Variable Documentation

◆ timer_config

const timer_conf_t timer_config[]
static
Initial value:
= {
{
.dev = TIM2,
.max = 0xffffffff,
.rcc_mask = RCC_APB1ENR1_TIM2EN,
.bus = APB1,
.irqn = TIM2_IRQn
},
{
.dev = TIM15,
.max = 0x0000ffff,
.rcc_mask = RCC_APB2ENR_TIM15EN,
.bus = APB2,
.irqn = TIM1_BRK_TIM15_IRQn,
.channel_numof = 2,
},
{
.dev = TIM16,
.max = 0x0000ffff,
.rcc_mask = RCC_APB2ENR_TIM16EN,
.bus = APB2,
.irqn = TIM1_UP_TIM16_IRQn,
.channel_numof = 1,
},
}
@ APB1
Advanced Peripheral Bus 1
Definition periph_cpu.h:79
@ APB2
Advanced Peripheral Bus 2
Definition periph_cpu.h:80

Definition at line 35 of file cfg_timer_tim2_tim15_tim16.h.