Changeset c0c6168 in rtems for c/src/lib/libbsp/m68k/mrm332/console/sci.c
- Timestamp:
- Jan 20, 2003, 8:33:17 PM (18 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- d693386
- Parents:
- 1d36d2af
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/m68k/mrm332/console/sci.c
r1d36d2af rc0c6168 37 37 * 38 38 * $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 * 39 44 * Revision 1.1 2002/02/28 23:10:39 joel 40 45 * 2002-02-28 Mike Panetta <ahuitzot@mindspring.com> … … 121 126 *****************************************************************************/ 122 127 128 #include <rtems.h> 123 129 #include <bsp.h> 124 130 #include <rtems/bspIo.h> … … 578 584 * Desc: open routine for the interrupt based device driver 579 585 * Default state is 9600 baud, 8 bits, No parity, and 1 stop bit. ?? 586 **CHANGED** Default baud rate is now 19200, 8N1 580 587 * called from rtems_termios_open which is called from console_open 581 588 * Inputs: major - device number … … 616 623 // SciSetBaud( 57600); // set the baud rate 617 624 // SciSetBaud( 38400); // set the baud rate 618 //SciSetBaud( 19200); // set the baud rate619 SciSetBaud( 9600); // set the baud rate625 SciSetBaud( 19200); // set the baud rate 626 // SciSetBaud( 9600); // set the baud rate 620 627 621 628 SciSetParity(SCI_PARITY_NONE); // set parity to none … … 745 752 if (!baud_requested) 746 753 { 747 baud_requested = B9600; // default to 9600 baud 754 // baud_requested = B9600; // default to 9600 baud 755 baud_requested = B19200; // default to 19200 baud 748 756 } 749 757 … … 854 862 // SciSetBaud( 57600); // set the baud rate 855 863 // SciSetBaud( 38400); // set the baud rate 856 //SciSetBaud( 19200); // set the baud rate857 SciSetBaud( 9600); // set the baud rate864 SciSetBaud( 19200); // set the baud rate 865 // SciSetBaud( 9600); // set the baud rate 858 866 859 867 SciSetParity(SCI_PARITY_NONE); // set no parity … … 1494 1502 * In the first case, higher baud rates will help. 1495 1503 */ 1504 /* relinquish processor while waiting */ 1505 rtems_task_wake_after(RTEMS_YIELD_PROCESSOR); 1496 1506 } 1497 1507 … … 1544 1554 while ( SciCharAvailable() == 0 ) // anything there? 1545 1555 { 1546 // do nothing 1556 /* relinquish processor while waiting */ 1557 rtems_task_wake_after(RTEMS_YIELD_PROCESSOR); 1547 1558 } 1548 1559
Note: See TracChangeset
for help on using the changeset viewer.