aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/include/can.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/include/can.h')
-rw-r--r--os/hal/include/can.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/os/hal/include/can.h b/os/hal/include/can.h
index c8027af39..8f2a7572d 100644
--- a/os/hal/include/can.h
+++ b/os/hal/include/can.h
@@ -29,6 +29,10 @@
#if CH_HAL_USE_CAN || defined(__DOXYGEN__)
+#if !CH_USE_SEMAPHORES
+#error "CAN driver requires CH_USE_SEMAPHORES"
+#endif
+
/**
* @brief Errors rate warning.
*/