forked from Imagelibrary/rtems
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:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,12 +137,17 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user