Patch from Eric Norum:

While trying to work through this problem I decided that the
  build-time selection of the console I/O operation (polling or
  interrupt) was too clumsy.  Here's a patch that allows run-time
  (actually init-time) selection of the console I/O mode.

  It also shows the need for another `flags' or `options'  field in
  the rtems_driver_address_table structure...
This commit is contained in:
Joel Sherrill
1998-02-19 23:02:16 +00:00
parent fde74a3e14
commit 96c73abbc2
2 changed files with 42 additions and 41 deletions

View File

@@ -69,10 +69,6 @@ START_BASE=start360
# RTEMS_DEBUG (RTEMS)
# If defined, debug checks in RTEMS and support library code are enabled.
#
# M360_SMC1_INTERRUPT (gen68360 BSP)
# If defined, then the console driver operates in interrupt mode.
# Otherwise it operates in polled mode.
#
define make-target-options
@echo "/* #define NDEBUG 1 */ " >>$@
@@ -80,7 +76,6 @@ define make-target-options
@echo "/* #define STACK_CHECKER_ON 1 */" >>$@
@echo "/* #define STACK_CHECKER_REPORT_USAGE 1 */" >>$@
@echo "/* #define RTEMS_DEBUG 1 */" >>$@
@echo "#define M360_SMC1_INTERRUPT 1" >>$@
endef
# The following are definitions of make-exe which will work using ld as