aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal
diff options
context:
space:
mode:
authortfateba <tfateba@35acf78f-673a-0410-8e92-d51de3d6d3f4>2016-11-01 01:33:13 +0000
committertfateba <tfateba@35acf78f-673a-0410-8e92-d51de3d6d3f4>2016-11-01 01:33:13 +0000
commit4600e6fc46e0e13441cd87989eed8ad8d49786d4 (patch)
tree545a977893f4fe3fe1138533b32e29c0d9ca5d06 /os/hal
parente5887dc4903cc2c81ccb9acf456aee36c10e0f90 (diff)
downloadChibiOS-4600e6fc46e0e13441cd87989eed8ad8d49786d4.tar.gz
ChibiOS-4600e6fc46e0e13441cd87989eed8ad8d49786d4.tar.bz2
ChibiOS-4600e6fc46e0e13441cd87989eed8ad8d49786d4.zip
Add test program for AVR ADC hal.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9895 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal')
-rw-r--r--os/hal/lib/streams/chprintf.h2
-rw-r--r--os/hal/ports/AVR/hal_adc_lld.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/os/hal/lib/streams/chprintf.h b/os/hal/lib/streams/chprintf.h
index a595249a6..224744ef6 100644
--- a/os/hal/lib/streams/chprintf.h
+++ b/os/hal/lib/streams/chprintf.h
@@ -31,7 +31,7 @@
* @brief Float type support.
*/
#if !defined(CHPRINTF_USE_FLOAT) || defined(__DOXYGEN__)
-#define CHPRINTF_USE_FLOAT FALSE
+#define CHPRINTF_USE_FLOAT TRUE
#endif
#ifdef __cplusplus
diff --git a/os/hal/ports/AVR/hal_adc_lld.h b/os/hal/ports/AVR/hal_adc_lld.h
index 018b4a911..219fd9d0b 100644
--- a/os/hal/ports/AVR/hal_adc_lld.h
+++ b/os/hal/ports/AVR/hal_adc_lld.h
@@ -145,14 +145,14 @@ struct ADCDriver {
/**
* @brief Waiting thread.
*/
- Thread *thread;
+ thread_reference_t thread;
#endif /* ADC_USE_WAIT */
#if ADC_USE_MUTUAL_EXCLUSION || defined(__DOXYGEN__)
#if CH_CFG_USE_MUTEXES || defined(__DOXYGEN__)
/**
* @brief Mutex protecting the peripheral.
*/
- Mutex mutex;
+ mutex_t mutex;
#elif CH_CFG_USE_SEMAPHORES
Semaphore semaphore;
#endif