From c852dcb3c960198f49c5fdd8619a6d5d581d9136 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Thu, 25 Nov 2010 18:32:45 +0000 Subject: Improved ADC and SPI driver models. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2426 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/src/spi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'os/hal/src/spi.c') diff --git a/os/hal/src/spi.c b/os/hal/src/spi.c index 4d9749962..d1102cc6e 100644 --- a/os/hal/src/spi.c +++ b/os/hal/src/spi.c @@ -295,7 +295,7 @@ void spiIgnore(SPIDriver *spip, size_t n) { chDbgAssert(spip->spd_config->spc_endcb == NULL, "spiIgnore(), #2", "has callback"); spiStartIgnoreI(spip, n); - _spi_wait(spip); + _spi_wait_s(spip); chSysUnlock(); } @@ -329,7 +329,7 @@ void spiExchange(SPIDriver *spip, size_t n, chDbgAssert(spip->spd_config->spc_endcb == NULL, "spiExchange(), #2", "has callback"); spiStartExchangeI(spip, n, txbuf, rxbuf); - _spi_wait(spip); + _spi_wait_s(spip); chSysUnlock(); } @@ -360,7 +360,7 @@ void spiSend(SPIDriver *spip, size_t n, const void *txbuf) { chDbgAssert(spip->spd_config->spc_endcb == NULL, "spiSend(), #2", "has callback"); spiStartSendI(spip, n, txbuf); - _spi_wait(spip); + _spi_wait_s(spip); chSysUnlock(); } @@ -391,7 +391,7 @@ void spiReceive(SPIDriver *spip, size_t n, void *rxbuf) { chDbgAssert(spip->spd_config->spc_endcb == NULL, "spiReceive(), #2", "has callback"); spiStartReceiveI(spip, n, rxbuf); - _spi_wait(spip); + _spi_wait_s(spip); chSysUnlock(); } #endif /* SPI_USE_WAIT */ -- cgit v1.2.3