diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-12-26 10:48:56 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-12-26 10:48:56 +0000 |
commit | cc94e31e381fce2321081643ede52b1f8b39edb4 (patch) | |
tree | f0070aa42a0834b9fff8bb281686f53ebbe09b5e /os/hal/platforms/STM32F3xx/adc_lld.c | |
parent | fdfd900d9707de137c87258c7b83882a25dc4697 (diff) | |
download | ChibiOS-cc94e31e381fce2321081643ede52b1f8b39edb4.tar.gz ChibiOS-cc94e31e381fce2321081643ede52b1f8b39edb4.tar.bz2 ChibiOS-cc94e31e381fce2321081643ede52b1f8b39edb4.zip |
More STM32F3xx ADC code, not complete yet.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4975 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32F3xx/adc_lld.c')
-rw-r--r-- | os/hal/platforms/STM32F3xx/adc_lld.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/os/hal/platforms/STM32F3xx/adc_lld.c b/os/hal/platforms/STM32F3xx/adc_lld.c index e97627078..9821d3b3b 100644 --- a/os/hal/platforms/STM32F3xx/adc_lld.c +++ b/os/hal/platforms/STM32F3xx/adc_lld.c @@ -303,6 +303,40 @@ void adc_lld_stop_conversion(ADCDriver *adcp) { adc_lld_stop_adc(adcp->adc);
}
+/**
+ * @brief Programs the analog watchdog 2.
+ * @note This function must be called after starting the driver and
+ * before starting a conversion.
+ *
+ * @param[in] adc pointer to the physical ADC to configure
+ * @param[in] low lower limit, as a 12 bits value
+ * @param[in] high upper limit, as a 12 bits value
+ * @param[in] channels bit mask of guarded channels
+ *
+ * @api
+ */
+void adcSTM32SetWatchdog2(ADC_TypeDef *adc, uint16_t low, uint16_t high,
+ uint32_t channels) {
+
+}
+
+/**
+ * @brief Programs the analog watchdog 3.
+ * @note This function must be called after starting the driver and
+ * before starting a conversion.
+ *
+ * @param[in] adc pointer to the physical ADC to configure
+ * @param[in] low lower limit, as a 12 bits value
+ * @param[in] high upper limit, as a 12 bits value
+ * @param[in] channels bit mask of guarded channels
+ *
+ * @api
+ */
+void adcSTM32SetWatchdog3(ADC_TypeDef *adc, uint16_t low, uint16_t high,
+ uint32_t channels) {
+
+}
+
#endif /* HAL_USE_ADC */
/** @} */
|