summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-07-07 16:38:18 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-07-07 16:38:18 +0000
commit030ff41790ae65459162b928022896408ca92393 (patch)
tree8a55da629628c3d04fb470d7cb50592aa3aeb893
parentNew file to satisfy readdir() family. (diff)
downloadrtems-030ff41790ae65459162b928022896408ca92393.tar.bz2
Conditionals for CONSOLE_USE_INTERRUPTS should have been "if" not
"if defined".
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/sparc/erc32/console/console.c10
1 files 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;