This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 0cbde9ebe4d arch/arm/stm32h5: Fix SPI4 macro verification
0cbde9ebe4d is described below

commit 0cbde9ebe4db2dc5ec96213fb29dfda96f212b1b
Author: Darryl Ring <[email protected]>
AuthorDate: Tue Aug 18 15:40:49 2026 -0700

    arch/arm/stm32h5: Fix SPI4 macro verification
    
    There was a duplicate check for SPI1 macros instead of SPI4.
    
    Signed-off-by: Darryl Ring <[email protected]>
---
 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

Reply via email to