summaryrefslogtreecommitdiffstats
path: root/nuttx/arch/arm/src/lm3s/lm3s_lowputc.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2009-05-12 15:43:16 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2009-05-12 15:43:16 +0000
commit8d7ea393207b97bfa49dc5b79f35b3b1c02256d2 (patch)
tree6efb085254cfe1da4f5d26b28698e99bb1027664 /nuttx/arch/arm/src/lm3s/lm3s_lowputc.c
parenta494fc2fb20a89814e75dac566f8a52501f70201 (diff)
First cut at lm3s6918 serial driver
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@1772 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/arch/arm/src/lm3s/lm3s_lowputc.c')
-rw-r--r--nuttx/arch/arm/src/lm3s/lm3s_lowputc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/arch/arm/src/lm3s/lm3s_lowputc.c b/nuttx/arch/arm/src/lm3s/lm3s_lowputc.c
index 974488600c..684f988462 100644
--- a/nuttx/arch/arm/src/lm3s/lm3s_lowputc.c
+++ b/nuttx/arch/arm/src/lm3s/lm3s_lowputc.c
@@ -115,7 +115,7 @@
#define UART_LCRH_VALUE (UART_LCRH_NBITS|UART_LCRH_PARITY|UART_LCRH_NSTOP|UART_LCRH_FEN)
-/* Calculate BAUD rate from PCLK1:
+/* Calculate BAUD rate from the SYS clock:
*
* "The baud-rate divisor is a 22-bit number consisting of a 16-bit integer and a 6-bit
* fractional part. The number formed by these two values is used by the baud-rate generator
@@ -220,7 +220,7 @@ void up_lowputc(char ch)
void up_lowsetup(void)
{
uint32 rcgc1;
-#ifdef HAVE_CONSOLE
+#if defined(HAVE_CONSOLE) && !defined(CONFIG_SUPPRESS_UART_CONFIG)
uint32 ctl;
/* Enable the selected console device */
@@ -244,7 +244,7 @@ void up_lowsetup(void)
/* 5. Enable the UART by setting the UARTEN bit in the UART CTL register */
- ctl |= UART_CTL_UARTEN;
+ ctl |= (UART_CTL_UARTEN|UART_CTL_TXE|UART_CTL_RXE);
putreg32(ctl, LM3S_CONSOLE_BASE+LM3S_UART_CTL_OFFSET);
#endif