You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "TimJTi (via GitHub)" <gi...@apache.org> on 2023/01/22 20:00:37 UTC

[GitHub] [nuttx] TimJTi commented on issue #8218: UART4 & UART5 missing from stm32f103r_pinmap.h

TimJTi commented on issue #8218:
URL: https://github.com/apache/nuttx/issues/8218#issuecomment-1399592089

   Easy I think?
   
   #if defined(ARCH_CHIP_STMxxx) || defined(ARCH_CHIP_STMyyy || etc
   #  define GPIO_UART4_RX
   etc
   #endif
   
   From: Andrew Brahim ***@***.***>
   Date: Sunday, 22 January 2023 at 19:26
   To: apache/nuttx ***@***.***>
   Cc: Subscribed ***@***.***>
   Subject: [apache/nuttx] UART4 & UART5 missing from stm32f103r_pinmap.h (Issue #8218)
   
   The higher density stm32f103Rx chips (such as the stm32f103ret6) have UART4 & UART5. These UARTS are missing from the following pinmap:
   
   https://github.com/apache/nuttx/blob/fac10b6ebdec6d98f8b833137153ec43e71d706d/arch/arm/src/stm32/hardware/stm32f103r_pinmap.h#L271
   
   Adding the following lines would fix this issue:
   
   #define GPIO_UART4_RX       (GPIO_INPUT|GPIO_CNF_INFLOAT|GPIO_MODE_INPUT|GPIO_PORTC|GPIO_PIN11)
   
   #define GPIO_UART4_TX       (GPIO_ALT|GPIO_CNF_AFPP|GPIO_MODE_50MHz|GPIO_PORTC|GPIO_PIN10)
   
   
   
   #define GPIO_UART5_RX       (GPIO_INPUT|GPIO_CNF_INFLOAT|GPIO_MODE_INPUT|GPIO_PORTD|GPIO_PIN2)
   
   #define GPIO_UART5_TX       (GPIO_ALT|GPIO_CNF_AFPP|GPIO_MODE_50MHz|GPIO_PORTC|GPIO_PIN12)
   
   However I am not sure if this would cause a breaking change on the lower density chips that do not have these UARTS.
   
   —
   Reply to this email directly, view it on GitHub<https://github.com/apache/nuttx/issues/8218>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANQZJKOH3CJEEYRJ2DO5GZ3WTWCWFANCNFSM6AAAAAAUDEVFNY>.
   You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org