Skip to content
Prev Previous commit
Next Next commit
adds Hardware Flow Control mode and CTS/RTS pin setting
  • Loading branch information
SuGlider committed Feb 12, 2022
commit 6ab86c687ce330020c8ac694ebf5fef72365a026
4 changes: 2 additions & 2 deletions cores/esp32/HardwareSerial.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ class HardwareSerial: public Stream

// Negative Pin Number will keep it unmodified, thus this function can set individual pins
// SetPins shall be called after Serial begin()
void setPins(int8_t rxPin = -1, int8_t txPin = -1);
void setAllPins(int8_t rxPin = -1, int8_t txPin = -1, int8_t ctsPin = -1, int8_t rtsPin = -1);
void setPins(int8_t rxPin, int8_t txPin);
void setAllPins(int8_t rxPin, int8_t txPin, int8_t ctsPin, int8_t rtsPin);
// Enables or disables Hardware Flow Control using RTS and/or CTS pins (must use setAllPins() before)
void setHwFlowCtrlMode(uint8_t mode = HW_FLOWCTRL_CTS_RTS, uint8_t threshold = 64); // 64 is half FIFO Length

Expand Down