ADC filter time constant configurable per channel

Add a filter-const prop to the adc_inputs devicetree binding and use it instead
of the global ADC_FILTER_CONST in daq.cpp.
This commit is contained in:
Martin Jäger
2020-09-21 13:29:31 +02:00
committed by Martin Jäger
parent 4008a09f3b
commit ef9c8571cc
4 changed files with 39 additions and 10 deletions
-1
View File
@@ -28,7 +28,6 @@ extern "C" {
#include <stdint.h>
#define ADC_FILTER_CONST 5 // filter multiplier = 1/(2^ADC_FILTER_CONST)
#define ADC_SCALE_FLOAT 65536.0F // 16-bit full scale
#ifdef CONFIG_SOC_SERIES_STM32G4X