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/sh/sh7045/sci/sci_termios.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/sh/sh7045/sci/sci_termios.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/c/src/lib/libcpu/sh/sh7045/sci/sci_termios.c b/c/src/lib/libcpu/sh/sh7045/sci/sci_termios.c index db9040e409..5d588065af 100644 --- a/c/src/lib/libcpu/sh/sh7045/sci/sci_termios.c +++ b/c/src/lib/libcpu/sh/sh7045/sci/sci_termios.c @@ -59,7 +59,7 @@ * Automatically generated function imported from scitab.rel */ extern int _sci_get_brparms( - tcflag_t cflag, + speed_t spd, unsigned char *smr, unsigned char *brr ); @@ -77,9 +77,10 @@ int sh_sci_set_attributes( int a; tcflag_t c_cflag = t->c_cflag; + speed_t spd = t->c_ospeed; - if ( c_cflag & CBAUD ) { - if ( _sci_get_brparms( c_cflag, &smr, &brr ) != 0 ) + if ( spd ) { + if ( _sci_get_brparms( spd, &smr, &brr ) != 0 ) return -1 ; } |