aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal
diff options
context:
space:
mode:
authorFabio Utzig <utzig@utzig.org>2016-04-09 23:14:42 +0000
committerFabio Utzig <utzig@utzig.org>2016-04-09 23:14:42 +0000
commitef9d68fea09167df3c36fc340d48f0c217303375 (patch)
tree747f3ceca0ec9fc61891c08fc123c4ecfcbaa278 /os/hal
parent9e0760fdc48d89488a054a5d5526db10f7709e72 (diff)
downloadChibiOS-ef9d68fea09167df3c36fc340d48f0c217303375.tar.gz
ChibiOS-ef9d68fea09167df3c36fc340d48f0c217303375.tar.bz2
ChibiOS-ef9d68fea09167df3c36fc340d48f0c217303375.zip
[AVR] Fix mutex/semaphore macro usage
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9268 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal')
-rw-r--r--os/hal/ports/AVR/hal_adc_lld.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/os/hal/ports/AVR/hal_adc_lld.h b/os/hal/ports/AVR/hal_adc_lld.h
index 9e9ac6b8a..018b4a911 100644
--- a/os/hal/ports/AVR/hal_adc_lld.h
+++ b/os/hal/ports/AVR/hal_adc_lld.h
@@ -44,8 +44,8 @@
/* Derived constants and error checks. */
/*===========================================================================*/
-#if !CH_USE_SEMAPHORES
-#error "the ADC driver requires CH_USE_SEMAPHORES"
+#if !CH_CFG_USE_SEMAPHORES
+#error "the ADC driver requires CH_CFG_USE_SEMAPHORES"
#endif
/*===========================================================================*/
@@ -148,12 +148,12 @@ struct ADCDriver {
Thread *thread;
#endif /* ADC_USE_WAIT */
#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.
*/
Mutex mutex;
-#elif CH_USE_SEMAPHORES
+#elif CH_CFG_USE_SEMAPHORES
Semaphore semaphore;
#endif
#endif /* ADC_USE_MUTUAL_EXCLUSION */