aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32F3xx/adc_lld.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-12-27 14:17:53 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-12-27 14:17:53 +0000
commita77c78a51ccf7a64dd5414300fe61b39c81732d2 (patch)
tree4b4d4166e25efe36435bf2c44e5f1cf7f01b2857 /os/hal/platforms/STM32F3xx/adc_lld.h
parenta16c9cc4b11eca6e2479d01c8b0386c6668e3c9c (diff)
downloadChibiOS-a77c78a51ccf7a64dd5414300fe61b39c81732d2.tar.gz
ChibiOS-a77c78a51ccf7a64dd5414300fe61b39c81732d2.tar.bz2
ChibiOS-a77c78a51ccf7a64dd5414300fe61b39c81732d2.zip
Not complete yet.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4979 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32F3xx/adc_lld.h')
-rw-r--r--os/hal/platforms/STM32F3xx/adc_lld.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/os/hal/platforms/STM32F3xx/adc_lld.h b/os/hal/platforms/STM32F3xx/adc_lld.h
index 7569bc24e..8d13caf87 100644
--- a/os/hal/platforms/STM32F3xx/adc_lld.h
+++ b/os/hal/platforms/STM32F3xx/adc_lld.h
@@ -224,6 +224,13 @@
#if !defined(STM32_ADC_DUAL_MODE) || defined(__DOXYGEN__)
#define STM32_ADC_DUAL_MODE FALSE
#endif
+
+/**
+ * @brief Makes the ADC samples type an 8bits one.
+ */
+#if !defined(STM32_ADC_COMPACT_SAMPLES) || defined(__DOXYGEN__)
+#define STM32_ADC_COMPACT_SAMPLES FALSE
+#endif
/** @} */
/*===========================================================================*/
@@ -315,7 +322,11 @@
/**
* @brief ADC sample data type.
*/
+#if !STM32_ADC_COMPACT_SAMPLES || defined(__DOXYGEN__)
typedef uint16_t adcsample_t;
+#else
+typedef uint_t adcsample_t;
+#endif
/**
* @brief Channels number in a conversion group.
@@ -566,8 +577,6 @@ extern "C" {
void adc_lld_stop(ADCDriver *adcp);
void adc_lld_start_conversion(ADCDriver *adcp);
void adc_lld_stop_conversion(ADCDriver *adcp);
- void adcSTM32SetWatchdog2(uint16_t low, uint16_t high, uint32_t channels);
- void adcSTM32SetWatchdog3(uint16_t low, uint16_t high, uint32_t channels);
#ifdef __cplusplus
}
#endif