summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/lpc214x/lpc214x_lowputc.S
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-05-02 01:14:06 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-05-02 01:14:06 +0000
commit6e21730d1f9137a9798b934552afd0f5b6c07299 (patch)
treec926e809ac9d7efdc2c0a94d73331207935c6997 /nuttx/arch/arm/src/lpc214x/lpc214x_lowputc.S
parent20ea0d1f96514f092a8ffd923b8e4bdce257eced (diff)
downloadpx4-nuttx-6e21730d1f9137a9798b934552afd0f5b6c07299.tar.gz
px4-nuttx-6e21730d1f9137a9798b934552afd0f5b6c07299.tar.bz2
px4-nuttx-6e21730d1f9137a9798b934552afd0f5b6c07299.zip
Added some interrupt definitions
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@198 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc214x/lpc214x_lowputc.S')
-rw-r--r--nuttx/arch/arm/src/lpc214x/lpc214x_lowputc.S10
1 files changed, 3 insertions, 7 deletions
diff --git a/nuttx/arch/arm/src/lpc214x/lpc214x_lowputc.S b/nuttx/arch/arm/src/lpc214x/lpc214x_lowputc.S
index bd9a86d0b..9ad6a47db 100644
--- a/nuttx/arch/arm/src/lpc214x/lpc214x_lowputc.S
+++ b/nuttx/arch/arm/src/lpc214x/lpc214x_lowputc.S
@@ -53,9 +53,7 @@
# define LPC214X_UART_BAUD CONFIG_UART0_BAUD
# define LPC214X_UART_BITS CONFIG_UART0_BITS
# define LPC214X_UART_PARITY CONFIG_UART0_PARITY
-# ifdef CONFIG_UART0_2STOP
-# define LPC214X_UART_2STOP 1
-# endif
+# define LPC214X_UART_2STOP CONFIG_UART0_2STOP
#elif defined(CONFIG_UART1_SERIAL_CONSOLE)
# define LPC214X_UART_BASE LPC214X_UART1_BASE
# define LPC214X_UART_PINSEL LPC214X_UART1_PINSEL
@@ -63,9 +61,7 @@
# define LPC214X_UART_BAUD CONFIG_UART1_BAUD
# define LPC214X_UART_BITS CONFIG_UART1_BITS
# define LPC214X_UART_PARITY CONFIG_UART1_PARITY
-# ifdef CONFIG_UART1_2STOP
-# define LPC214X_UART_2STOP 1
-# endif
+# define LPC214X_UART_2STOP CONFIG_UART1_2STOP
#else
# error "No CONFIG_UARTn_SERIAL_CONSOLE Setting"
#endif
@@ -96,7 +92,7 @@
# error "No CONFIG_UARTn_PARITY Setting"
#endif
-#ifdef LPC214X_UART_2STOP
+#ifdef LPC214X_UART_2STOP != 0
# define LPC214X_LCR_STOP LPC214X_LCR_STOP_2
#else
# define LPC214X_LCR_STOP LPC214X_LCR_STOP_1