Changeset c0357a8 in rtems


Ignore:
Timestamp:
May 22, 2008, 8:34:20 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
07edbef5
Parents:
adaf33af
Message:

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

  • console/mc68360_scc.c: Remove explicit switch and call termios_baud_to_number().
Location:
c/src/lib/libbsp/powerpc/ep1a
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/ep1a/ChangeLog

    radaf33af rc0357a8  
     12008-05-22      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * console/mc68360_scc.c: Remove explicit switch and call
     4        termios_baud_to_number().
     5
    162008-05-15      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • c/src/lib/libbsp/powerpc/ep1a/console/mc68360_scc.c

    radaf33af rc0357a8  
    2323#include <stdlib.h>
    2424#include <rtems/bspIo.h>
     25#include <rtems/termiostypes.h>
    2526#include <string.h>
    2627
     
    638639   m360  = ptr->chip->m360;
    639640
    640    switch (t->c_cflag & CBAUD)
    641    {
    642       case B50:      baud = 50;      break;
    643       case B75:      baud = 75;      break;
    644       case B110:     baud = 110;     break;
    645       case B134:     baud = 134;     break;
    646       case B150:     baud = 150;     break;
    647       case B200:     baud = 200;     break;
    648       case B300:     baud = 300;     break;
    649       case B600:     baud = 600;     break;
    650       case B1200:    baud = 1200;    break;
    651       case B1800:    baud = 1800;    break;
    652       case B2400:    baud = 2400;    break;
    653       case B4800:    baud = 4800;    break;
    654       case B9600:    baud = 9600;    break;
    655       case B19200:   baud = 19200;   break;
    656       case B38400:   baud = 38400;   break;
    657       case B57600:   baud = 57600;   break;
    658       case B115200:  baud = 115200;  break;
    659       case B230400:  baud = 230400;  break;
    660       case B460800:  baud = 460800;  break;
    661       default:       baud = -1;      break;
    662    }
    663 
    664    if (baud > 0)
    665    {
     641  baud = termios_baud_to_number(t->c_cflag & CBAUD);
     642   if (baud > 0) {
    666643      scc_write32(
    667644        "pBRGC",
Note: See TracChangeset for help on using the changeset viewer.