diff --git a/platforms/nuttx/src/px4/stm/stm32_common/hrt/hrt.c b/platforms/nuttx/src/px4/stm/stm32_common/hrt/hrt.c index d0cda2e8db..70003e4414 100644 --- a/platforms/nuttx/src/px4/stm/stm32_common/hrt/hrt.c +++ b/platforms/nuttx/src/px4/stm/stm32_common/hrt/hrt.c @@ -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