summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/str71x/str71x_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/str71x/str71x_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/str71x/str71x_serial.c')
-rw-r--r--nuttx/arch/arm/src/str71x/str71x_serial.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/nuttx/arch/arm/src/str71x/str71x_serial.c b/nuttx/arch/arm/src/str71x/str71x_serial.c
index 88203d37b..1d4a28f75 100644
--- a/nuttx/arch/arm/src/str71x/str71x_serial.c
+++ b/nuttx/arch/arm/src/str71x/str71x_serial.c
@@ -54,8 +54,6 @@
#include "up_internal.h"
#include "str71x_internal.h"
-#ifdef CONFIG_USE_SERIALDRIVER
-
/****************************************************************************
* Definitions
****************************************************************************/
@@ -73,11 +71,17 @@
#if defined(CONFIG_UART0_SERIAL_CONSOLE) || defined(CONFIG_UART1_SERIAL_CONSOLE) ||\
defined(CONFIG_UART2_SERIAL_CONSOLE) || defined(CONFIG_UART3_SERIAL_CONSOLE)
-# define HAVE_CONSOLE
+# define HAVE_CONSOLE 1
#else
# 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? tty2? tty3? */
#if defined(CONFIG_UART0_SERIAL_CONSOLE) || !defined(HAVE_CONSOLE)
@@ -855,7 +859,7 @@ static boolean up_txempty(struct uart_dev_s *dev)
}
/****************************************************************************
- * Public Funtions
+ * Public Functions
****************************************************************************/
/****************************************************************************