From 274fa77780179280bf5809a0f45271186515ac43 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 28 Feb 2002 23:10:39 +0000 Subject: 2002-02-28 Mike Panetta * console/sci.c, console/sci.h, console/console.c: Added new SCI driver. * start/start.c: Removed file. * start/start.S: New file, the asm portion of the updated start code. * start/configure.am: Added start.S, removed start.c * startup/start_c.c: New file, the C portion of the updated start code. Contains most of the code that was in the old start.c. * startup/configure.am: Added start_c.c to C_FILES. * include/bsp.h: Added include --- c/src/lib/libbsp/m68k/mrm332/include/bsp.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'c/src/lib/libbsp/m68k/mrm332/include/bsp.h') diff --git a/c/src/lib/libbsp/m68k/mrm332/include/bsp.h b/c/src/lib/libbsp/m68k/mrm332/include/bsp.h index c8c558dc3d..75e2ec4750 100644 --- a/c/src/lib/libbsp/m68k/mrm332/include/bsp.h +++ b/c/src/lib/libbsp/m68k/mrm332/include/bsp.h @@ -22,6 +22,7 @@ extern "C" { #include #include +#include #include #include #include @@ -35,6 +36,7 @@ extern "C" { * - Interrupt stack space is not minimum if defined. */ +#define CONSOLE_SCI /* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */ /* #define CONFIGURE_INTERRUPT_STACK_MEMORY (TBD * 1024) */ @@ -102,7 +104,7 @@ extern char _copy_data_from_rom[]; #define RAW_PUTS(str) \ { register char *ptr = str; \ - while (*ptr) outbyte(*ptr++); \ + while (*ptr) SCI_output_char(*ptr++); \ } #define RAW_PUTI(n) { \ @@ -111,7 +113,7 @@ extern char _copy_data_from_rom[]; RAW_PUTS("0x"); \ for (i=28;i>=0;i -= 4) { \ j = (n>>i) & 0xf; \ - outbyte( (j>9 ? j-10+'a' : j+'0') ); \ + SCI_output_char( (j>9 ? j-10+'a' : j+'0') ); \ } \ } -- cgit v1.2.3