summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Kirspel <kevin-kirspel@idexx.com>2017-04-10 09:41:02 -0400
committerJoel Sherrill <joel@rtems.org>2017-04-10 09:39:13 -0500
commitd2390ce47beb619ef8e86a57c832b501b7acb5c5 (patch)
tree733016f8606848689397a4b0cc34ec084f866b45
parent2c23639dddf1025cb6feb77ac834c41436519c4c (diff)
downloadrtems-d2390ce47beb619ef8e86a57c832b501b7acb5c5.tar.bz2
Updating default termios initialization for dedicated input/output baud rates
updates #2897.
-rw-r--r--cpukit/libcsupport/src/termios.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpukit/libcsupport/src/termios.c b/cpukit/libcsupport/src/termios.c
index 6557135125..2fb9d4f483 100644
--- a/cpukit/libcsupport/src/termios.c
+++ b/cpukit/libcsupport/src/termios.c
@@ -578,10 +578,13 @@ rtems_termios_open_tty(
*/
tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;
tty->termios.c_oflag = OPOST | ONLCR | XTABS;
- tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;
+ tty->termios.c_cflag = CS8 | CREAD | CLOCAL;
tty->termios.c_lflag =
ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;
+ tty->termios.c_ispeed = B9600;
+ tty->termios.c_ospeed = B9600;
+
tty->termios.c_cc[VINTR] = '\003';
tty->termios.c_cc[VQUIT] = '\034';
tty->termios.c_cc[VERASE] = '\177';