mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
bsp/tms570: fixed sci driver freeze when closing terminal bug
tms570_sci_interrupt_last_close: do not wait for old data transmit. Signed-off-by: Premysl Houdek <kom541000@gmail.com>
This commit is contained in:
committed by
Gedare Bloom
parent
e73d93247e
commit
08a98f757b
@@ -531,9 +531,11 @@ static void tms570_sci_interrupt_last_close(
|
|||||||
tms570_sci_disable_interrupts(ctx);
|
tms570_sci_disable_interrupts(ctx);
|
||||||
rtems_termios_device_lock_release(base, &lock_context);
|
rtems_termios_device_lock_release(base, &lock_context);
|
||||||
|
|
||||||
/* Flush device */
|
if ( 0 /* for flush on close */ ) {
|
||||||
while ( ( ctx->regs->FLR & TMS570_SCI_FLR_TX_EMPTY ) > 0 ) {
|
/* Flush device */
|
||||||
;/* Wait until all data has been sent */
|
while ( ( ctx->regs->FLR & TMS570_SCI_FLR_TX_EMPTY ) == 0 ) {
|
||||||
|
;/* Wait until all data has been sent */
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* uninstall ISR */
|
/* uninstall ISR */
|
||||||
|
|||||||
Reference in New Issue
Block a user