diff options
Diffstat (limited to 'os/hal/templates/can_lld.h')
| -rw-r--r-- | os/hal/templates/can_lld.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/os/hal/templates/can_lld.h b/os/hal/templates/can_lld.h index 5b41536e1..b70c839be 100644 --- a/os/hal/templates/can_lld.h +++ b/os/hal/templates/can_lld.h @@ -57,6 +57,14 @@ #endif /* !CAN_SUPPORTS_SLEEP */
/*===========================================================================*/
+/* Derived constants and error checks. */
+/*===========================================================================*/
+
+#if !CH_USE_SEMAPHORES || !CH_USE_EVENTS
+#error "the ADC driver requires CH_USE_SEMAPHORES and CH_USE_EVENTS"
+#endif
+
+/*===========================================================================*/
/* Driver data structures and types. */
/*===========================================================================*/
|
