Ignore:
Timestamp:
Jan 20, 2003, 8:33:17 PM (19 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
d693386
Parents:
1d36d2af
Message:

2003-01-20 Duane Gustavus <duane@…>

  • console/sci.c, include/mrm332.h, startup/linkcmds, startup/linkcmds_ROM: Various updates to make this run properly from ROM.
File:
1 edited

Legend:

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

    r1d36d2af rc0c6168  
    3737*
    3838* $Log$
     39* Revision 1.2  2002/11/04 14:26:47  joel
     40* 2002-11-04    Joel Sherrill <joel@OARcorp.com>
     41*
     42*       * console/sci.c, spurious/spinit.c: Removed warnings.
     43*
    3944* Revision 1.1  2002/02/28 23:10:39  joel
    4045* 2002-02-28    Mike Panetta <ahuitzot@mindspring.com>
     
    121126*****************************************************************************/
    122127
     128#include <rtems.h>
    123129#include <bsp.h>
    124130#include <rtems/bspIo.h>
     
    578584* Desc:     open routine for the interrupt based device driver
    579585*           Default state is 9600 baud, 8 bits, No parity, and 1 stop bit. ??
     586**CHANGED** Default baud rate is now 19200, 8N1
    580587*           called from rtems_termios_open which is called from console_open
    581588* Inputs:   major - device number
     
    616623//  SciSetBaud( 57600);                         // set the baud rate
    617624//  SciSetBaud( 38400);                         // set the baud rate
    618 //  SciSetBaud( 19200);                         // set the baud rate
    619     SciSetBaud(  9600);                         // set the baud rate
     625SciSetBaud( 19200);                         // set the baud rate
     626//    SciSetBaud(  9600);                         // set the baud rate
    620627
    621628    SciSetParity(SCI_PARITY_NONE);              // set parity to none
     
    745752    if (!baud_requested)
    746753    {
    747         baud_requested = B9600;                 // default to 9600 baud
     754//        baud_requested = B9600;                 // default to 9600 baud
     755        baud_requested = B19200;                 // default to 19200 baud
    748756    }
    749757   
     
    854862//  SciSetBaud( 57600);                         // set the baud rate
    855863//  SciSetBaud( 38400);                         // set the baud rate
    856 //  SciSetBaud( 19200);                         // set the baud rate
    857   SciSetBaud(  9600);                         // set the baud rate
     864  SciSetBaud( 19200);                         // set the baud rate
     865//  SciSetBaud(  9600);                         // set the baud rate
    858866
    859867    SciSetParity(SCI_PARITY_NONE);              // set no parity
     
    14941502         * In the first case, higher baud rates will help.
    14951503         */
     1504      /* relinquish processor while waiting */
     1505      rtems_task_wake_after(RTEMS_YIELD_PROCESSOR);
    14961506    }
    14971507
     
    15441554    while ( SciCharAvailable() == 0 )           // anything there?
    15451555    {
    1546         // do nothing
     1556      /* relinquish processor while waiting */
     1557      rtems_task_wake_after(RTEMS_YIELD_PROCESSOR);
    15471558    }
    15481559
Note: See TracChangeset for help on using the changeset viewer.