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 06bf7a38cbf47ab8145a4e2fba4e51780758585f
Author: raiden00pl <[email protected]>
AuthorDate: Mon Oct 12 17:52:21 2026 +0200

    arch/arm/stm32h7: Add FDCAN3 pins for H72x/H73x.
    
    FDCAN3 is only available on STM32H72x/H73x: RX on PD12 (AF5), PF6 and
    PG10 (AF2), TX on PD13 (AF5), PF7 and PG9 (AF2).
    
    Tested: stm32h735g-dk build with FDCAN3 enabled.
    
    Assisted-by: Claude:claude-opus-5-5
    Signed-off-by: raiden00pl <[email protected]>
---
 arch/arm/src/stm32h7/hardware/stm32h7x3xx_pinmap.h | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/arch/arm/src/stm32h7/hardware/stm32h7x3xx_pinmap.h 
b/arch/arm/src/stm32h7/hardware/stm32h7x3xx_pinmap.h
index 7374d494b7f..0439968ca37 100644
--- a/arch/arm/src/stm32h7/hardware/stm32h7x3xx_pinmap.h
+++ b/arch/arm/src/stm32h7/hardware/stm32h7x3xx_pinmap.h
@@ -155,6 +155,17 @@
 #define GPIO_CAN2_TXFD_1          
(GPIO_ALT|GPIO_AF9|GPIO_PUSHPULL|GPIO_PORTB|GPIO_PIN7)
 #define GPIO_CAN2_TXFD_2          
(GPIO_ALT|GPIO_AF9|GPIO_PUSHPULL|GPIO_PORTD|GPIO_PIN10)
 
+/* Additional STM32H72x/73x FDCAN3 pins */
+
+#ifdef CONFIG_STM32_STM32H72XXX_OR_STM32H73XXX
+#  define GPIO_CAN3_RX_1           
(GPIO_ALT|GPIO_AF5|GPIO_PUSHPULL|GPIO_PORTD|GPIO_PIN12)
+#  define GPIO_CAN3_RX_2           
(GPIO_ALT|GPIO_AF2|GPIO_PUSHPULL|GPIO_PORTF|GPIO_PIN6)
+#  define GPIO_CAN3_RX_3           
(GPIO_ALT|GPIO_AF2|GPIO_PUSHPULL|GPIO_PORTG|GPIO_PIN10)
+#  define GPIO_CAN3_TX_1           
(GPIO_ALT|GPIO_AF5|GPIO_PUSHPULL|GPIO_PORTD|GPIO_PIN13)
+#  define GPIO_CAN3_TX_2           
(GPIO_ALT|GPIO_AF2|GPIO_PUSHPULL|GPIO_PORTF|GPIO_PIN7)
+#  define GPIO_CAN3_TX_3           
(GPIO_ALT|GPIO_AF2|GPIO_PUSHPULL|GPIO_PORTG|GPIO_PIN9)
+#endif
+
 /* Comparator (COMP) */
 
 #define GPIO_COMP_1_OUT_1         (GPIO_ALT|GPIO_AF13|GPIO_PORTC|GPIO_PIN5)

Reply via email to