summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/shared
diff options
context:
space:
mode:
authorMartin Galvan <martin.galvan@tallertechnologies.com>2015-03-11 16:57:23 -0300
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-03-20 09:16:07 +0100
commit7b35a36fb16491dbdb98106ab39d35b8d19598e5 (patch)
treea5c23a33c3316623fa5fa5129f6669147f249bb0 /c/src/lib/libbsp/shared
parentscore: Fix _Thread_Change_priority() (diff)
downloadrtems-7b35a36fb16491dbdb98106ab39d35b8d19598e5.tar.bz2
Add CAN, PWM, ADC and UART1/2/3 support to the LPC176x BSP.
This patch adds support for the following devices to the LPC176x BSP: * CAN * PWM * ADC It also adds the probe routines for UART1/2/3 to the console_device_table in console-config.c, and enables UART1 in configure.ac.
Diffstat (limited to 'c/src/lib/libbsp/shared')
-rw-r--r--c/src/lib/libbsp/shared/include/uart-output-char.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/shared/include/uart-output-char.h b/c/src/lib/libbsp/shared/include/uart-output-char.h
index 4242901db4..a6648d1ad4 100644
--- a/c/src/lib/libbsp/shared/include/uart-output-char.h
+++ b/c/src/lib/libbsp/shared/include/uart-output-char.h
@@ -51,8 +51,8 @@
CONSOLE_LCR = 0x00; \
CONSOLE_IER = 0x00; \
CONSOLE_LCR = 0x80; \
- CONSOLE_DLL = (dll); \
- CONSOLE_DLM = 0x00; \
+ CONSOLE_DLL = (dll & 0xFF); \
+ CONSOLE_DLM = (dll >> 8); \
CONSOLE_LCR = 0x03; \
CONSOLE_FCR = 0x07; \
} while (0)