ZNEO: Fix lost serial interrupt bug

This commit is contained in:
Gregory Nutt 2014-01-02 10:03:08 -06:00
parent b1d61b4e82
commit e370c5fc72

View File

@ -507,6 +507,7 @@ static int z16f_txinterrupt(int irq, void *context)
uart_xmitchars(dev); uart_xmitchars(dev);
} }
return OK; return OK;
} }
@ -619,6 +620,12 @@ static void z16f_txint(struct uart_dev_s *dev, bool enable)
#ifndef CONFIG_SUPPRESS_SERIAL_INTS #ifndef CONFIG_SUPPRESS_SERIAL_INTS
up_enable_irq(priv->txirq); up_enable_irq(priv->txirq);
#endif #endif
/* Fake a TX interrupt here by just calling uart_xmitchars() with
* interrupts disabled (note this may recurse).
*/
uart_xmitchars(dev);
} }
else else
{ {