-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Support for UART RX/TX level inversion on F3/F7 platforms #1160
Labels
enhancement
New feature or request
Milestone
Comments
Added to [U(S)ART] request list #1418 |
ndoo
added a commit
to ndoo/Arduino_Core_STM32
that referenced
this issue
Mar 27, 2025
This enables UART Tx and Rx invert function on STM32 families that support it. In order to enable Tx and Rx invert, call respectively: ```c++ Serial1.setTxInvert(); Serial1.setRxInvert(); ``` Fixes: stm32duino#1160 stm32duino#2669 See also: stm32duino#1418 Signed-off-by: Andrew Yong <me@ndoo.sg>
ndoo
added a commit
to ndoo/Arduino_Core_STM32
that referenced
this issue
Mar 27, 2025
This enables UART Tx and Rx invert function on STM32 families that support it. In order to enable Tx and Rx invert, call respectively: ```c++ Serial1.setTxInvert(); Serial1.setRxInvert(); ``` Fixes: stm32duino#1160 stm32duino#2669 See also: stm32duino#1418 Signed-off-by: Andrew Yong <me@ndoo.sg>
3 tasks
ndoo
added a commit
to ndoo/Arduino_Core_STM32
that referenced
this issue
Mar 28, 2025
This enables UART Tx and Rx invert function on STM32 families that support it. In order to enable Tx and Rx invert, call respectively: ```c++ Serial1.setTxInvert(); Serial1.setRxInvert(); ``` Fixes: stm32duino#1160 stm32duino#2669 See also: stm32duino#1418 Signed-off-by: Andrew Yong <me@ndoo.sg>
ndoo
added a commit
to ndoo/Arduino_Core_STM32
that referenced
this issue
Mar 28, 2025
This enables UART Tx, Rx and data invert function on STM32 families that support it. In order to enable Tx, Rx and/or data invert, call respectively: ```c++ Serial1.setTxInvert(); Serial1.setRxInvert(); Serial1.setDataInvert(); ``` Fixes: stm32duino#1160 stm32duino#2669 See also: stm32duino#1418 Signed-off-by: Andrew Yong <me@ndoo.sg>
ndoo
added a commit
to ndoo/Arduino_Core_STM32
that referenced
this issue
Mar 28, 2025
This enables UART Tx, Rx and data invert function on STM32 families that support it. In order to enable Tx, Rx and/or data invert, call respectively: ```c++ Serial1.setTxInvert(); Serial1.setRxInvert(); Serial1.setDataInvert(); ``` Fixes: stm32duino#1160 stm32duino#2669 See also: stm32duino#1418 Signed-off-by: Andrew Yong <me@ndoo.sg>
ndoo
added a commit
to ndoo/Arduino_Core_STM32
that referenced
this issue
Mar 29, 2025
This enables UART Tx, Rx and data invert function on STM32 families that support it. In order to enable Tx, Rx and/or data invert, call respectively: ```c++ Serial1.setTxInvert(); Serial1.setRxInvert(); Serial1.setDataInvert(); ``` Fixes: stm32duino#1160 stm32duino#2669 See also: stm32duino#1418 Signed-off-by: Andrew Yong <me@ndoo.sg>
fpistm
pushed a commit
that referenced
this issue
Mar 31, 2025
This enables UART Tx, Rx and data invert function on STM32 families that support it. In order to enable Tx, Rx and/or data invert, call respectively: ```c++ Serial1.setTxInvert(); Serial1.setRxInvert(); Serial1.setDataInvert(); ``` Fixes: #1160 #2669 See also: #1418 Signed-off-by: Andrew Yong <me@ndoo.sg>
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Please add API in HardwareSerial class to enable/disable RX/TX level inversion for platforms that support it (e.g. F3 or F7)
This can be done e.g. by adding a inverse_logic parameter to the constructor (similarily to SoftwareSerial), and based on that configuring the AdvancedInit member of the UART_AdvFeatureInitTypeDef struct in uart_init function in the uart.c wrapper to something like:
The text was updated successfully, but these errors were encountered: