diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-08-23 08:31:11 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-08-23 08:31:11 +0000 |
commit | 32c2d2fca06f0cc2122a5fc944716b629f8f8fcd (patch) | |
tree | 681808cd8597e2c03aec3f94b59a0ff6371f4186 /os/hal/platforms/STM32F4xx/adc_lld.h | |
parent | b5dfe4685f0ac1c31e9dcb2cbcae9f70bc5daa4d (diff) | |
download | ChibiOS-32c2d2fca06f0cc2122a5fc944716b629f8f8fcd.tar.gz ChibiOS-32c2d2fca06f0cc2122a5fc944716b629f8f8fcd.tar.bz2 ChibiOS-32c2d2fca06f0cc2122a5fc944716b629f8f8fcd.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6207 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32F4xx/adc_lld.h')
-rw-r--r-- | os/hal/platforms/STM32F4xx/adc_lld.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/os/hal/platforms/STM32F4xx/adc_lld.h b/os/hal/platforms/STM32F4xx/adc_lld.h index 7cda791ac..c8f0570eb 100644 --- a/os/hal/platforms/STM32F4xx/adc_lld.h +++ b/os/hal/platforms/STM32F4xx/adc_lld.h @@ -437,17 +437,13 @@ struct ADCDriver { /**
* @brief Waiting thread.
*/
- Thread *thread;
+ thread_reference_t thread;
#endif
#if ADC_USE_MUTUAL_EXCLUSION || defined(__DOXYGEN__)
-#if CH_USE_MUTEXES || defined(__DOXYGEN__)
/**
* @brief Mutex protecting the peripheral.
*/
- Mutex mutex;
-#elif CH_USE_SEMAPHORES
- Semaphore semaphore;
-#endif
+ mutex_t mutex;
#endif /* ADC_USE_MUTUAL_EXCLUSION */
#if defined(ADC_DRIVER_EXT_FIELDS)
ADC_DRIVER_EXT_FIELDS
|