summaryrefslogtreecommitdiff
path: root/nuttx/arch/z16
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-01-02 10:03:08 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-01-02 10:03:08 -0600
commit7bb7cd277f56b8a9f7befd4799eb1bb4eae3a26f (patch)
tree8fd5f4f577a02a4c0164e4e23ef63549e2b60b0c /nuttx/arch/z16
parenta7fc7da67baff948a6f8f8f4265caf6a9fcdde3e (diff)
downloadnuttx-7bb7cd277f56b8a9f7befd4799eb1bb4eae3a26f.tar.gz
nuttx-7bb7cd277f56b8a9f7befd4799eb1bb4eae3a26f.tar.bz2
nuttx-7bb7cd277f56b8a9f7befd4799eb1bb4eae3a26f.zip
ZNEO: Fix lost serial interrupt bug
Diffstat (limited to 'nuttx/arch/z16')
-rw-r--r--nuttx/arch/z16/src/z16f/z16f_serial.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/nuttx/arch/z16/src/z16f/z16f_serial.c b/nuttx/arch/z16/src/z16f/z16f_serial.c
index 1845fece8..d2f196025 100644
--- a/nuttx/arch/z16/src/z16f/z16f_serial.c
+++ b/nuttx/arch/z16/src/z16f/z16f_serial.c
@@ -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
{