diff options
author | Kinsey Moore <kinsey.moore@oarcorp.com> | 2024-01-02 14:36:52 -0600 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2024-01-10 14:43:53 -0600 |
commit | 150dcf5e476c6d712626c4df1f8fa3a4df8c5929 (patch) | |
tree | 7ce819328e7e793696b5500961bf8824cf94e16c /bsps/sh/gensh2/console/config.c | |
parent | bsps/aarch64/cache: Clean up unused fuctions (diff) | |
download | rtems-150dcf5e476c6d712626c4df1f8fa3a4df8c5929.tar.bz2 |
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.
Diffstat (limited to 'bsps/sh/gensh2/console/config.c')
-rw-r--r-- | bsps/sh/gensh2/console/config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bsps/sh/gensh2/console/config.c b/bsps/sh/gensh2/console/config.c index 7d8a983cd2..33ed1bd76e 100644 --- a/bsps/sh/gensh2/console/config.c +++ b/bsps/sh/gensh2/console/config.c @@ -54,7 +54,7 @@ const console_fns sh_sci_fns = sh_sci_initialize_interrupts, /* deviceInitialize */ sh_sci_write_polled, /* deviceWritePolled */ sh_sci_set_attributes, /* deviceSetAttributes */ - TERMIOS_IRQ_DRIVEN /* deviceOutputUsesInterrupts */ + true /* deviceOutputUsesInterrupts */ }; /* @@ -70,7 +70,7 @@ const console_fns sh_sci_fns_polled = sh_sci_init, /* deviceInitialize */ sh_sci_write_polled, /* deviceWritePolled */ sh_sci_set_attributes, /* deviceSetAttributes */ - TERMIOS_POLLED /* deviceOutputUsesInterrupts */ + false /* deviceOutputUsesInterrupts */ }; #if 1 /* (CONSOLE_USE_INTERRUPTS) */ |