Ignore:
Timestamp:
Mar 21, 2017, 7:39:48 PM (2 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
  • cpukit/libcsupport/src/termios_setbestbaud.c

    rc4b058ca r1c6926c1  
    2626  const rtems_assoc_t *current = &rtems_termios_baud_table[ 0 ];
    2727  const rtems_assoc_t *last = current;
    28   tcflag_t cbaud_mask = CBAUD;
    29   tcflag_t cbaud;
     28  speed_t spd;
    3029
    3130  while ( current->name != NULL && current->local_value < baud ) {
     
    3736    uint32_t mid = (last->local_value + current->local_value) / UINT32_C( 2 );
    3837
    39     cbaud = baud <= mid ? last->remote_value : current->remote_value;
     38    spd = baud <= mid ? last->remote_value : current->remote_value;
    4039  } else {
    41     cbaud = B460800;
     40    spd = B460800;
    4241  }
    4342
    44   term->c_cflag = (term->c_cflag & ~cbaud_mask) | cbaud;
     43  term->c_ispeed = spd;
     44  term->c_ospeed = spd;
    4545}
Note: See TracChangeset for help on using the changeset viewer.