9
0
Fork 0

NSH integration, fix serial interrupt handling

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@1803 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo 2009-05-19 22:14:36 +00:00
parent 612dbbc99a
commit 27d8258e40
4 changed files with 21 additions and 16 deletions

View File

@ -712,11 +712,13 @@
-R .note.gnu.build-id -R .comment" This has bin fixed in arch/arm/src/Makefile, -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 but other architectures may have the same problem. Thanks to Dave Marples
for verifying this. for verifying this.
* Added support for the MicroMint Eagle100 board. This board has a * configs/eagle100/ostest: Added support for the MicroMint Eagle100 board.
Luminary LM3S6918 Cortex-M3. Added a configuration to build examples/ostest. This board has a Luminary LM3S6918 Cortex-M3. Added a configuration to build
* Add configuration option to enable fast GPIO (vs. legacy, "slow" GPIO) for examples/ostest.
LPC214x. * arch/arm/src/lpc214x: Add configuration option to enable fast GPIO (vs.
* Restructured the arch/arm directory structure to better suppor ARM and legacy, "slow" GPIO) for LPC214x.
Cortex-M3. * arch/arm: Restructured the arch/arm directory structure to better suppor ARM
* pthread_create() must return a (non-negated) errno value on failure. 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

View File

@ -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, -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 but other architectures may have the same problem. Thanks to Dave Marples
for verifying this. for verifying this.
* Added support for the MicroMint Eagle100 board. This board has a * configs/eagle100/ostest: Added support for the MicroMint Eagle100 board.
Luminary LM3S6918 Cortex-M3. Added a configuration to build examples/ostest. This board has a Luminary LM3S6918 Cortex-M3. Added a configuration to build
* Add configuration option to enable fast GPIO (vs. legacy, "slow" GPIO) for examples/ostest.
LPC214x. * arch/arm/src/lpc214x: Add configuration option to enable fast GPIO (vs.
* Restructured the arch/arm directory structure to better suppor ARM and legacy, "slow" GPIO) for LPC214x.
Cortex-M3. * arch/arm: Restructured the arch/arm directory structure to better suppor ARM
* pthread_create() must return a (non-negated) errno value on failure. 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> pascal-0.1.3 2009-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>

View File

@ -595,6 +595,7 @@ static int up_interrupt(int irq, void *context)
* until we have been looping for a long time. * until we have been looping for a long time.
*/ */
handled = TRUE;
for (passes = 0; passes < 256 && handled; passes++) for (passes = 0; passes < 256 && handled; passes++)
{ {
handled = FALSE; handled = FALSE;
@ -616,7 +617,7 @@ static int up_interrupt(int irq, void *context)
/* Handle outgoing, transmit bytes */ /* Handle outgoing, transmit bytes */
if ((mis & UART_MIS_TXMIS) == 0) if ((mis & UART_MIS_TXMIS) != 0)
{ {
/* Tx FIFO not full ... process outgoing bytes */ /* Tx FIFO not full ... process outgoing bytes */

View File

@ -1,7 +1,7 @@
/************************************************************************************ /************************************************************************************
* drivers/serial.c * drivers/serial.c
* *
* Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr> * Author: Gregory Nutt <spudmonkey@racsa.co.cr>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without