diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-09-17 22:12:03 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-09-17 22:12:03 +0000 |
commit | 589e1a74a4f4e8a337df1c18e417db35631485d8 (patch) | |
tree | e10ae30edb0e21f2e78f4c68456c9fe137b6a47d /nuttx/arch/arm/src/lpc214x/lpc214x_lowputc.S | |
parent | d7a9800e3ecdd8f6bce4b5ee83bfe91e4238b61e (diff) | |
download | px4-nuttx-589e1a74a4f4e8a337df1c18e417db35631485d8.tar.gz px4-nuttx-589e1a74a4f4e8a337df1c18e417db35631485d8.tar.bz2 px4-nuttx-589e1a74a4f4e8a337df1c18e417db35631485d8.zip |
Fix LPC2148 PLL setup
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@925 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.S | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/lpc214x/lpc214x_lowputc.S b/nuttx/arch/arm/src/lpc214x/lpc214x_lowputc.S index 23258fce9..5e00d15cf 100644 --- a/nuttx/arch/arm/src/lpc214x/lpc214x_lowputc.S +++ b/nuttx/arch/arm/src/lpc214x/lpc214x_lowputc.S @@ -99,6 +99,8 @@ #endif #define LPC214X_LCR_VALUE (LPC214X_LCR_CHAR | LPC214X_LCR_PAR | LPC214X_LCR_STOP) +#define LPC214X_FCR_VALUE (LPC214X_FCR_FIFO_TRIG8 | LPC214X_FCR_TX_FIFO_RESET |\ + LPC214X_FCR_RX_FIFO_RESET | LPC214X_FCR_FIFO_ENABLE) /************************************************************************** * Private Types @@ -174,7 +176,7 @@ up_lowsetup: /* Configure parity, data bits, stop bits and set DLAB=1 */ - ldr r0, =LPC214X_UART0_BASE + ldr r0, =LPC214X_UART_BASE mov r1, #(LPC214X_LCR_VALUE | LPC214X_LCR_DLAB_ENABLE) strb r1, [r0, #LPC214X_UART_LCR_OFFSET] @@ -191,6 +193,11 @@ up_lowsetup: mov r1, #LPC214X_LCR_VALUE strb r1, [r0, #LPC214X_UART_LCR_OFFSET] + /* Configure the FIFOs */ + + mov r1, #LPC214X_FCR_VALUE + strb r1, [r0, #LPC214X_UART_FCR_OFFSET] + /* And return */ mov pc, lr |