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 /testsuites/libtests/termios01/termios_testdriver.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 'testsuites/libtests/termios01/termios_testdriver.c')
-rw-r--r-- | testsuites/libtests/termios01/termios_testdriver.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuites/libtests/termios01/termios_testdriver.c b/testsuites/libtests/termios01/termios_testdriver.c index 43aeccd284..bd5c7a12d2 100644 --- a/testsuites/libtests/termios01/termios_testdriver.c +++ b/testsuites/libtests/termios01/termios_testdriver.c @@ -85,7 +85,7 @@ int termios_test_driver_set_attributes( const char *char_size = "5"; const char *stop = "NONE"; - baud_requested = t->c_cflag & CBAUD; + baud_requested = t->c_ispeed; number = rtems_termios_baud_to_number( baud_requested ); @@ -164,7 +164,7 @@ rtems_device_driver termios_test_driver_open( int rc; rtems_libio_open_close_args_t *args = arg; static bool firstCall = true; - + static const rtems_termios_callbacks Callbacks = { NULL, /* firstOpen */ NULL, /* lastClose */ @@ -192,7 +192,7 @@ rtems_device_driver termios_test_driver_open( size_t i; firstCall = false; - + for (i = 0; i < sizeof( allocSizes ) / sizeof( allocSizes [0] ); ++i) { void *opaque = rtems_heap_greedy_allocate( allocSizes, i ); |