aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/include
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/include')
-rw-r--r--os/hal/include/mac.h4
-rw-r--r--os/hal/include/mmc_spi.h4
-rw-r--r--os/hal/include/serial.h4
3 files changed, 10 insertions, 2 deletions
diff --git a/os/hal/include/mac.h b/os/hal/include/mac.h
index 0d7a3d76e..85da4fc57 100644
--- a/os/hal/include/mac.h
+++ b/os/hal/include/mac.h
@@ -41,6 +41,10 @@
/* Derived constants and error checks. */
/*===========================================================================*/
+#if !CH_USE_SEMAPHORES || !CH_USE_EVENTS
+#error "the MAC driver requires CH_USE_SEMAPHORES and CH_USE_EVENTS"
+#endif
+
/*===========================================================================*/
/* Driver data structures and types. */
/*===========================================================================*/
diff --git a/os/hal/include/mmc_spi.h b/os/hal/include/mmc_spi.h
index da2ed573c..2be2673fb 100644
--- a/os/hal/include/mmc_spi.h
+++ b/os/hal/include/mmc_spi.h
@@ -89,8 +89,8 @@
/* Derived constants and error checks. */
/*===========================================================================*/
-#if !CH_USE_EVENTS
-#error "MMC_SPI driver requires CH_USE_EVENTS"
+#if !CH_HAL_USE_SPI || !CH_USE_EVENTS
+#error "MMC_SPI driver requires CH_HAL_USE_SPI and CH_USE_EVENTS"
#endif
/*===========================================================================*/
diff --git a/os/hal/include/serial.h b/os/hal/include/serial.h
index 3f4a1a8ca..a2d75713e 100644
--- a/os/hal/include/serial.h
+++ b/os/hal/include/serial.h
@@ -77,6 +77,10 @@
/* Derived constants and error checks. */
/*===========================================================================*/
+#if !CH_USE_QUEUES && !CH_USE_EVENTS
+#error "Serial Driver requires CH_USE_QUEUES and CH_USE_EVENTS"
+#endif
+
/*===========================================================================*/
/* Driver data structures and types. */
/*===========================================================================*/