[AVR] Fix mutex/semaphore macro usage

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9268 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
Fabio Utzig 2016-04-09 23:14:42 +00:00
parent 9e0760fdc4
commit ef9d68fea0
1 changed files with 4 additions and 4 deletions

View File

@ -44,8 +44,8 @@
/* Derived constants and error checks. */ /* Derived constants and error checks. */
/*===========================================================================*/ /*===========================================================================*/
#if !CH_USE_SEMAPHORES #if !CH_CFG_USE_SEMAPHORES
#error "the ADC driver requires CH_USE_SEMAPHORES" #error "the ADC driver requires CH_CFG_USE_SEMAPHORES"
#endif #endif
/*===========================================================================*/ /*===========================================================================*/
@ -148,12 +148,12 @@ struct ADCDriver {
Thread *thread; Thread *thread;
#endif /* ADC_USE_WAIT */ #endif /* ADC_USE_WAIT */
#if ADC_USE_MUTUAL_EXCLUSION || defined(__DOXYGEN__) #if ADC_USE_MUTUAL_EXCLUSION || defined(__DOXYGEN__)
#if CH_USE_MUTEXES || defined(__DOXYGEN__) #if CH_CFG_USE_MUTEXES || defined(__DOXYGEN__)
/** /**
* @brief Mutex protecting the peripheral. * @brief Mutex protecting the peripheral.
*/ */
Mutex mutex; Mutex mutex;
#elif CH_USE_SEMAPHORES #elif CH_CFG_USE_SEMAPHORES
Semaphore semaphore; Semaphore semaphore;
#endif #endif
#endif /* ADC_USE_MUTUAL_EXCLUSION */ #endif /* ADC_USE_MUTUAL_EXCLUSION */