diff options
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 */
/** @} */
|