mirror of
https://github.com/apache/nuttx.git
synced 2026-08-12 16:06:51 +00:00
A10: Fix serial TX interrupts
This commit is contained in:
parent
e4358ad7ff
commit
1cbb15db1a
1 changed files with 2 additions and 2 deletions
|
|
@ -1472,7 +1472,7 @@ static void up_txint(struct uart_dev_s *dev, bool enable)
|
|||
if (enable)
|
||||
{
|
||||
#ifndef CONFIG_SUPPRESS_SERIAL_INTS
|
||||
priv->ier |= UART_IER_PTIME;
|
||||
priv->ier |= UART_IER_ETBEI;
|
||||
up_serialout(priv, A1X_UART_IER_OFFSET, priv->ier);
|
||||
|
||||
/* Fake a TX interrupt here by just calling uart_xmitchars() with
|
||||
|
|
@ -1484,7 +1484,7 @@ static void up_txint(struct uart_dev_s *dev, bool enable)
|
|||
}
|
||||
else
|
||||
{
|
||||
priv->ier &= ~UART_IER_PTIME;
|
||||
priv->ier &= ~UART_IER_ETBEI;
|
||||
up_serialout(priv, A1X_UART_IER_OFFSET, priv->ier);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue