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

Merge pull request #20097 from maribu/boards/nucleo-f303re

boards/nucleo-f303re: add more timers
This commit is contained in:
Marian Buschsieweke 2023-11-21 12:59:09 +00:00 committed by GitHub
commit 1cdd114e6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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" {