From 9e3a47bcf0475f8aabbf5266fecd12d23ab0774d Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 24 Oct 2010 14:29:19 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2280 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/LPC214x/spi_lld.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'os/hal/platforms/LPC214x') 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; } } -- cgit v1.2.3