Skip to content

UART Tx/Rx Pin Swap #2538

Closed
Closed
@fronders

Description

@fronders

I'm working on implementing Rx/Tx pin swap functionality (mentioned in #1418) for a project at the moment, thought I'd open a PR when I'm done.

I have a question about which option you guys prefer:

  • have a dedicated pin swap enable method for user to explicitly select i.e. smth like void setPinSwap(bool enabled);. This means user would have to call it before begin(), with Rx and Tx pins specified unswapped in constructor or setRx() and setTx()
  • automatically enable pin swap if Tx pin is found in the Rx pin map and vice versa

I personally prefer the second one that would just let the user select needed Rx Tx pins wanted and if MCU supports it things would just work.
What do you think?

Activity

fpistm

fpistm commented on Oct 28, 2024

@fpistm
Member

Hi @fronders
I agree second one seems good option.

added a commit that references this issue on Nov 5, 2024
8653cdc
added a commit that references this issue on Dec 12, 2024
b97879c
added this to the 2.10 milestone on Dec 20, 2024
self-assigned this
on Jan 3, 2025
added a commit that references this issue on Jan 22, 2025
bfdefe2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions

    UART Tx/Rx Pin Swap · Issue #2538 · stm32duino/Arduino_Core_STM32