Skip to content

Commit c19bdf2

Browse files
anchaoxiaoxiang781216
authored andcommitted
serial/uart_pl011: default syslog needs to check flow control in up_putc
default syslog needs to check flow control in up_putc(), otherwise up_puts() will lose character if the hardware fifo is full.
1 parent 1fe0542 commit c19bdf2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/serial/uart_pl011.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,8 @@ static void pl011_send(FAR struct uart_dev_s *dev, int ch)
661661
FAR struct pl011_uart_port_s *sport = dev->priv;
662662
FAR const struct pl011_config *config = &sport->config;
663663

664+
while (!pl011_irq_tx_ready(sport));
665+
664666
config->uart->dr = ch;
665667
}
666668

0 commit comments

Comments
 (0)