2008-03-21 Till Straumann <strauman@slac.stanford.edu>

* shared/console/uart.c: In IRQ driven mode also
	keep reading chars while they are available (fifo
	could be enabled).
This commit is contained in:
Till Straumann
2008-03-21 18:48:49 +00:00
parent b93e277f44
commit 2cedc4608e
2 changed files with 8 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
2008-03-21 Till Straumann <strauman@slac.stanford.edu>
* shared/console/uart.c: In IRQ driven mode also
keep reading chars while they are available (fifo
could be enabled).
2008-03-19 Till Straumann <strauman@slac.stanford.edu>
* shared/console/console.c, shared/console/uart.c,

View File

@@ -725,7 +725,6 @@ BSP_uart_termios_isr_com(int uart)
break;
case RECEIVER_DATA_AVAIL :
case CHARACTER_TIMEOUT_INDICATION:
if ( uart_data[uart].ioMode == TERMIOS_TASK_DRIVEN )
{
/* ensure interrupts are enabled */
@@ -741,6 +740,7 @@ BSP_uart_termios_isr_com(int uart)
{
/* RX data ready */
assert(off < sizeof(buf));
while ( off < sizeof(buf) && ( DR & uread(uart, LSR) ) )
buf[off++] = uread(uart, RBR);
}
break;