From 3adcb46879db0ebabf5d5575dcc724e8483c9079 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 7 Apr 2013 07:45:17 +0000 Subject: [PATCH] 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 --- os/hal/include/mmc_spi.h | 4 ++-- 1 file 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 /*===========================================================================*/