Commit 2966dc2c authored by achingupta's avatar achingupta
Browse files

Merge pull request #127 from sandrine-bailleux/sb/fix-pl011-fifo-polling

PL011: Fix a bug in the UART FIFO polling
parents ca1e6b63 d831af90
......@@ -65,8 +65,10 @@ void console_init(unsigned long base_addr)
}
#define WAIT_UNTIL_UART_FREE(base) while ((pl011_read_fr(base)\
& PL011_UARTFR_TXFF) == 1)
#define WAIT_UNTIL_UART_FREE(base) \
while ((pl011_read_fr(base) & PL011_UARTFR_TXFF)) \
continue
int console_putc(int c)
{
assert(uart_base);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment