zephyr/drivers/console
Mariusz Skamra 4800266cc6 drivers/console: Fix flush data on uart_pipe_setup
This patch fixes drain of data left in UART Rx fifo.
uart_irq_tx_ready checks if Rx IRQ has been raised,
but because Rx IRQ is disabled this won't work even
if there are some data left in the UART buffers.
So simply uart_fifo_read is used to discard the data that
left in UART buffer.

Change-Id: I17f145ba58640650bafd3602412fc75229f39664
Signed-off-by: Mariusz Skamra <mariusz.skamra@tieto.com>
2016-03-29 16:41:50 +00:00
..
console_handler_shell.c nano_fifo: Simplify nano_xxx_fifo_get() API family 2016-02-05 20:25:14 -05:00
ipm_console_receiver.c drivers: Replace DEV_INVALID_CONF by -EINVAL 2016-03-16 19:30:04 -04:00
ipm_console_sender.c drivers: Replace DEV_INVALID_CONF by -EINVAL 2016-03-16 19:30:04 -04:00
Kconfig refactor common driver initialization priorities 2016-03-28 15:58:29 -07:00
Makefile interrupts: new static IRQ API 2016-02-05 20:25:17 -05:00
ram_console.c drivers: Replace DEV_OK by 0 2016-03-16 19:30:04 -04:00
uart_console.c refactor common driver initialization priorities 2016-03-28 15:58:29 -07:00
uart_pipe.c drivers/console: Fix flush data on uart_pipe_setup 2016-03-29 16:41:50 +00:00