Changeset c0c6168 in rtems
- Timestamp:
- 01/20/03 20:33:17 (20 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- d693386
- Parents:
- 1d36d2af
- Location:
- c/src/lib/libbsp/m68k/mrm332
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/m68k/mrm332/ChangeLog
r1d36d2af rc0c6168 1 2003-01-20 Duane Gustavus <duane@unt.edu> 2 3 * console/sci.c, include/mrm332.h, startup/linkcmds, 4 startup/linkcmds_ROM: Various updates to make this run properly 5 from ROM. 6 1 7 2002-12-20 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 8 -
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 -
c/src/lib/libbsp/m68k/mrm332/include/mrm332.h
r1d36d2af rc0c6168 34 34 #define XTAL 32768.0 /* crystal frequency in Hz */ 35 35 36 #if 136 #if 0 37 37 /* Default MRM clock rate (8.388688 MHz) set by CPU32: */ 38 38 #define MRM_W 0 /* system clock parameters */ … … 41 41 #endif 42 42 43 #if 043 #if 1 44 44 /* 16.77722 MHz: */ 45 45 #define MRM_W 1 /* system clock parameters */ … … 56 56 57 57 #define SYS_CLOCK (XTAL*4.0*(MRM_Y+1)*(1 << (2*MRM_W+MRM_X))) 58 #define SCI_BAUD 9600 /* RS232 Baud Rate */58 #define SCI_BAUD 19200 /* RS232 Baud Rate */ 59 59 60 60 -
c/src/lib/libbsp/m68k/mrm332/startup/linkcmds
r1d36d2af rc0c6168 34 34 * Declare some sizes. 35 35 */ 36 _RamBase = DEFINED(_RamBase) ? _RamBase : 0x 03000;37 _RamSize = DEFINED(_RamSize) ? _RamSize : 0x7 d000;36 _RamBase = DEFINED(_RamBase) ? _RamBase : 0x10000; 37 _RamSize = DEFINED(_RamSize) ? _RamSize : 0x70000; 38 38 _RamEnd = _RamBase + _RamSize; 39 39 _HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x10000; … … 42 42 MEMORY 43 43 { 44 ram : ORIGIN = 0x 03000, LENGTH = 0x7d00044 ram : ORIGIN = 0x10000, LENGTH = 0x70000 45 45 } 46 46 … … 90 90 *(.fini) 91 91 *crtn.o(.fini) 92 93 /* 94 * Special FreeBSD sysctl sections. 95 */ 96 . = ALIGN (16); 97 __start_set_sysctl_set = .; 98 *(set_sysctl_*); 99 __stop_set_sysctl_set = ABSOLUTE(.); 100 *(set_domain_*); 101 *(set_pseudo_*); 92 102 93 103 /* … … 144 154 . = ALIGN (16); 145 155 PROVIDE (end = .); 146 147 156 . += _StackSize; 148 157 . = ALIGN (16); -
c/src/lib/libbsp/m68k/mrm332/startup/linkcmds_ROM
r1d36d2af rc0c6168 51 51 _copy_data_from_rom = 1; 52 52 _HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x10000; 53 _StackSize = DEFINED(_StackSize) ? _StackSize : 0x 1000;53 _StackSize = DEFINED(_StackSize) ? _StackSize : 0x2000; 54 54 55 55 /* … … 92 92 *crtn.o(.fini) 93 93 94 *(.eh_fram) 94 /* 95 * Special FreeBSD sysctl sections. 96 */ 97 . = ALIGN (16); 98 __start_set_sysctl_set = .; 99 *(set_sysctl_*); 100 __stop_set_sysctl_set = ABSOLUTE(.); 101 *(set_domain_*); 102 *(set_pseudo_*); 103 104 /* 105 * C++ constructors/destructors 106 * 107 * gcc uses crtbegin.o to find the start of the constructors 108 * and destructors so we make sure it is first. Because this 109 * is a wildcard, it doesn't matter if the user does not 110 * actually link against crtbegin.o; the linker won't look for 111 * a file to match a wildcard. The wildcard also means that 112 * it doesn't matter which directory crtbegin.o is in. The 113 * constructor and destructor list are terminated in 114 * crtend.o. The same comments apply to it. 115 */ 116 . = ALIGN (16); 117 *crtbegin.o(.ctors) 118 *(.ctors) 119 *crtend.o(.ctors) 120 *crtbegin.o(.dtors) 121 *(.dtors) 122 *crtend.o(.dtors) 123 124 *(.eh_frame) 95 125 . = ALIGN (16); 96 126 … … 100 130 . = ALIGN (16); 101 131 _rodata_start = . ; 102 *(.rodata )132 *(.rodata*) 103 133 *(.gnu.linkonce.r*) 104 134 … … 131 161 _sdata = . ; 132 162 *(.data) 163 *(.gnu.linkonce.d*) 164 *(.gcc_except_table) 165 *(.jcr) 166 133 167 CONSTRUCTORS 134 168 edata = ALIGN(0x10); … … 147 181 *(.bss) 148 182 *(COMMON) 183 . = ALIGN (16); 149 184 end = .; 150 185 _end = ALIGN(0x8);
Note: See TracChangeset
for help on using the changeset viewer.