diff options
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/dev/serial/sc16is752.c | 2 | ||||
-rw-r--r-- | cpukit/libcsupport/include/rtems/termiostypes.h | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/cpukit/dev/serial/sc16is752.c b/cpukit/dev/serial/sc16is752.c index 96fac30efc..74c3ad3d7a 100644 --- a/cpukit/dev/serial/sc16is752.c +++ b/cpukit/dev/serial/sc16is752.c @@ -148,7 +148,7 @@ static bool sc16is752_set_attributes( ctx->lcr = 0; - baud = rtems_termios_baud_to_number(term->c_cflag); + baud = rtems_termios_baud_to_number(term->c_ospeed); baud_successful = set_baud(ctx, baud); if (!baud_successful){ return false; diff --git a/cpukit/libcsupport/include/rtems/termiostypes.h b/cpukit/libcsupport/include/rtems/termiostypes.h index f68de0c12f..1140c6162d 100644 --- a/cpukit/libcsupport/include/rtems/termiostypes.h +++ b/cpukit/libcsupport/include/rtems/termiostypes.h @@ -530,14 +530,12 @@ extern const rtems_assoc_t rtems_termios_baud_table []; speed_t rtems_termios_number_to_baud(rtems_termios_baud_t baud); /** - * @brief Convert Baud Part of Termios control flags to an integral Baud Value - * - * There is no need to mask the @a c_cflag with @c CBAUD. + * @brief Converts the baud flags to an integral baud value. * * @retval 0 Invalid baud value or a baud value of @c B0. * @retval other Integral baud value. */ -rtems_termios_baud_t rtems_termios_baud_to_number(speed_t c_cflag); +rtems_termios_baud_t rtems_termios_baud_to_number(speed_t baud); /** * @brief Convert Bxxx Constant to Index |