forked from Imagelibrary/rtems
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.
This commit is contained in:
committed by
Joel Sherrill
parent
4092fbb2c0
commit
150dcf5e47
@@ -234,7 +234,11 @@ rtems_device_driver console_open(
|
||||
Callbacks.stopRemoteTx = NULL;
|
||||
Callbacks.startRemoteTx = NULL;
|
||||
}
|
||||
Callbacks.outputUsesInterrupts = cptr->pDeviceFns->deviceOutputUsesInterrupts;
|
||||
if (cptr->pDeviceFns->deviceOutputUsesInterrupts) {
|
||||
Callbacks.outputUsesInterrupts = TERMIOS_IRQ_DRIVEN;
|
||||
} else {
|
||||
Callbacks.outputUsesInterrupts = TERMIOS_POLLED;
|
||||
}
|
||||
|
||||
/* XXX what about
|
||||
* Console_Port_Tbl[minor].ulMargin,
|
||||
|
||||
Reference in New Issue
Block a user