altos/telefire*: Do voltage tests in decivolts instead of ADC units
authorKeith Packard <keithp@keithp.com>
Fri, 1 Jun 2018 05:39:45 +0000 (22:39 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 1 Jun 2018 05:39:45 +0000 (22:39 -0700)
commit99642f9c4f89aa5577376a9cd118e7cff26e2762
tree724114801ee0e0697e829abe342d6e8b43fe1c27
parentab22c56ca02db87a84b6950c024a90b086f5ce28
altos/telefire*: Do voltage tests in decivolts instead of ADC units

This requires that each pad device specify the ADC reference voltage
and all relevant voltage divider resistor values explicitly so that
the ADC values can be converted to decivolts and compared with one
another. This should be easier to understand in the future when
reading the code.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_pad.c
src/telefire-v0.1/ao_pins.h
src/telefire-v0.2/ao_pins.h
src/telefireeight-v1.0/ao_pins.h
src/telefiretwo-v0.1/ao_pins.h