aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-04-03 13:38:19 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-04-03 13:38:19 +0000
commita4da45798c65c7c010d5ca3b1f262ab9464815a4 (patch)
tree2599c781b4392f1ac4fd57edb08c622c2d446b81 /os/hal/platforms
parentad66afdb635c67a3e589ba746d5ace4c4fc6d23a (diff)
downloadChibiOS-a4da45798c65c7c010d5ca3b1f262ab9464815a4.tar.gz
ChibiOS-a4da45798c65c7c010d5ca3b1f262ab9464815a4.tar.bz2
ChibiOS-a4da45798c65c7c010d5ca3b1f262ab9464815a4.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1839 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms')
-rw-r--r--os/hal/platforms/LPC111x/serial_lld.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/os/hal/platforms/LPC111x/serial_lld.c b/os/hal/platforms/LPC111x/serial_lld.c
index 7ef7608e3..e77a47bb2 100644
--- a/os/hal/platforms/LPC111x/serial_lld.c
+++ b/os/hal/platforms/LPC111x/serial_lld.c
@@ -233,8 +233,8 @@ void sd_lld_init(void) {
#if USE_LPC111x_UART0
sdObjectInit(&SD1, NULL, notify1);
SD1.uart = LPC_UART;
- LPC_IOCON->PIO0_6 = 0xC1; /* RDX without resistors. */
- LPC_IOCON->PIO0_7 = 0xC1; /* TDX without resistors. */
+ LPC_IOCON->PIO1_6 = 0xC1; /* RDX without resistors. */
+ LPC_IOCON->PIO1_7 = 0xC1; /* TDX without resistors. */
#endif
}
@@ -251,7 +251,7 @@ void sd_lld_start(SerialDriver *sdp) {
if (sdp->state == SD_STOP) {
#if USE_LPC111x_UART0
if (&SD1 == sdp) {
- LPC_SYSCON->SYSAHBCLKCTRL |= (1 << 11);
+ LPC_SYSCON->SYSAHBCLKCTRL |= (1 << 12);
NVICEnableVector(UART_IRQn,
CORTEX_PRIORITY_MASK(LPC111x_UART0_PRIORITY));
}
@@ -273,7 +273,7 @@ void sd_lld_stop(SerialDriver *sdp) {
uart_deinit(sdp->uart);
#if USE_LPC111x_UART0
if (&SD1 == sdp) {
- LPC_SYSCON->SYSAHBCLKCTRL &= ~(1 << 11);
+ LPC_SYSCON->SYSAHBCLKCTRL &= ~(1 << 12);
NVICDisableVector(UART_IRQn);
return;
}