mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-25 16:56:25 +08:00
platforms/stm32_common: hrt.c: define timer 1 IRQ properly for H7 platform (#25260)
This commit is contained in:
@@ -79,7 +79,11 @@
|
||||
# define HRT_TIMER_BASE STM32_TIM1_BASE
|
||||
# define HRT_TIMER_POWER_REG STM32_RCC_APB2ENR
|
||||
# define HRT_TIMER_POWER_BIT RCC_APB2ENR_TIM1EN
|
||||
#if defined(CONFIG_ARCH_CHIP_STM32H7)
|
||||
# define HRT_TIMER_VECTOR STM32_IRQ_TIMCC
|
||||
#else
|
||||
# define HRT_TIMER_VECTOR STM32_IRQ_TIM1CC
|
||||
#endif
|
||||
# define HRT_TIMER_CLOCK STM32_APB2_TIM1_CLKIN
|
||||
# if CONFIG_STM32_TIM1
|
||||
# error must not set CONFIG_STM32_TIM1=y and HRT_TIMER=1
|
||||
|
||||
Reference in New Issue
Block a user