From 27d8258e403fa2751a4abce2a642a50a74ee18ee Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 19 May 2009 22:14:36 +0000 Subject: [PATCH] NSH integration, fix serial interrupt handling git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@1803 7fd9a85b-ad96-42d3-883c-3090e2eb8679 --- nuttx/ChangeLog | 16 +++++++++------- nuttx/Documentation/NuttX.html | 16 +++++++++------- nuttx/arch/arm/src/lm3s/lm3s_serial.c | 3 ++- nuttx/drivers/serial.c | 2 +- 4 files changed, 21 insertions(+), 16 deletions(-) diff --git a/nuttx/ChangeLog b/nuttx/ChangeLog index ef2584a48..5cf0ebc63 100644 --- a/nuttx/ChangeLog +++ b/nuttx/ChangeLog @@ -712,11 +712,13 @@ -R .note.gnu.build-id -R .comment" This has bin fixed in arch/arm/src/Makefile, but other architectures may have the same problem. Thanks to Dave Marples for verifying this. - * Added support for the MicroMint Eagle100 board. This board has a - Luminary LM3S6918 Cortex-M3. Added a configuration to build examples/ostest. - * Add configuration option to enable fast GPIO (vs. legacy, "slow" GPIO) for - LPC214x. - * Restructured the arch/arm directory structure to better suppor ARM and - Cortex-M3. - * pthread_create() must return a (non-negated) errno value on failure. + * configs/eagle100/ostest: Added support for the MicroMint Eagle100 board. + This board has a Luminary LM3S6918 Cortex-M3. Added a configuration to build + examples/ostest. + * arch/arm/src/lpc214x: Add configuration option to enable fast GPIO (vs. + legacy, "slow" GPIO) for LPC214x. + * arch/arm: Restructured the arch/arm directory structure to better suppor ARM + and Cortex-M3. + * sched/: pthread_create() must return a (non-negated) errno value on failure. + * configs/eagle100/nsh: Add a NuttShell (NSH) configuration for the Eagle-100 diff --git a/nuttx/Documentation/NuttX.html b/nuttx/Documentation/NuttX.html index f936a8df0..2e2bf262e 100644 --- a/nuttx/Documentation/NuttX.html +++ b/nuttx/Documentation/NuttX.html @@ -1421,13 +1421,15 @@ nuttx-0.4.6 2009-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr> -R .note.gnu.build-id -R .comment" This has bin fixed in arch/arm/src/Makefile, but other architectures may have the same problem. Thanks to Dave Marples for verifying this. - * Added support for the MicroMint Eagle100 board. This board has a - Luminary LM3S6918 Cortex-M3. Added a configuration to build examples/ostest. - * Add configuration option to enable fast GPIO (vs. legacy, "slow" GPIO) for - LPC214x. - * Restructured the arch/arm directory structure to better suppor ARM and - Cortex-M3. - * pthread_create() must return a (non-negated) errno value on failure. + * configs/eagle100/ostest: Added support for the MicroMint Eagle100 board. + This board has a Luminary LM3S6918 Cortex-M3. Added a configuration to build + examples/ostest. + * arch/arm/src/lpc214x: Add configuration option to enable fast GPIO (vs. + legacy, "slow" GPIO) for LPC214x. + * arch/arm: Restructured the arch/arm directory structure to better suppor ARM + and Cortex-M3. + * sched/: pthread_create() must return a (non-negated) errno value on failure. + * configs/eagle100/nsh: Add a NuttShell (NSH) configuration for the Eagle-100 pascal-0.1.3 2009-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr> 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 */ diff --git a/nuttx/drivers/serial.c b/nuttx/drivers/serial.c index ddc7338bc..2dc7d8151 100644 --- a/nuttx/drivers/serial.c +++ b/nuttx/drivers/serial.c @@ -1,7 +1,7 @@ /************************************************************************************ * drivers/serial.c * - * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without