Open colinrgodsey opened 4 years ago
Uses the IOCTL for darwin, and termios2 for linux custom baudrate. Retains non-darwin (termios 1) behavior for other posix targets. Change also modified the DTR "hangup" behavior for linux to more accurately mimic a terminal.
I was able to test this on OSX, Windows and Linux running 1M BAUD on an external device. Working a-ok here. The only thing I've yet to test is BSD.
I've been using this for Raspbian and it works great.
Uses the IOCTL for darwin, and termios2 for linux custom baudrate. Retains non-darwin (termios 1) behavior for other posix targets. Change also modified the DTR "hangup" behavior for linux to more accurately mimic a terminal.