aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/templates/adc_lld.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-12-19 10:08:08 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-12-19 10:08:08 +0000
commitcb565d0734615184aa74eb76981e55ff2aaebd35 (patch)
tree3fd2f9a94b792257b11a8b6e94041feb1362c2e2 /os/hal/templates/adc_lld.h
parent3dea38d9549dae5956b8753e824b3e855e91fdee (diff)
downloadChibiOS-cb565d0734615184aa74eb76981e55ff2aaebd35.tar.gz
ChibiOS-cb565d0734615184aa74eb76981e55ff2aaebd35.tar.bz2
ChibiOS-cb565d0734615184aa74eb76981e55ff2aaebd35.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1441 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/templates/adc_lld.h')
-rw-r--r--os/hal/templates/adc_lld.h10
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. */
/*===========================================================================*/