Two more places there THRE is used with inverted sense

This commit is contained in:
Gregory Nutt 2015-07-29 20:42:49 -06:00
parent 789f3d2768
commit fb82061bf7
3 changed files with 10 additions and 2 deletions

2
arch

@ -1 +1 @@
Subproject commit a496ef8cbf1a2ca1f510e9e319ecc499294027b9
Subproject commit 7c6c7eff341f787ad59bdfc266ab6045b060f835

@ -1 +1 @@
Subproject commit e5ed09ccdabf387ae8de1b124715c91582199fbf
Subproject commit 32ab65df78a76942feae0b2e93d1c1d52e5302d3

View File

@ -1030,7 +1030,11 @@ static void u16550_txint(struct uart_dev_s *dev, bool enable)
static bool u16550_txready(struct uart_dev_s *dev)
{
struct u16550_s *priv = (struct u16550_s*)dev->priv;
#ifdef CONFIG_16550_THRNE
return ((u16550_serialin(priv, UART_LSR_OFFSET) & UART_LSR_THRNE) == 0);
#else
return ((u16550_serialin(priv, UART_LSR_OFFSET) & UART_LSR_THRE) != 0);
#endif
}
/****************************************************************************
@ -1044,7 +1048,11 @@ static bool u16550_txready(struct uart_dev_s *dev)
static bool u16550_txempty(struct uart_dev_s *dev)
{
struct u16550_s *priv = (struct u16550_s*)dev->priv;
#ifdef CONFIG_16550_THRNE
return ((u16550_serialin(priv, UART_LSR_OFFSET) & UART_LSR_THRNE) == 0);
#else
return ((u16550_serialin(priv, UART_LSR_OFFSET) & UART_LSR_THRE) != 0);
#endif
}
/****************************************************************************