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
+5
View File
@@ -32,6 +32,11 @@ child-binding:
description: |
Offset to be substracted from ADC raw reading before applying the gain
filter-const:
type: int
default: 5
description: Low-pass filter multiplier 1/(2^filter-const)
enable-gpios:
type: phandle-array
required: false