From a4da45798c65c7c010d5ca3b1f262ab9464815a4 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 3 Apr 2010 13:38:19 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1839 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/LPC111x/serial_lld.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'os') 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; } -- cgit v1.2.3