mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-02 13:14:51 +00:00
Merge pull request #127 from sandrine-bailleux/sb/fix-pl011-fifo-polling
PL011: Fix a bug in the UART FIFO polling
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user