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

Common configuration for STM32 Timer peripheral based on TIM2. More...

Detailed Description

Common configuration for STM32 Timer peripheral based on TIM2.

Author
Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr

Definition in file cfg_timer_tim2.h.

#include "periph_cpu.h"
+ Include dependency graph for cfg_timer_tim2.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
 
#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

Definition at line 52 of file cfg_timer_tim2.h.

◆ TIMER_NUMOF

#define TIMER_NUMOF   ARRAY_SIZE(timer_config)

Definition at line 54 of file cfg_timer_tim2.h.

Variable Documentation

◆ timer_config

const timer_conf_t timer_config[]
static
Initial value:
= {
{
.dev = TIM2,
.max = 0xffffffff,
.rcc_mask = RCC_APB1ENR_TIM2EN,
.bus = APB1,
.irqn = TIM2_IRQn
}
}
@ APB1
Advanced Peripheral Bus 1
Definition periph_cpu.h:79

Definition at line 32 of file cfg_timer_tim2.h.