Changeset 7e18dd9 in rtems for c/src/lib/libbsp/arm/tms570


Ignore:
Timestamp:
Nov 12, 2015, 10:11:29 PM (4 years ago)
Author:
Premysl Houdek <kom541000@…>
Branches:
master
Children:
2f95794e
Parents:
e5d5767e
git-author:
Premysl Houdek <kom541000@…> (11/12/15 22:11:29)
git-committer:
Gedare Bloom <gedare@…> (11/18/15 15:19:46)
Message:

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@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/tms570/console/tms570-sci.c

    re5d5767e r7e18dd9  
    532532  rtems_termios_device_lock_release(base, &lock_context);
    533533
    534   /* Flush device */
    535   while ( ( ctx->regs->FLR & TMS570_SCI_FLR_TX_EMPTY ) > 0 ) {
    536     ;/* Wait until all data has been sent */
     534  if ( 0 /* for flush on close */ ) {
     535    /* Flush device */
     536    while ( ( ctx->regs->FLR & TMS570_SCI_FLR_TX_EMPTY ) == 0 ) {
     537      ;/* Wait until all data has been sent */
     538    }
    537539  }
    538540
Note: See TracChangeset for help on using the changeset viewer.