forked from Imagelibrary/rtems
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user