summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2019-02-18 16:25:38 -0800
committerKeith Packard <keithp@keithp.com>2019-02-18 16:25:38 -0800
commit2e468bfbf9f430b6a3970283d818ea4405ccfc5b (patch)
treebc831d7605c916be22ff0d9891bb7926056740c8 /src
parent4b41b14ea46ff6954895824a60637c0eb4353b17 (diff)
altos/telefireone-v1.0: Set various ADC values
Reference voltage and divider resistor values. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r--src/telefireone-v1.0/ao_pins.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/telefireone-v1.0/ao_pins.h b/src/telefireone-v1.0/ao_pins.h
index b83b024d..cd8eb658 100644
--- a/src/telefireone-v1.0/ao_pins.h
+++ b/src/telefireone-v1.0/ao_pins.h
@@ -193,6 +193,8 @@
#define AO_ADC_FIRST_PIN 0
+#define AO_ADC_REFERENCE_DV 33
+
#define AO_NUM_ADC 5
#define AO_ADC_SQ1 AO_PAD_ADC_0
@@ -201,6 +203,17 @@
#define AO_ADC_SQ4 AO_PAD_ADC_THRUST
#define AO_ADC_SQ5 AO_PAD_ADC_PRESSURE
+#define AO_PAD_R_V_BATT_BATT_SENSE 200
+#define AO_PAD_R_BATT_SENSE_GND 22
+
+#define AO_PAD_R_V_BATT_V_PYRO 200
+#define AO_PAD_R_V_PYRO_PYRO_SENSE 200
+#define AO_PAD_R_PYRO_SENSE_GND 22
+
+#undef AO_PAD_R_V_PYRO_IGNITER
+#define AO_PAD_R_IGNITER_IGNITER_SENSE 200
+#define AO_PAD_R_IGNITER_SENSE_GND 22
+
#define AO_PYRO_R_PYRO_SENSE 200
#define AO_PYRO_R_SENSE_GND 22