aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/templates/adc_lld.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/templates/adc_lld.h')
-rw-r--r--os/hal/templates/adc_lld.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/os/hal/templates/adc_lld.h b/os/hal/templates/adc_lld.h
index d969b24e0..6486abb37 100644
--- a/os/hal/templates/adc_lld.h
+++ b/os/hal/templates/adc_lld.h
@@ -112,10 +112,6 @@ typedef struct {
*/
const ADCConfig *ad_config;
/**
- * @brief Synchronization semaphore.
- */
- Semaphore ad_sem;
- /**
* @brief Current callback function or @p NULL.
*/
adccallback_t ad_callback;
@@ -131,6 +127,12 @@ typedef struct {
* @brief Current conversion group pointer or @p NULL.
*/
const ADCConversionGroup *ad_grpp;
+#if ADC_USE_WAIT
+ /**
+ * @brief Synchronization semaphore.
+ */
+ Semaphore ad_sem;
+#endif
/* End of the mandatory fields.*/
} ADCDriver;