Ignore:
Timestamp:
Mar 21, 2017, 7:39:48 PM (3 years ago)
Author:
Kevin Kirspel <kevin-kirspel@…>
Branches:
master
Children:
94a4865
Parents:
c4b058ca
git-author:
Kevin Kirspel <kevin-kirspel@…> (03/21/17 19:39:48)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/22/17 10:55:04)
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/mvme167/console/console.c

    rc4b058ca r1c6926c1  
    726726   */
    727727  newarg.iop = args->iop;
    728   newarg.command = RTEMS_IO_GET_ATTRIBUTES;
     728  newarg.command = TIOCGETA;
    729729  newarg.buffer = &termios;
    730730  sc = rtems_termios_ioctl (&newarg);
     
    739739   */
    740740  termios.c_cflag |= CLOCAL;    /* Ignore modem status lines */
    741   newarg.command = RTEMS_IO_SET_ATTRIBUTES;
     741  newarg.command = TIOCGETA;
    742742  sc = rtems_termios_ioctl (&newarg);
    743743  if (sc != RTEMS_SUCCESSFUL)
     
    845845
    846846  /* baud rates */
    847   out_baud = rtems_termios_baud_to_number(t->c_cflag & CBAUD);
    848   in_baud  = rtems_termios_baud_to_number(t->c_cflag & CBAUD);
     847  out_baud = rtems_termios_baud_to_number(t->c_ospeed);
     848  in_baud  = rtems_termios_baud_to_number(t->c_ispeed);
    849849
    850850  /* Number of bits per char */
Note: See TracChangeset for help on using the changeset viewer.