Skip to content

Commit

Permalink
serial/uart_pl011: default syslog needs to check flow control in up_putc
Browse files Browse the repository at this point in the history
default syslog needs to check flow control in up_putc(), otherwise
up_puts() will lose character if the hardware fifo is full.
  • Loading branch information
anchao committed Sep 12, 2024
1 parent 75ed9a4 commit c798248
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/serial/uart_pl011.c
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,8 @@ static void pl011_send(FAR struct uart_dev_s *dev, int ch)
FAR struct pl011_uart_port_s *sport = dev->priv;
FAR const struct pl011_config *config = &sport->config;

while (!pl011_irq_tx_ready(sport));

config->uart->dr = ch;
}

Expand Down

0 comments on commit c798248

Please sign in to comment.