summaryrefslogtreecommitdiff
path: root/nuttx/arch
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-05-19 22:14:36 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-05-19 22:14:36 +0000
commitccc7221d0cd7b18c5e2bcab40aa648135ff970d1 (patch)
tree835ce65cca6afdab9948fcf6033b2d45201ebd62 /nuttx/arch
parent220991ac89d601ad6d0d459b9052421a53ff7536 (diff)
downloadpx4-nuttx-ccc7221d0cd7b18c5e2bcab40aa648135ff970d1.tar.gz
px4-nuttx-ccc7221d0cd7b18c5e2bcab40aa648135ff970d1.tar.bz2
px4-nuttx-ccc7221d0cd7b18c5e2bcab40aa648135ff970d1.zip
NSH integration, fix serial interrupt handling
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1803 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch')
-rw-r--r--nuttx/arch/arm/src/lm3s/lm3s_serial.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/lm3s/lm3s_serial.c b/nuttx/arch/arm/src/lm3s/lm3s_serial.c
index b490e4ad4..7c4275d26 100644
--- a/nuttx/arch/arm/src/lm3s/lm3s_serial.c
+++ b/nuttx/arch/arm/src/lm3s/lm3s_serial.c
@@ -595,6 +595,7 @@ static int up_interrupt(int irq, void *context)
* until we have been looping for a long time.
*/
+ handled = TRUE;
for (passes = 0; passes < 256 && handled; passes++)
{
handled = FALSE;
@@ -616,7 +617,7 @@ static int up_interrupt(int irq, void *context)
/* Handle outgoing, transmit bytes */
- if ((mis & UART_MIS_TXMIS) == 0)
+ if ((mis & UART_MIS_TXMIS) != 0)
{
/* Tx FIFO not full ... process outgoing bytes */