aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-04-07 07:45:17 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-04-07 07:45:17 +0000
commit3adcb46879db0ebabf5d5575dcc724e8483c9079 (patch)
treef6c3cf0a98ce2a945335511ef3688ecbb990b655 /os
parent098b67f2c5739fe3c8c5e22d9067f91dd35c01a9 (diff)
downloadChibiOS-3adcb46879db0ebabf5d5575dcc724e8483c9079.tar.gz
ChibiOS-3adcb46879db0ebabf5d5575dcc724e8483c9079.tar.bz2
ChibiOS-3adcb46879db0ebabf5d5575dcc724e8483c9079.zip
Added a compile time chech to the MMC_SPI driver.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5553 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r--os/hal/include/mmc_spi.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/include/mmc_spi.h b/os/hal/include/mmc_spi.h
index 0663818df..5732570b6 100644
--- a/os/hal/include/mmc_spi.h
+++ b/os/hal/include/mmc_spi.h
@@ -65,8 +65,8 @@
/* Derived constants and error checks. */
/*===========================================================================*/
-#if !HAL_USE_SPI || !CH_USE_EVENTS
-#error "MMC_SPI driver requires HAL_USE_SPI and CH_USE_EVENTS"
+#if !HAL_USE_SPI || !SPI_USE_WAIT || !CH_USE_EVENTS
+#error "MMC_SPI driver requires HAL_USE_SPI, SPI_USE_WAIT and CH_USE_EVENTS"
#endif
/*===========================================================================*/