Ivan Grokhotkov 508fb79a26 uart: fix uart_tx_wait_idle to wait for fifo empty
In some cases, when data was just written into UART FIFO, transmitter
state could be still zero while the FIFO did contain some data.
This resulted in uart_tx_wait_idle occasionally returning before all
the data was sent out.
Fix by checking both UART transmitter state and TX FIFO count.
2018-10-15 20:08:16 +08:00
..
2018-08-21 13:02:03 +08:00
2016-09-26 01:17:32 +08:00
2016-11-22 00:57:19 +08:00
2017-11-24 15:31:28 +08:00
2018-09-23 21:11:02 +08:00
2018-09-23 21:11:02 +08:00
2018-03-27 08:12:54 +02:00
2018-06-29 16:28:11 +08:00
2018-10-08 19:55:13 +08:00
2016-08-17 23:08:22 +08:00
2018-09-23 21:11:02 +08:00