• James Armstrong's avatar
    Add setMode function HardwareSerial.c to set the esp32 uart mode for use with... · aa1f60e5
    James Armstrong authored
    Add setMode function HardwareSerial.c to set the esp32 uart mode for use with RS485 auto RTS (#7935)
    
    * Added setMode function to set the esp32 uart mode
    
    Used to set the esp32 uart mode for use with RS485 Half Duplex and the auto RTS pin mode. This will set/clear the RTS pin output to control the RE/DE pin on most RS485 chips.
    
    * Add Success (bool) return in some functions
    
    * Add Success (bool) return code to some functions
    
    * Add Success (bool) return to some functions
    
    * Add Success (bool) return to some functions
    
    * Fix uartSetRxTimeout return type
    
    ---------
    Co-authored-by: default avatarRodrigo Garcia <rodrigo.garcia@espressif.com>
    aa1f60e5
esp32-hal-uart.h 5.87 KB