You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(uart): Add function to invert hardware UART Tx line (#11428)
* feat(uart): Add function to invert hardware UART Tx line
Simply clone existing Rx functionality for Tx.
Allow granular control over both lines.
Avoid overloading HardwareSerial::begin() to change the bool invert parameter to a bitmask type.
Add an untested implementation for ESP32C6, ESP32H2, ESP32P4 that references the different register
naming on those chips.
* feat(uart): Refactor UART signal inversion handling
Refactor UART inversion functions to use a helper for signal inversion. Update UART bus array structure to include inversion mask.
* feat(uart): Add UART signal inversion functions
Added functions for UART signal inversion and updated existing function signatures.
* feat(uart): Refactor UART signal inversion handling
* feat(uart): Change setRxInvert and setTxInvert to return bool
* feat(uart) : Refactor serial inversion methods to return bool
Changed setRxInvert, setTxInvert to return bool. Added setCtsInvert and setRtsInvert methods.
* feat(uart): adds commentatries
Added functions for UART pins signal inversion.
* feat(uart): add commentaties
* feat(uart): Refactor uartPinSignalInversion for mutex locking
* Refactor UART inversion functions to use new method
* fix(uart): missing uart struct usage
* fix(uart): missing function return value
* feat(uart): add commentaties
* fix(uart): inverting rx instead of tx
* feat(uart): logging for UART signal inversion
Added logging for signal inversion in UART functions.
* feat(uart): standard verbose log message
* feat(uart): add not inverted verbose log message
* fix(uart): misspeling comment
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix(uart): fixes bad code formating
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix(uart): fixes misspeling
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix(uart): fixes bad code formating
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix(uart): fixes bad code formating
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix(uart): fixes bad code formating
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix(uart): fixes extra spaces
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix(uart): extra spacing
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* feat(uart): Improve logging for UART signal inversion
* ci(pre-commit): Apply automatic fixes
---------
Co-authored-by: Sugar Glider <rodrigo.garcia@espressif.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
0 commit comments