From 0cbde9ebe4db2dc5ec96213fb29dfda96f212b1b Mon Sep 17 00:00:00 2001 From: Darryl Ring Date: Tue, 18 Aug 2026 15:40:49 -0700 Subject: [PATCH] arch/arm/stm32h5: Fix SPI4 macro verification There was a duplicate check for SPI1 macros instead of SPI4. Signed-off-by: Darryl Ring --- arch/arm/src/stm32h5/stm32_spi.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/arm/src/stm32h5/stm32_spi.c b/arch/arm/src/stm32h5/stm32_spi.c index 42ce61211f7..0a50f770c26 100644 --- a/arch/arm/src/stm32h5/stm32_spi.c +++ b/arch/arm/src/stm32h5/stm32_spi.c @@ -221,18 +221,18 @@ # endif #endif /* SPI3 */ -#if defined(CONFIG_STM32_SPI1) -# ifndef STM32_SPI1_FREQUENCY -# error Must define STM32_SPI1_FREQUENCY in board.h +#if defined(CONFIG_STM32_SPI4) +# ifndef STM32_SPI4_FREQUENCY +# error Must define STM32_SPI4_FREQUENCY in board.h # else -# if STM32_SPI1_FREQUENCY > SPI_MAX_KER_CK -# error Not supported SPI1 frequency +# if STM32_SPI4_FREQUENCY > SPI_MAX_KER_CK +# error Not supported SPI4 frequency # endif # endif -# ifndef STM32_RCC_CCIPR3_SPI1SEL -# error Must define STM32_RCC_CCIPR3_SPI1SEL in board.h +# ifndef STM32_RCC_CCIPR3_SPI4SEL +# error Must define STM32_RCC_CCIPR3_SPI4SEL in board.h # endif -#endif /* SPI1 */ +#endif /* SPI4 */ #if defined(CONFIG_STM32_SPI5) # ifndef STM32_SPI5_FREQUENCY