From 8dd14d9aaaf66592db3b8866b0c7836fe072827a Mon Sep 17 00:00:00 2001 From: dusan19 <35773661+dusan19@users.noreply.github.com> Date: Mon, 21 Jul 2025 19:53:38 +0200 Subject: [PATCH] platforms/stm32_common: hrt.c: define timer 1 IRQ properly for H7 platform (#25260) --- platforms/nuttx/src/px4/stm/stm32_common/hrt/hrt.c | 4 ++++ 1 file changed, 4 insertions(+) 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