tarm / serial

BSD 3-Clause "New" or "Revised" License
1.6k stars 451 forks source link

custom baudrate for darwin and linux #113

Open colinrgodsey opened 4 years ago

colinrgodsey commented 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.

jaredwolff commented 4 years ago

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.

jackjameshoward commented 3 years ago

I've been using this for Raspbian and it works great.