Skip to content

Commit

Permalink
Added control over the DTS and RTS serial lines (pins).
Browse files Browse the repository at this point in the history
  • Loading branch information
slav-at-attachix committed Apr 20, 2021
1 parent 3e88e51 commit de8c713
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Sming/Components/Hosted/include/Hosted/Serial.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ class Serial : public Stream
transport.closeDevice();
}

bool setDtr(bool on)
{
return transport.DTR(on);
}

bool setRts(bool on)
{
return transport.RTS(on);
}

/** @brief Initialise the serial port
* @param baud BAUD rate of the serial port (Default: 9600)
*/
Expand Down

0 comments on commit de8c713

Please sign in to comment.