mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
ZNEO: Fix lost serial interrupt bug
This commit is contained in:
@@ -507,6 +507,7 @@ static int z16f_txinterrupt(int irq, void *context)
|
||||
|
||||
uart_xmitchars(dev);
|
||||
}
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
@@ -619,6 +620,12 @@ static void z16f_txint(struct uart_dev_s *dev, bool enable)
|
||||
#ifndef CONFIG_SUPPRESS_SERIAL_INTS
|
||||
up_enable_irq(priv->txirq);
|
||||
#endif
|
||||
|
||||
/* Fake a TX interrupt here by just calling uart_xmitchars() with
|
||||
* interrupts disabled (note this may recurse).
|
||||
*/
|
||||
|
||||
uart_xmitchars(dev);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user