git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1838 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2010-04-03 13:12:48 +00:00
parent 220341765d
commit ad66afdb63
1 changed files with 2 additions and 2 deletions

View File

@ -251,7 +251,7 @@ void sd_lld_start(SerialDriver *sdp) {
if (sdp->state == SD_STOP) { if (sdp->state == SD_STOP) {
#if USE_LPC111x_UART0 #if USE_LPC111x_UART0
if (&SD1 == sdp) { if (&SD1 == sdp) {
LPC_SYSCON->SYSAHBCLKCTRL |= (1 << 12); LPC_SYSCON->SYSAHBCLKCTRL |= (1 << 11);
NVICEnableVector(UART_IRQn, NVICEnableVector(UART_IRQn,
CORTEX_PRIORITY_MASK(LPC111x_UART0_PRIORITY)); CORTEX_PRIORITY_MASK(LPC111x_UART0_PRIORITY));
} }
@ -273,7 +273,7 @@ void sd_lld_stop(SerialDriver *sdp) {
uart_deinit(sdp->uart); uart_deinit(sdp->uart);
#if USE_LPC111x_UART0 #if USE_LPC111x_UART0
if (&SD1 == sdp) { if (&SD1 == sdp) {
LPC_SYSCON->SYSAHBCLKCTRL &= ~(1 << 12); LPC_SYSCON->SYSAHBCLKCTRL &= ~(1 << 11);
NVICDisableVector(UART_IRQn); NVICDisableVector(UART_IRQn);
return; return;
} }