aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/include/spi.h
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-11-13 12:33:18 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-11-13 12:33:18 +0000
commitf098e079d0fd66419adbb226d7045ca810fe9890 (patch)
treee8f37bb7d9a2e04b18ea8a9474b76ef0f14012af /os/hal/include/spi.h
parent4fb6d9644ed9672096ddf813262f7d869dbfbb93 (diff)
downloadChibiOS-f098e079d0fd66419adbb226d7045ca810fe9890.tar.gz
ChibiOS-f098e079d0fd66419adbb226d7045ca810fe9890.tar.bz2
ChibiOS-f098e079d0fd66419adbb226d7045ca810fe9890.zip
Improved UART driver.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8479 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/include/spi.h')
-rw-r--r--os/hal/include/spi.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/include/spi.h b/os/hal/include/spi.h
index 40592776d..2db152ada 100644
--- a/os/hal/include/spi.h
+++ b/os/hal/include/spi.h
@@ -270,13 +270,13 @@ extern "C" {
const void *txbuf, void *rxbuf);
void spiStartSend(SPIDriver *spip, size_t n, const void *txbuf);
void spiStartReceive(SPIDriver *spip, size_t n, void *rxbuf);
-#if SPI_USE_WAIT
+#if SPI_USE_WAIT == TRUE
void spiIgnore(SPIDriver *spip, size_t n);
void spiExchange(SPIDriver *spip, size_t n, const void *txbuf, void *rxbuf);
void spiSend(SPIDriver *spip, size_t n, const void *txbuf);
void spiReceive(SPIDriver *spip, size_t n, void *rxbuf);
#endif
-#if SPI_USE_MUTUAL_EXCLUSION
+#if SPI_USE_MUTUAL_EXCLUSION == TRUE
void spiAcquireBus(SPIDriver *spip);
void spiReleaseBus(SPIDriver *spip);
#endif