diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-07-20 10:12:44 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-07-20 10:12:44 +0000 |
commit | 49d71a01abeefa000a4cd7a556052d826b096d49 (patch) | |
tree | 8c5ce964f194d9f7b17e91d912d9e6d723e4b8ae /os/hal/src/spi.c | |
parent | dc7b36df31f4d9dbd9a039319df74f4b2c8eed0c (diff) | |
download | ChibiOS-49d71a01abeefa000a4cd7a556052d826b096d49.tar.gz ChibiOS-49d71a01abeefa000a4cd7a556052d826b096d49.tar.bz2 ChibiOS-49d71a01abeefa000a4cd7a556052d826b096d49.zip |
Renamed or added prefix to all hernel configuration options.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6010 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/src/spi.c')
-rw-r--r-- | os/hal/src/spi.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/os/hal/src/spi.c b/os/hal/src/spi.c index 2dc0cc6ee..b2ddf48d2 100644 --- a/os/hal/src/spi.c +++ b/os/hal/src/spi.c @@ -78,7 +78,7 @@ void spiObjectInit(SPIDriver *spip) { spip->thread = NULL;
#endif /* SPI_USE_WAIT */
#if SPI_USE_MUTUAL_EXCLUSION
-#if CH_USE_MUTEXES
+#if CH_CFG_USE_MUTEXES
chMtxInit(&spip->mutex);
#else
chSemInit(&spip->semaphore, 1);
@@ -405,9 +405,9 @@ void spiAcquireBus(SPIDriver *spip) { chDbgCheck(spip != NULL, "spiAcquireBus");
-#if CH_USE_MUTEXES
+#if CH_CFG_USE_MUTEXES
chMtxLock(&spip->mutex);
-#elif CH_USE_SEMAPHORES
+#elif CH_CFG_USE_SEMAPHORES
chSemWait(&spip->semaphore);
#endif
}
@@ -425,10 +425,10 @@ void spiReleaseBus(SPIDriver *spip) { chDbgCheck(spip != NULL, "spiReleaseBus");
-#if CH_USE_MUTEXES
+#if CH_CFG_USE_MUTEXES
(void)spip;
chMtxUnlock();
-#elif CH_USE_SEMAPHORES
+#elif CH_CFG_USE_SEMAPHORES
chSemSignal(&spip->semaphore);
#endif
}
|