Added speed-setting for FreeBSD
This commit is contained in:
parent
a4aa68c783
commit
c3bd174d21
1 changed files with 2 additions and 0 deletions
|
@ -113,6 +113,8 @@ int main( int argc, char **argv )
|
|||
tio.c_cflag = B4800 | CS8 | CLOCAL | CREAD; /* CREAD not used yet */
|
||||
tio.c_iflag = IGNPAR;
|
||||
tio.c_oflag = 0;
|
||||
tio.c_ispeed = 4800;
|
||||
tio.c_ospeed = 4800;
|
||||
tcflush(fd, TCIFLUSH);
|
||||
tcsetattr(fd,TCSANOW,&tio);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue