aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32F3xx/adc_lld.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/platforms/STM32F3xx/adc_lld.c')
-rw-r--r--os/hal/platforms/STM32F3xx/adc_lld.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/os/hal/platforms/STM32F3xx/adc_lld.c b/os/hal/platforms/STM32F3xx/adc_lld.c
index 85276bb1d..108711690 100644
--- a/os/hal/platforms/STM32F3xx/adc_lld.c
+++ b/os/hal/platforms/STM32F3xx/adc_lld.c
@@ -32,6 +32,16 @@
#if HAL_USE_ADC || defined(__DOXYGEN__)
/*===========================================================================*/
+/* Driver local definitions. */
+/*===========================================================================*/
+
+#if STM32_ADC_USE_ADC12 || STM32_ADC_USE_ADC34
+#define STM32_ADC_LINKED_MODE TRUE
+#else
+#define STM32_ADC_LINKED_MODE FALSE
+#endif
+
+/*===========================================================================*/
/* Driver exported variables. */
/*===========================================================================*/