-
Notifications
You must be signed in to change notification settings - Fork 1k
Support U[S]ART Inversion on STM32U0 #2669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Milestone
Comments
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
3 tasks
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 <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
STM32U0 (and possibly other parts) support level inversion with the following:
huartx.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_TXINVERT_INIT;
huartx.AdvancedInit.TxPinLevelInvert = UART_ADVFEATURE_TXINV_ENABLE;
Please support these through the Arduino core.
Alternative workarounds include inverting the content before sending, or using an inverting buffer, but supporting this natively would be preferable.
Additional context
This is to support SDI-12 using the single-pin mode of the USART.
The text was updated successfully, but these errors were encountered: