summaryrefslogtreecommitdiff
path: root/nuttx/configs/lpc4330-xplorer/include/board.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-07-07 15:29:13 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-07-07 15:29:13 +0000
commitac94ef18a7373645f708c1256df06e369ea9f371 (patch)
treef687b0a066cf60cf2f9bcd25b2e15fccf12f2849 /nuttx/configs/lpc4330-xplorer/include/board.h
parent873dfa2ae7f7eb298fbae5a1e3e22d4877bbcb30 (diff)
downloadpx4-nuttx-ac94ef18a7373645f708c1256df06e369ea9f371.tar.gz
px4-nuttx-ac94ef18a7373645f708c1256df06e369ea9f371.tar.bz2
px4-nuttx-ac94ef18a7373645f708c1256df06e369ea9f371.zip
Straighten out LPC32 UART clocking (still some baud calculation issues)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4917 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/lpc4330-xplorer/include/board.h')
-rw-r--r--nuttx/configs/lpc4330-xplorer/include/board.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/nuttx/configs/lpc4330-xplorer/include/board.h b/nuttx/configs/lpc4330-xplorer/include/board.h
index 1c2f42b2c..485cd13e0 100644
--- a/nuttx/configs/lpc4330-xplorer/include/board.h
+++ b/nuttx/configs/lpc4330-xplorer/include/board.h
@@ -97,6 +97,21 @@
#define LPC43_CCLK BOARD_FCLKOUT_FREQUENCY
+/* UART clocking ***********************************************************/
+/* Configure all U[S]ARTs to use the XTAL input frequency */
+
+#define BOARD_USART0_CLKSRC BASE_USART0_CLKSEL_XTAL
+#define BOARD_USART0_BASEFREQ BOARD_XTAL_FREQUENCY
+
+#define BOARD_UART1_CLKSRC BASE_UART1_CLKSEL_XTAL
+#define BOARD_UART1_BASEFREQ BOARD_XTAL_FREQUENCY
+
+#define BOARD_USART2_CLKSRC BASE_USART2_CLKSEL_XTAL
+#define BOARD_USART3_BASEFREQ BOARD_XTAL_FREQUENCY
+
+#define BOARD_USART3_CLKSRC BASE_USART3_CLKSEL_XTAL
+#define BOARD_USART3_BASEFREQ BOARD_XTAL_FREQUENCY
+
/* LED definitions *********************************************************/
/* The LPC4330-Xplorer has 2 user-controllable LEDs labeled D2 an D3 in the
* schematic and on but referred to has LED1 and LED2 here, respectively.