Changeset 0c04063b in rtems


Ignore:
Timestamp:
May 23, 2008, 3:48:06 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
24f1347
Parents:
495c3e0
Message:

2008-05-23 Joel Sherrill <joel.sherrill@…>

  • console/m340uart.c: Eliminate copies of switches to convert termios Bxxx constants to xxx as an integer. Use the shared termios_baud_to_number() routine to do the same conversion.
Location:
c/src/lib/libbsp/m68k/gen68340
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/gen68340/ChangeLog

    r495c3e0 r0c04063b  
     12008-05-23      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * console/m340uart.c: Eliminate copies of switches to convert termios
     4        Bxxx constants to xxx as an integer. Use the shared
     5        termios_baud_to_number() routine to do the same conversion.
     6
    172008-05-14      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libbsp/m68k/gen68340/console/m340uart.c

    r495c3e0 r0c04063b  
    238238}
    239239
    240 /******************************************************
    241   Name: termios_baud_rates_equivalence
    242   Input parameters: Termios coded speed
    243   Output parameters: explicit speed
    244   Description: ioctl calls return termios coded speed
    245                we need to know real speed in order
    246                to use the functions above
    247  *****************************************************/
    248 float termios_baud_rates_equivalence ( int speed )
    249 {
    250  switch (speed) {
    251         default:        return 0;       break;
    252         case B50:       return 50;      break;
    253         case B75:       return 75;      break;
    254         case B110:      return 110;     break;
    255         case B134:      return 134;     break;
    256         case B150:      return 150;     break;
    257         case B200:      return 200;     break;
    258         case B300:      return 300;     break;
    259         case B600:      return 600;     break;
    260         case B1200:     return 1200;    break;
    261         case B1800:     return 1800;    break;
    262         case B2400:     return 2400;    break;
    263         case B4800:     return 4800;    break;
    264         case B9600:     return 9600;    break;
    265         case B19200:    return 19200;   break;
    266         case B38400:    return 38400;   break;
    267         case B57600:    return 57600;   break;
    268         case B115200:   return 115200;  break;
    269         case B230400:   return 230400;  break;
    270         case B460800:   return 460800;  break;
    271  }
    272  return 0;
    273 }
    274 
    275240/****************************************************************************************************/
    276241
Note: See TracChangeset for help on using the changeset viewer.