From 7d122c481a64650e99f7f31009ddf657cc983271 Mon Sep 17 00:00:00 2001 From: Benedikt Kleiner Date: Sun, 17 Dec 2023 10:04:20 +0100 Subject: [PATCH] at32: add mux 3 for tmr9 on port c (#13222) --- src/main/drivers/at32/timer_at32f43x.c | 2 ++ src/main/drivers/at32/timer_def.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/drivers/at32/timer_at32f43x.c b/src/main/drivers/at32/timer_at32f43x.c index ebe129b9f..2dfedfa9c 100644 --- a/src/main/drivers/at32/timer_at32f43x.c +++ b/src/main/drivers/at32/timer_at32f43x.c @@ -116,6 +116,8 @@ const timerHardware_t fullTimerHardware[FULL_TIMER_CHANNEL_COUNT] = { DEF_TIM(TMR5, CH3, PC11, 0, 0, 0), // PORTC MUX 3 + DEF_TIM(TMR9, CH1, PC4, 0, 0, 0), + DEF_TIM(TMR9, CH2, PC5, 0, 0, 0), DEF_TIM(TMR8, CH1, PC6, 0, 0, 0), DEF_TIM(TMR8, CH2, PC7, 0, 0, 0), DEF_TIM(TMR8, CH3, PC8, 0, 0, 0), diff --git a/src/main/drivers/at32/timer_def.h b/src/main/drivers/at32/timer_def.h index 42b58427e..ec5f376e8 100644 --- a/src/main/drivers/at32/timer_def.h +++ b/src/main/drivers/at32/timer_def.h @@ -26,7 +26,7 @@ #define USED_TIMERS ( BIT(1) | BIT(2) | BIT(3) | BIT(4) | BIT(5) | BIT(8) | BIT(9) | BIT(10) | BIT(11) | BIT(12) | BIT(13) | BIT(14) | BIT(20) ) #define TIMUP_TIMERS ( BIT(1) | BIT(2) | BIT(3) | BIT(4) | BIT(5) | BIT(8) | BIT(20) ) -#define FULL_TIMER_CHANNEL_COUNT 101 +#define FULL_TIMER_CHANNEL_COUNT 103 #define HARDWARE_TIMER_DEFINITION_COUNT 15 // allow conditional definition of DMA related members -- 2.11.4.GIT