Skip to content

Commit

Permalink
at32: add mux 3 for tmr9 on port c (betaflight#13222)
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt Kleiner authored Dec 17, 2023
1 parent 65aaf73 commit 7d122c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/main/drivers/at32/timer_at32f43x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion src/main/drivers/at32/timer_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7d122c4

Please sign in to comment.