diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-02-17 18:30:29 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-02-17 18:30:29 +0000 |
commit | ca6cbafae34a25b1f63e1547ed69e3239f63d475 (patch) | |
tree | dcd7d586cc445179ed2dacaa5b249d4a6c5fae97 /os/hal/platforms/LPC214x/serial_lld.c | |
parent | 76802b45d7f67f2e9db1bb6e8a1e11757b0abe2d (diff) | |
download | ChibiOS-ca6cbafae34a25b1f63e1547ed69e3239f63d475.tar.gz ChibiOS-ca6cbafae34a25b1f63e1547ed69e3239f63d475.tar.bz2 ChibiOS-ca6cbafae34a25b1f63e1547ed69e3239f63d475.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1625 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/LPC214x/serial_lld.c')
-rw-r--r-- | os/hal/platforms/LPC214x/serial_lld.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/os/hal/platforms/LPC214x/serial_lld.c b/os/hal/platforms/LPC214x/serial_lld.c index b44e5eaf9..5f01bcf48 100644 --- a/os/hal/platforms/LPC214x/serial_lld.c +++ b/os/hal/platforms/LPC214x/serial_lld.c @@ -266,12 +266,12 @@ void sd_lld_init(void) { #if USE_LPC214x_UART0
sdObjectInit(&SD1, NULL, notify1);
SD1.uart = U0Base;
- SetVICVector(UART0IrqHandler, LPC214x_UART1_PRIORITY, SOURCE_UART0);
+ SetVICVector(UART0IrqHandler, LPC214x_UART0_PRIORITY, SOURCE_UART0);
#endif
#if USE_LPC214x_UART1
sdObjectInit(&SD2, NULL, notify2);
SD2.uart = U1Base;
- SetVICVector(UART1IrqHandler, LPC214x_UART2_PRIORITY, SOURCE_UART1);
+ SetVICVector(UART1IrqHandler, LPC214x_UART1_PRIORITY, SOURCE_UART1);
#endif
}
@@ -286,13 +286,13 @@ void sd_lld_start(SerialDriver *sdp) { sdp->config = &default_config;
if (sdp->state == SD_STOP) {
-#if USE_LPC214x_UART1
+#if USE_LPC214x_UART0
if (&SD1 == sdp) {
PCONP = (PCONP & PCALL) | PCUART0;
VICIntEnable = INTMASK(SOURCE_UART0);
}
#endif
-#if USE_LPC214x_UART2
+#if USE_LPC214x_UART1
if (&SD2 == sdp) {
PCONP = (PCONP & PCALL) | PCUART1;
VICIntEnable = INTMASK(SOURCE_UART1);
@@ -313,14 +313,14 @@ void sd_lld_stop(SerialDriver *sdp) { if (sdp->state == SD_READY) {
uart_deinit(sdp->uart);
-#if USE_LPC214x_UART1
+#if USE_LPC214x_UART0
if (&SD1 == sdp) {
PCONP = (PCONP & PCALL) & ~PCUART0;
VICIntEnClear = INTMASK(SOURCE_UART0);
return;
}
#endif
-#if USE_LPC214x_UART2
+#if USE_LPC214x_UART1
if (&SD2 == sdp) {
PCONP = (PCONP & PCALL) & ~PCUART1;
VICIntEnClear = INTMASK(SOURCE_UART1);
|