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

commit 20315ad02e7e79b465463c04742aff96c9cdf3ac
Author: raiden00pl <[email protected]>
AuthorDate: Wed Nov 4 12:11:01 2026 +0100

    arch/arm/stm32n6: Let the boards select the USART1 pin speed.
    
    The pin speed depends on the board, so the USART1 pin map entries no
    longer carry one and the boards add it, as for the other peripherals.
    
    Assisted-by: Claude:claude-fable-5-1
    Signed-off-by: raiden00pl <[email protected]>
---
 arch/arm/src/stm32n6/hardware/stm32n6xxx_pinmap.h  | 4 ++--
 boards/arm/stm32n6/nucleo-n657x0-q/include/board.h | 4 ++--
 boards/arm/stm32n6/stm32n6570-dk/include/board.h   | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/arch/arm/src/stm32n6/hardware/stm32n6xxx_pinmap.h 
b/arch/arm/src/stm32n6/hardware/stm32n6xxx_pinmap.h
index 38ef5adc5a6..ae6663956ac 100644
--- a/arch/arm/src/stm32n6/hardware/stm32n6xxx_pinmap.h
+++ b/arch/arm/src/stm32n6/hardware/stm32n6xxx_pinmap.h
@@ -48,7 +48,7 @@
 
 /* USART1: PE5=TX (AF7), PE6=RX (AF7) - ST-Link Virtual COM Port */
 
-#define GPIO_USART1_TX_1   (GPIO_ALT | GPIO_AF7 | GPIO_SPEED_50MHZ | 
GPIO_PUSHPULL | GPIO_PORTE | GPIO_PIN5)
-#define GPIO_USART1_RX_1   (GPIO_ALT | GPIO_AF7 | GPIO_SPEED_50MHZ | 
GPIO_PORTE | GPIO_PIN6)
+#define GPIO_USART1_TX_1   (GPIO_ALT | GPIO_AF7 | GPIO_PUSHPULL | GPIO_PORTE | 
GPIO_PIN5)
+#define GPIO_USART1_RX_1   (GPIO_ALT | GPIO_AF7 | GPIO_PORTE | GPIO_PIN6)
 
 #endif /* __ARCH_ARM_SRC_STM32N6_HARDWARE_STM32N6XXX_PINMAP_H */
diff --git a/boards/arm/stm32n6/nucleo-n657x0-q/include/board.h 
b/boards/arm/stm32n6/nucleo-n657x0-q/include/board.h
index b924fc4596c..c2df714c06f 100644
--- a/boards/arm/stm32n6/nucleo-n657x0-q/include/board.h
+++ b/boards/arm/stm32n6/nucleo-n657x0-q/include/board.h
@@ -193,8 +193,8 @@
  * Connected to the on-board ST-Link to provide a Virtual COM Port.
  */
 
-#define GPIO_USART1_TX   GPIO_USART1_TX_1
-#define GPIO_USART1_RX   GPIO_USART1_RX_1
+#define GPIO_USART1_TX   (GPIO_USART1_TX_1 | GPIO_SPEED_50MHZ)
+#define GPIO_USART1_RX   (GPIO_USART1_RX_1 | GPIO_SPEED_50MHZ)
 
 /****************************************************************************
  * Public Data
diff --git a/boards/arm/stm32n6/stm32n6570-dk/include/board.h 
b/boards/arm/stm32n6/stm32n6570-dk/include/board.h
index 7a11400bd18..4f319680417 100644
--- a/boards/arm/stm32n6/stm32n6570-dk/include/board.h
+++ b/boards/arm/stm32n6/stm32n6570-dk/include/board.h
@@ -245,8 +245,8 @@
  * Connected to the on-board ST-Link to provide a Virtual COM Port.
  */
 
-#define GPIO_USART1_TX   GPIO_USART1_TX_1
-#define GPIO_USART1_RX   GPIO_USART1_RX_1
+#define GPIO_USART1_TX   (GPIO_USART1_TX_1 | GPIO_SPEED_50MHZ)
+#define GPIO_USART1_RX   (GPIO_USART1_RX_1 | GPIO_SPEED_50MHZ)
 
 /****************************************************************************
  * Public Data

Reply via email to