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
  • c/src/lib/libbsp/m68k/gen68340/console/console.c

    rc4b058ca r1c6926c1  
    475475 rtems_interrupt_level level;
    476476 float ispeed, ospeed;
    477  int isp, osp;
    478 
    479  /* output speed */
    480  if (t->c_cflag & CBAUDEX)
    481     osp = (t->c_cflag & CBAUD) + CBAUD + 1;
    482  else
    483     osp = t->c_cflag & CBAUD;
    484 
    485  /* input speed */
    486  isp = (t->c_cflag / (CIBAUD / CBAUD)) &  CBAUD;
    487477
    488478 /* convert it */
    489  ispeed = rtems_termios_baud_to_number(isp);
    490  ospeed = rtems_termios_baud_to_number(osp);
     479 ispeed = rtems_termios_baud_to_number(t->c_ispeed);
     480 ospeed = rtems_termios_baud_to_number(t->c_ospeed);
    491481
    492482 if (ispeed || ospeed) {
     
    516506
    517507 /* if serial module configuration has been changed */
    518  if (t->c_cflag & (CBAUD | CIBAUD | CSIZE | PARENB)) {
     508 if (t->c_cflag & (CSIZE | PARENB)) {
    519509    rtems_interrupt_disable(level);
    520510    /* reinit the UART */
     
    694684        rtems_libio_ioctl_args_t *args = arg;
    695685
    696         if (args->command == RTEMS_IO_SET_ATTRIBUTES)
     686  if (args->command == TIOCSETA)
    697687                SetAttributes (minor, (struct termios *)args->buffer);
    698688
Note: See TracChangeset for help on using the changeset viewer.