serial library works with the null modem -- add some standard ports for future reference

db4
Doug Coleman 2009-03-17 15:03:01 -05:00
parent a1ba5fa999
commit 0820734749
1 changed files with 4 additions and 1 deletions

View File

@ -5,7 +5,10 @@ IN: io.serial.unix
: serial-obj ( -- obj )
serial new
"/dev/ttyS0" >>path
"/dev/ttyS0" >>path ! linux
! "/dev/dty00" >>path ! netbsd
! "/dev/ttyd0" >>path ! freebsd
! "/dev/ttyU0" >>path ! openbsd
19200 >>baud
{ IGNPAR ICRNL } flags >>iflag
{ } flags >>oflag