From 030ff41790ae65459162b928022896408ca92393 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 7 Jul 1998 16:38:18 +0000 Subject: Conditionals for CONSOLE_USE_INTERRUPTS should have been "if" not "if defined". --- c/src/lib/libbsp/sparc/erc32/console/console.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/c/src/lib/libbsp/sparc/erc32/console/console.c b/c/src/lib/libbsp/sparc/erc32/console/console.c index c8f800c50e..af1be91fa4 100644 --- a/c/src/lib/libbsp/sparc/erc32/console/console.c +++ b/c/src/lib/libbsp/sparc/erc32/console/console.c @@ -103,7 +103,7 @@ int console_inbyte_nonblocking( int port ) * Interrupt driven console IO */ -#ifdef CONSOLE_USE_INTERRUPTS +#if (CONSOLE_USE_INTERRUPTS) /* * Buffers between task and ISRs @@ -359,7 +359,7 @@ int console_write_support (int minor, const char *buf, int len) int nwrite = 0; while (nwrite < len) { -#if defined(CONSOLE_USE_INTERRUPTS) +#if (CONSOLE_USE_INTERRUPTS) console_outbyte_interrupt( minor, *buf++ ); #else console_outbyte_polled( minor, *buf++ ); @@ -407,7 +407,7 @@ rtems_device_driver console_initialize( * Initialize Hardware */ -#ifdef CONSOLE_USE_INTERRUPTS +#if (CONSOLE_USE_INTERRUPTS) console_initialize_interrupts(); #endif @@ -421,7 +421,7 @@ rtems_device_driver console_open( ) { rtems_status_code sc; -#if defined(CONSOLE_USE_INTERRUPTS) +#if (CONSOLE_USE_INTERRUPTS) rtems_libio_open_close_args_t *args = arg; static const rtems_termios_callbacks intrCallbacks = { NULL, /* firstOpen */ @@ -450,7 +450,7 @@ rtems_device_driver console_open( if ( minor > 2 ) return RTEMS_INVALID_NUMBER; -#if defined(CONSOLE_USE_INTERRUPTS) +#if (CONSOLE_USE_INTERRUPTS) sc = rtems_termios_open (major, minor, arg, &intrCallbacks); console_termios_data[ minor ] = args->iop->data1; -- cgit v1.2.3