diff options
Diffstat (limited to 'os/hal/include/mac.h')
-rw-r--r-- | os/hal/include/mac.h | 4 |
1 files changed, 4 insertions, 0 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. */
/*===========================================================================*/
|