aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/include/serial.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/include/serial.h')
-rw-r--r--os/hal/include/serial.h4
1 files changed, 4 insertions, 0 deletions
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. */
/*===========================================================================*/