Skip to content

Commit

Permalink
mcu/stm32: Fix TIM6 timer interrupt number
Browse files Browse the repository at this point in the history
Most supported device have TIM6_DAC_IRQn.
STM32U5xx line has TIM6_IRQn.
So default is changed to TIM6_DAC_IRQn while U5
overrides it to TIM6_IRQn

Signed-off-by: Jerzy Kasenberg <[email protected]>
  • Loading branch information
kasjer committed Mar 6, 2024
1 parent e0b0516 commit f595be9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hw/mcu/stm/stm32_common/include/stm32_common/stm32_hal.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void stm32_periph_create(void);
#define STM32_HAL_TIMER_TIM4_IRQ TIM4_IRQn
#endif
#ifndef STM32_HAL_TIMER_TIM6_IRQ
#define STM32_HAL_TIMER_TIM6_IRQ TIM6_IRQn
#define STM32_HAL_TIMER_TIM6_IRQ TIM6_DAC_IRQn
#endif
#ifndef STM32_HAL_TIMER_TIM7_IRQ
#define STM32_HAL_TIMER_TIM7_IRQ TIM7_IRQn
Expand Down
1 change: 1 addition & 0 deletions hw/mcu/stm/stm32u5xx/include/mcu/stm32_hal.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ struct stm32_hal_spi_cfg {

#define STM32_HAL_TIMER_TIM1_IRQ TIM1_UP_IRQn
#define STM32_HAL_TIMER_TIM8_IRQ TIM8_UP_IRQn
#define STM32_HAL_TIMER_TIM6_IRQ TIM6_IRQn
#define STM32_HAL_TIMER_TIM15_IRQ TIM15_IRQn
#define STM32_HAL_TIMER_TIM16_IRQ TIM16_IRQn
#define STM32_HAL_TIMER_TIM17_IRQ TIM17_IRQn
Expand Down

0 comments on commit f595be9

Please sign in to comment.