1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/nucleo-f303re: add more timers

This commit is contained in:
Marian Buschsieweke 2023-11-21 09:01:56 +01:00
parent 4232fea164
commit 3848a37d14
No known key found for this signature in database
GPG Key ID: 77AA882EC78084E6
2 changed files with 5 additions and 1 deletions

View File

@ -36,7 +36,11 @@ static const timer_conf_t timer_config[] = {
{
.dev = TIM2,
.max = 0xffffffff,
#if defined(RCC_APB1ENR_TIM2EN)
.rcc_mask = RCC_APB1ENR_TIM2EN,
#else
.rcc_mask = RCC_APB1ENR1_TIM2EN,
#endif
.bus = APB1,
.irqn = TIM2_IRQn
},

View File

@ -33,7 +33,7 @@
#include "periph_cpu.h"
#include "clk_conf.h"
#include "cfg_timer_tim2.h"
#include "cfg_timer_tim2_tim15_tim16.h"
#ifdef __cplusplus
extern "C" {