From 150dcf5e476c6d712626c4df1f8fa3a4df8c5929 Mon Sep 17 00:00:00 2001 From: Kinsey Moore Date: Tue, 2 Jan 2024 14:36:52 -0600 Subject: libio: Clean up usage of rtems_termios_device_mode This cleans up outputUsesInterrupts usage with rtems_termios_device_mode enum values. The outputUsesInterrupts member was typed as an int, named as if it were a boolean value, and used as if it were a rtems_termios_device_mode enum. In this patch, values assigned to outputUsesInterrupts have been converted to the corresponding rtems_termios_device_mode enum value, conversions from deviceOutputUsesInterrupts have been made explicit, and uses of rtems_termios_device_mode enum values with deviceOutputUsesInterrupts have been converted to booleans. --- bsps/m68k/gen68340/console/console.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bsps/m68k/gen68340/console/console.c') diff --git a/bsps/m68k/gen68340/console/console.c b/bsps/m68k/gen68340/console/console.c index 34c18bc129..0f5e26d9e8 100644 --- a/bsps/m68k/gen68340/console/console.c +++ b/bsps/m68k/gen68340/console/console.c @@ -600,7 +600,7 @@ rtems_device_driver console_open( SetAttributes, /* setAttributes */ NULL, /* stopRemoteTx */ NULL, /* startRemoteTx */ - 1 /* outputUsesInterrupts */ + TERMIOS_IRQ_DRIVEN /* outputUsesInterrupts */ }; static const rtems_termios_callbacks pollCallbacks = { @@ -611,7 +611,7 @@ rtems_device_driver console_open( SetAttributes, /* setAttributes */ NULL, /* stopRemoteTx */ NULL, /* startRemoteTx */ - 0 /* outputUsesInterrupts */ + TERMIOS_POLLED /* outputUsesInterrupts */ }; if (minor==UART_CHANNEL_A) { -- cgit v1.2.3