diff options
Diffstat (limited to 'os/hal/templates/adc_lld.h')
-rw-r--r-- | os/hal/templates/adc_lld.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/os/hal/templates/adc_lld.h b/os/hal/templates/adc_lld.h index 2ebbc9cf5..701ac14cd 100644 --- a/os/hal/templates/adc_lld.h +++ b/os/hal/templates/adc_lld.h @@ -30,13 +30,21 @@ #if CH_HAL_USE_ADC || defined(__DOXYGEN__)
/*===========================================================================*/
+/* Driver constants. */
+/*===========================================================================*/
+
+/*===========================================================================*/
/* Driver pre-compile time settings. */
/*===========================================================================*/
/*===========================================================================*/
-/* Driver constants. */
+/* Derived constants and error checks. */
/*===========================================================================*/
+#if !CH_USE_SEMAPHORES
+#error "the ADC driver requires CH_USE_SEMAPHORES"
+#endif
+
/*===========================================================================*/
/* Driver data structures and types. */
/*===========================================================================*/
|