From 781b0b129cccbecba160effce8c4ddd68295b8b9 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 11 Sep 2010 10:57:11 +0000 Subject: Fixed bug 3064204. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2175 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/templates/adc_lld.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'os/hal/templates/adc_lld.h') 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 @@ -111,10 +111,6 @@ typedef struct { * @brief Current configuration data. */ const ADCConfig *ad_config; - /** - * @brief Synchronization semaphore. - */ - Semaphore ad_sem; /** * @brief Current callback function or @p NULL. */ @@ -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; -- cgit v1.2.3