2001-12-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de>

* configure.ac: Add RTEMS_BSPOPTS_* for SERIAL_INPUT, HIF_INPUT,
	SERIAL_OUTPUT, HIF_OUTPUT.
	* console/console.c: Remove NO_BSP_INIT, SERIAL_INPUT, HIF_INPUT,
	SERIAL_OUTPUT, HIF_OUTPUT, add #include <bsp.h>.
This commit is contained in:
Joel Sherrill
2001-12-18 14:10:07 +00:00
parent 7e950a4420
commit b66116e85f
3 changed files with 22 additions and 11 deletions

View File

@@ -1,3 +1,10 @@
2001-12-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Add RTEMS_BSPOPTS_* for SERIAL_INPUT, HIF_INPUT,
SERIAL_OUTPUT, HIF_OUTPUT.
* console/console.c: Remove NO_BSP_INIT, SERIAL_INPUT, HIF_INPUT,
SERIAL_OUTPUT, HIF_OUTPUT, add #include <bsp.h>.
2001-11-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Introduce RTEMS_BSP_CONFIGURE.

View File

@@ -15,7 +15,21 @@ RTEMS_BSP_CONFIGURE
RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm])
RTEMS_CANONICALIZE_TOOLS
/* only one of the "INPUT"-defines can be defined */
RTEMS_BSPOPTS_SET([SERIAL_INPUT],[*],[1])
RTEMS_BSPOPTS_HELP([SERIAL_INPUT],[use serial input])
RTEMS_BSPOPTS_SET([HIF_INPUT],[*],[])
RTEMS_BSPOPTS_HELP([HIF_INPUT],[use HIF input])
/* both of the following can be defined */
RTEMS_BSPOPTS_SET([SERIAL_OUTPUT],[*],[1])
RTEMS_BSPOPTS_HELP([SERIAL_OUTPUT],
[use serial console output])
RTEMS_BSPOPTS_SET([HIF_OUTPUT],[*],[])
RTEMS_BSPOPTS_HELP([HIF_OUTPUT],
[use HIF console output])
# Explicitly list all Makefiles here
AC_CONFIG_FILES([Makefile

View File

@@ -11,22 +11,12 @@
* $Id$
*/
#define NO_BSP_INIT
/* only one of the following can be defined */
#define SERIAL_INPUT /* use serial input */
/* #define HIF_INPUT */ /* use HIF input */
#include <bsp.h>
#if defined(SERIAL_INPUT) && defined(HIF_INPUT)
#error SERIAL_INPUT and HIF_INPUT cannot both be defined!!!
#endif
/* both of the following can be defined */
#define SERIAL_OUTPUT /* remove to disable serial port console output */
/* #define HIF_OUTPUT */ /* remove to disable HIF console output */
#include <bsp.h>
#include <rtems/libio.h>
#include "serial.h"
#include "concntl.h"