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/libcpu/bfin/serial/uart.c | |
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 '')
-rw-r--r-- | c/src/lib/libcpu/bfin/serial/uart.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/c/src/lib/libcpu/bfin/serial/uart.c b/c/src/lib/libcpu/bfin/serial/uart.c index 79f09415c4..617c59dab3 100644 --- a/c/src/lib/libcpu/bfin/serial/uart.c +++ b/c/src/lib/libcpu/bfin/serial/uart.c @@ -9,7 +9,7 @@ * found in the file LICENSE in this distribution or at * http://www.rtems.org/license/LICENSE. */ - + #include <rtems.h> #include <rtems/libio.h> #include <rtems/termiostypes.h> @@ -159,7 +159,7 @@ static int setAttributes(int minor, const struct termios *termios) uint16_t lcr; base = uartsConfig->channels[minor].uart_baseAddress; - switch (termios->c_cflag & CBAUD) { + switch (termios->c_ospeed) { case B0: baud = 0; break; case B50: baud = 50; break; case B75: baud = 75; break; |