diff options
author | Kevin Kirspel <kevin-kirspel@idexx.com> | 2017-03-21 15:39:48 -0400 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-03-22 11:55:04 +0100 |
commit | 1c6926c11f2e5efcb166c668b097d64a0321d66e (patch) | |
tree | 30683dcf11979f51273413aade68a3828d00da10 /c/src/lib/libbsp/m68k/mvme167/console | |
parent | bsp/atsam: Fix DMA support of some drivers (diff) | |
download | rtems-1c6926c11f2e5efcb166c668b097d64a0321d66e.tar.bz2 |
termios: Synchronize with latest FreeBSD headers
Adding modified FreeBSD headers to synchronize RTEMS termios with
FreeBSD. Modify termios to support dedicated input and output baud for
termios structure. Updated BSPs to use dedicated input and output baud
in termios structure. Updated tools to use dedicated input and output
baud in termios structure. Updated termios testsuites to use dedicated
input and output baud in termios structure.
Close #2897.
Diffstat (limited to 'c/src/lib/libbsp/m68k/mvme167/console')
-rw-r--r-- | c/src/lib/libbsp/m68k/mvme167/console/console.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/m68k/mvme167/console/console.c b/c/src/lib/libbsp/m68k/mvme167/console/console.c index 9ac8f7076f..3b7aecb541 100644 --- a/c/src/lib/libbsp/m68k/mvme167/console/console.c +++ b/c/src/lib/libbsp/m68k/mvme167/console/console.c @@ -725,7 +725,7 @@ int cd2401_firstOpen( * We could have made a tcgetattr() call if we had our fd. */ newarg.iop = args->iop; - newarg.command = RTEMS_IO_GET_ATTRIBUTES; + newarg.command = TIOCGETA; newarg.buffer = &termios; sc = rtems_termios_ioctl (&newarg); if (sc != RTEMS_SUCCESSFUL) @@ -738,7 +738,7 @@ int cd2401_firstOpen( * on the ttyMutex that it already owns; this is safe in RTEMS. */ termios.c_cflag |= CLOCAL; /* Ignore modem status lines */ - newarg.command = RTEMS_IO_SET_ATTRIBUTES; + newarg.command = TIOCGETA; sc = rtems_termios_ioctl (&newarg); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); @@ -844,8 +844,8 @@ int cd2401_setAttributes( /* Determine what the line parameters should be */ /* baud rates */ - out_baud = rtems_termios_baud_to_number(t->c_cflag & CBAUD); - in_baud = rtems_termios_baud_to_number(t->c_cflag & CBAUD); + out_baud = rtems_termios_baud_to_number(t->c_ospeed); + in_baud = rtems_termios_baud_to_number(t->c_ispeed); /* Number of bits per char */ csize = 0x07; /* to avoid a warning */ |