forked from Imagelibrary/rtems
powerpc/shared/console: "termios" first open sets console baud to 9600
When the PowerPC shared console baud rate starts at anything other than 9600 the termios code will set it to 9600 at the first open.
This commit is contained in:
committed by
Vijay Kumar Banerjee
parent
9c13e528a0
commit
f8b91c9503
@@ -536,6 +536,10 @@ BSP_uart_termios_set(int uart, void *p)
|
||||
|
||||
uart_data[uart].ioMode = ttyp->device.outputUsesInterrupts;
|
||||
|
||||
/* Convert from the baud number to the "speed_t" termios setting. */
|
||||
ttyp->termios.c_ispeed = ttyp->termios.c_ospeed =
|
||||
rtems_termios_number_to_baud(uart_data[uart].baud);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user