diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-10-24 14:29:19 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-10-24 14:29:19 +0000 |
commit | 9e3a47bcf0475f8aabbf5266fecd12d23ab0774d (patch) | |
tree | a9c1145b6250e89bd244cb2340bf273a902e9d55 | |
parent | 737df89c455794c2de3ec406923b820e5eb23c26 (diff) | |
download | ChibiOS-9e3a47bcf0475f8aabbf5266fecd12d23ab0774d.tar.gz ChibiOS-9e3a47bcf0475f8aabbf5266fecd12d23ab0774d.tar.bz2 ChibiOS-9e3a47bcf0475f8aabbf5266fecd12d23ab0774d.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2280 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/hal/platforms/LPC214x/spi_lld.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/os/hal/platforms/LPC214x/spi_lld.c b/os/hal/platforms/LPC214x/spi_lld.c index 04dafb93d..3bb0b4522 100644 --- a/os/hal/platforms/LPC214x/spi_lld.c +++ b/os/hal/platforms/LPC214x/spi_lld.c @@ -171,7 +171,7 @@ void spi_lld_start(SPIDriver *spip) { #endif
}
/* Configuration.*/
- SSPBase->SSP_CR1 = 0;
+ spip->spd_ssp->SSP_CR1 = 0;
/* Emptying the receive FIFO, it happens to not be empty while debugging.*/
while (spip->spd_ssp->SSP_SR & SR_RNE)
(void) spip->spd_ssp->SSP_DR;
@@ -197,9 +197,9 @@ void spi_lld_stop(SPIDriver *spip) { VICIntEnClear = INTMASK(SOURCE_SPI1);
}
#endif
- SSPBase->SSP_CR1 = 0;
- SSPBase->SSP_CR0 = 0;
- SSPBase->SSP_CPSR = 0;
+ spip->spd_ssp->SSP_CR1 = 0;
+ spip->spd_ssp->SSP_CR0 = 0;
+ spip->spd_ssp->SSP_CPSR = 0;
PCONP &= ~PCSPI1;
}
}
|