adc_scaled: Add support for Duet2 Maestro "vref monitoring"

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2020-09-09 21:32:03 -04:00
parent 9b2816477b
commit 1f5848fc1a
3 changed files with 103 additions and 2 deletions

View File

@@ -2222,6 +2222,23 @@
# communication. The pin must have a valid pinmux configuration
# for the given SERCOM peripheral. This parameter must be provided.
# Duet2 Maestro analog scaling by vref and vssa readings. Defining an
# adc_scaled section enables virtual adc pins (such as "my_name:PB0")
# that are automatically adjusted by the board's vref and vssa
# monitoring pins. Be sure to define this config section above any
# config sections that use one these virtual pins.
#[adc_scaled my_name]
#vref_pin:
# The ADC pin to use for VREF monitoring. This parameter must be
# provided.
#vssa_pin:
# The ADC pin to use for VSSA monitoring. This parameter must be
# provided.
#smooth_time: 2.0
# A time value (in seconds) over which the vref and vssa
# measurements will be smoothed to reduce the impact of measurement
# noise. The default is 2 seconds.
# Replicape support - see the generic-replicape.cfg file for further
# details.
#[replicape]