summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/lm3s/lm3s_serial.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-05-17 17:18:19 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-05-17 17:18:19 +0000
commit0fa834d4332608374852575437d2714f820868c4 (patch)
tree4e57188abe5ff32b2639ca69314fec94378bed8d /nuttx/arch/arm/src/lm3s/lm3s_serial.c
parent0368c4fac2539f3a8812f9471e9be74fb7aeb303 (diff)
downloadpx4-nuttx-0fa834d4332608374852575437d2714f820868c4.tar.gz
px4-nuttx-0fa834d4332608374852575437d2714f820868c4.tar.bz2
px4-nuttx-0fa834d4332608374852575437d2714f820868c4.zip
Debug Cortex-M3 interrupts
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1787 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lm3s/lm3s_serial.c')
-rw-r--r--nuttx/arch/arm/src/lm3s/lm3s_serial.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/nuttx/arch/arm/src/lm3s/lm3s_serial.c b/nuttx/arch/arm/src/lm3s/lm3s_serial.c
index 71a877e3f..42cf0fe23 100644
--- a/nuttx/arch/arm/src/lm3s/lm3s_serial.c
+++ b/nuttx/arch/arm/src/lm3s/lm3s_serial.c
@@ -39,11 +39,13 @@
#include <nuttx/config.h>
#include <sys/types.h>
+
#include <unistd.h>
#include <semaphore.h>
#include <string.h>
#include <errno.h>
#include <debug.h>
+
#include <nuttx/irq.h>
#include <nuttx/arch.h>
#include <nuttx/serial.h>
@@ -53,8 +55,6 @@
#include "up_arch.h"
#include "up_internal.h"
-#ifdef CONFIG_USE_SERIALDRIVER
-
/****************************************************************************
* Definitions
****************************************************************************/
@@ -82,6 +82,12 @@
# undef HAVE_CONSOLE
#endif
+/* If we are not using the serial driver for the console, then we
+ * still must provide some minimal implementation of up_putc.
+ */
+
+#ifdef CONFIG_USE_SERIALDRIVER
+
/* Which UART with be tty0/console and which tty1? */
#if defined(CONFIG_UART0_SERIAL_CONSOLE)
@@ -796,7 +802,7 @@ static boolean up_txempty(struct uart_dev_s *dev)
}
/****************************************************************************
- * Public Funtions
+ * Public Functions
****************************************************************************/
/****************************************************************************