diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-11-25 18:32:45 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-11-25 18:32:45 +0000 |
commit | c852dcb3c960198f49c5fdd8619a6d5d581d9136 (patch) | |
tree | 18da29976692bb47392618d38484c7cebbabdffb /os/hal/src | |
parent | d973c3f25a6ab56e12b9f858b0692ec4297d84c9 (diff) | |
download | ChibiOS-c852dcb3c960198f49c5fdd8619a6d5d581d9136.tar.gz ChibiOS-c852dcb3c960198f49c5fdd8619a6d5d581d9136.tar.bz2 ChibiOS-c852dcb3c960198f49c5fdd8619a6d5d581d9136.zip |
Improved ADC and SPI driver models.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2426 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/src')
-rw-r--r-- | os/hal/src/spi.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 */
|