diff options
-rw-r--r-- | os/hal/platforms/LPC111x/serial_lld.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/platforms/LPC111x/serial_lld.c b/os/hal/platforms/LPC111x/serial_lld.c index 369b543b3..7ef7608e3 100644 --- a/os/hal/platforms/LPC111x/serial_lld.c +++ b/os/hal/platforms/LPC111x/serial_lld.c @@ -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 << 12);
+ LPC_SYSCON->SYSAHBCLKCTRL |= (1 << 11);
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 << 12);
+ LPC_SYSCON->SYSAHBCLKCTRL &= ~(1 << 11);
NVICDisableVector(UART_IRQn);
return;
}
|