2001-08-01 Radzislaw Galler <rgaller@et.put.poznan.pl>

* include/bsp.h: Disabled redefinition of
	CONSOLE_DRIVER_TABLE_ENTRY. Some "FIXME:" comments added.
	* console/config.c: New file. Definitions of externs referenced
	from libbsp/shared/console.c.
	* console/Makefile.am: Changed VPATH to point to
	libbsp/shared. Added config.c to C_FILES and EXTRA_DIST.
This commit is contained in:
Joel Sherrill
2001-08-16 21:07:41 +00:00
parent b8575ab611
commit ede9699cf4
5 changed files with 35 additions and 11 deletions

View File

@@ -1,3 +1,12 @@
2001-08-01 Radzislaw Galler <rgaller@et.put.poznan.pl>
* include/bsp.h: Disabled redefinition of
CONSOLE_DRIVER_TABLE_ENTRY. Some "FIXME:" comments added.
* console/config.c: New file. Definitions of externs referenced
from libbsp/shared/console.c.
* console/Makefile.am: Changed VPATH to point to
libbsp/shared. Added config.c to C_FILES and EXTRA_DIST.
2001-06-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.in: Add bspopts.h.

View File

@@ -7,7 +7,7 @@
BSP NAME: generic SH2 (gensh2)
BOARD: n/a
BOARD: EVB7045F (note 2)
BUS: n/a
CPU FAMILY: Hitachi SH
CPU: SH 7045F
@@ -37,12 +37,12 @@ TTY DRIVER: /dev/console
STDIO
=====
PORT: /dev/sci1
ELECTRICAL: n/a
BAUD: n/a
BITS PER CHARACTER: n/a
PARITY: n/a
STOP BITS: n/a
PORT: /dev/sci0
ELECTRICAL: SCI0
BAUD: 9600
BITS PER CHARACTER: 8
PARITY: NONE
STOP BITS: 1
NOTES
=====
@@ -56,3 +56,5 @@ NOTES
These are both minimal functions intended to support the RTEMS test
suites.
(2) See README.EVB7045F

View File

@@ -138,7 +138,7 @@ Hello World
an MS stuff anymore... ;)
It is possible to repeat the success on MS Windows only. To do the
same on Linux only you a tool to downlad 'gdbstubs' on the
same on Linux only you need a tool to downlad 'gdbstubs' on the
board. This should be no problem to find it on the net but right now
I don't know about it.

View File

@@ -4,11 +4,11 @@
AUTOMAKE_OPTIONS = foreign 1.4
VPATH = @srcdir@:@srcdir@/../../shared
VPATH = @srcdir@:@srcdir@/../../../shared
PGM = $(ARCH)/console.rel
C_FILES = console.c
C_FILES = console.c config.c
C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
OBJS = $(C_O_FILES)
@@ -31,4 +31,6 @@ all-local: $(ARCH) $(OBJS) $(PGM)
.PRECIOUS: $(PGM)
EXTRA_DIST = config.c
include $(top_srcdir)/../../../../../../automake/local.am

View File

@@ -62,8 +62,14 @@ extern "C" {
#define BSP_CONSOLE_DRIVER_TABLE_ENTRY DEVNULL_DRIVER_TABLE_ENTRY
#else
#include <sh/sci.h>
/* FIXME:
* These definitions will be no longer necessary if the old
* implementation of SCI driver will be droped
*/
#define BSP_CONSOLE_DEVNAME "/dev/sci0"
#define BSP_CONSOLE_MINOR_NUMBER ((rtems_device_minor_number) 0)
#define BSP_CONSOLE_DRIVER_TABLE_ENTRY DEVSCI_DRIVER_TABLE_ENTRY
#define BSP_CONSOLE_DEVICE_TERMIOS_HANDLERS (sh_sci_get_termios_handlers(TRUE))
#endif
/*
@@ -131,13 +137,18 @@ extern void bsp_cleanup( void );
/*
* We redefine CONSOLE_DRIVER_TABLE_ENTRY to redirect /dev/console
*
* FIXME: Since console driver works properly this is not
* necessary. When enabled - causes error in console_initialize.
*/
#if 0
#undef CONSOLE_DRIVER_TABLE_ENTRY
#define CONSOLE_DRIVER_TABLE_ENTRY \
BSP_CONSOLE_DRIVER_TABLE_ENTRY, \
{ console_initialize, console_open, console_close, \
console_read, console_write, console_control }
#endif
/*
* NOTE: Use the standard Clock driver entry
*/