Changeset 2cedc46 in rtems


Ignore:
Timestamp:
Mar 21, 2008, 6:48:49 PM (12 years ago)
Author:
Till Straumann <strauman@…>
Branches:
4.10, 4.11, 4.9, master
Children:
ee7e515
Parents:
b93e277
Message:

2008-03-21 Till Straumann <strauman@…>

  • shared/console/uart.c: In IRQ driven mode also keep reading chars while they are available (fifo could be enabled).
Location:
c/src/lib/libbsp/powerpc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/ChangeLog

    rb93e277 r2cedc46  
     12008-03-21      Till Straumann <strauman@slac.stanford.edu>
     2
     3        * shared/console/uart.c: In IRQ driven mode also
     4        keep reading chars while they are available (fifo
     5        could be enabled).
     6
    172008-03-19      Till Straumann <strauman@slac.stanford.edu>
    28
  • c/src/lib/libbsp/powerpc/shared/console/uart.c

    rb93e277 r2cedc46  
    726726        case RECEIVER_DATA_AVAIL :
    727727        case CHARACTER_TIMEOUT_INDICATION:
    728 
    729728          if ( uart_data[uart].ioMode == TERMIOS_TASK_DRIVEN )
    730729            {
     
    742741              /* RX data ready */
    743742              assert(off < sizeof(buf));
    744               buf[off++] = uread(uart, RBR);
     743              while ( off < sizeof(buf) && ( DR & uread(uart, LSR) ) )
     744                buf[off++] = uread(uart, RBR);
    745745            }
    746746          break;
Note: See TracChangeset for help on using the changeset viewer.