summaryrefslogtreecommitdiff
path: root/nuttx/configs
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-05-01 00:28:53 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-05-01 00:28:53 +0000
commit28d607865c3224b7398f9715039bb8d31537ee1c (patch)
treed5bb69176fb8575824c987127fbe22d9277f9aab /nuttx/configs
parentd120e9e5ed22796147c5bf429dc75eb6359b313b (diff)
downloadpx4-nuttx-28d607865c3224b7398f9715039bb8d31537ee1c.tar.gz
px4-nuttx-28d607865c3224b7398f9715039bb8d31537ee1c.tar.bz2
px4-nuttx-28d607865c3224b7398f9715039bb8d31537ee1c.zip
Low level UART support
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@196 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs')
-rw-r--r--nuttx/configs/mcu123-lpc214x/defconfig29
-rw-r--r--nuttx/configs/mcu123-lpc214x/include/board.h16
2 files changed, 45 insertions, 0 deletions
diff --git a/nuttx/configs/mcu123-lpc214x/defconfig b/nuttx/configs/mcu123-lpc214x/defconfig
index 73888e922..8cfc96dc3 100644
--- a/nuttx/configs/mcu123-lpc214x/defconfig
+++ b/nuttx/configs/mcu123-lpc214x/defconfig
@@ -79,6 +79,35 @@ CONFIG_BCFG2_SETUP=n
CONFIG_BCFG3_SETUP=n
#
+# LPC214X specific device driver settings
+#
+# CONFIG_UARTn_SERIAL_CONSOLE - selects the UARTn for the
+# console and ttys0 (default is the UART0).
+# CONFIG_UARTn_RXBUFSIZE - Characters are buffered as received.
+# This specific the size of the receive buffer
+# CONFIG_UARTn_TXBUFSIZE - Characters are buffered before
+# being sent. This specific the size of the transmit buffer
+# CONFIG_UARTn_BAUD - The configure BAUD of the UART. Must be
+# CONFIG_UARTn_BITS - The number of bits. Must be either 7 or 8.
+# CONFIG_UARTn_PARTIY - 0=no parity, 1=odd parity, 2=even parity, 3=mark 1, 4=space 0
+# CONFIG_UARTn_2STOP - Two stop bits
+#
+CONFIG_UART0_SERIAL_CONSOLE=y
+CONFIG_UART1_SERIAL_CONSOLE=n
+CONFIG_UART0_TXBUFSIZE=256
+CONFIG_UART1_TXBUFSIZE=256
+CONFIG_UART0_RXBUFSIZE=256
+CONFIG_UART1_RXBUFSIZE=256
+CONFIG_UART0_BAUD=115200
+CONFIG_UART1_BAUD=115200
+CONFIG_UART0_BITS=8
+CONFIG_UART1_BITS=8
+CONFIG_UART0_PARITY=0
+CONFIG_UART1_PARITY=0
+CONFIG_UART0_2STOP=n
+CONFIG_UART1_2STOP=n
+
+#
# General OS setup
#
# CONFIG_EXAMPLE - identifies the subdirectory in examples
diff --git a/nuttx/configs/mcu123-lpc214x/include/board.h b/nuttx/configs/mcu123-lpc214x/include/board.h
index 2ed4d0a8b..5fd69c3aa 100644
--- a/nuttx/configs/mcu123-lpc214x/include/board.h
+++ b/nuttx/configs/mcu123-lpc214x/include/board.h
@@ -50,6 +50,22 @@
/* Clocking *************************************************/
+#define LPC214X_FOSC 12000000
+#define LPC214X_PLL_M 5
+#define LPC214X_MSEL (PLL_M-1)
+#define LPC214X_PLL_P 2
+
+#define LPC214X_PSEL0 5
+#define LPC214X_PSEL1 6
+
+#define LPC214X_PLLE 0
+#define LPC214X_PLLC 1
+
+#define LPC214X_PLOCK 10
+
+#define LPC214X_PLL_FEED1 0xaa
+#define LPC214X_PLL_FEED2 0x55
+
/* LED definitions ******************************************/
/************************************************************