mirror of
https://github.com/apache/nuttx.git
synced 2026-08-25 15:37:23 +00:00
drivers/serial/uart_16550.c: Fix UART 16550 warning when disable HAVE_16550_CONSOLE.
This commit is contained in:
parent
1cbaae77cc
commit
b426e35ed2
1 changed files with 3 additions and 1 deletions
|
|
@ -1092,14 +1092,16 @@ static bool u16550_txempty(struct uart_dev_s *dev)
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef HAVE_16550_CONSOLE
|
||||
static void u16550_putc(FAR struct u16550_s *priv, int ch)
|
||||
{
|
||||
while ((u16550_serialin(priv, UART_LSR_OFFSET) & UART_LSR_THRE) == 0);
|
||||
u16550_serialout(priv, UART_THR_OFFSET, (uart_datawidth_t)ch);
|
||||
}
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Public Funtions
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue