forked from Imagelibrary/rtems
termios: Separate flow control from normal handler
This commit is contained in:
@@ -103,6 +103,7 @@ rtems_device_driver console_initialize(
|
||||
major,
|
||||
minor,
|
||||
handler,
|
||||
NULL,
|
||||
(void *) ctx
|
||||
);
|
||||
if ( sc != RTEMS_SUCCESSFUL ) {
|
||||
@@ -536,8 +537,6 @@ const rtems_termios_device_handler tms570_sci_handler_polled = {
|
||||
.poll_read = tms570_sci_poll_read,
|
||||
.write = tms570_sci_poll_write,
|
||||
.set_attributes = tms570_sci_set_attributes,
|
||||
.stop_remote_tx = NULL,
|
||||
.start_remote_tx = NULL,
|
||||
.mode = TERMIOS_POLLED
|
||||
};
|
||||
|
||||
@@ -553,7 +552,5 @@ const rtems_termios_device_handler tms570_sci_handler_interrupt = {
|
||||
.poll_read = NULL,
|
||||
.write = tms570_sci_interrupt_write,
|
||||
.set_attributes = tms570_sci_set_attributes,
|
||||
.stop_remote_tx = NULL,
|
||||
.start_remote_tx = NULL,
|
||||
.mode = TERMIOS_IRQ_DRIVEN
|
||||
};
|
||||
|
||||
@@ -131,6 +131,7 @@ rtems_device_driver console_initialize(
|
||||
major,
|
||||
minor,
|
||||
handler,
|
||||
NULL,
|
||||
leon3_console_get_uart(syscon_uart_index)
|
||||
);
|
||||
if (status != RTEMS_SUCCESSFUL)
|
||||
@@ -147,6 +148,7 @@ rtems_device_driver console_initialize(
|
||||
major,
|
||||
minor,
|
||||
handler,
|
||||
NULL,
|
||||
leon3_console_get_uart(syscon_uart_index)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user