summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-01-15 13:28:16 -0800
committerKeith Packard <keithp@keithp.com>2014-01-15 13:28:16 -0800
commitcfcb127b248b62231049b6b50cf9b7edc2731f0a (patch)
tree0923e72f3ab42889124862d3c1de94e50cd74319
parent9001d5780a41986017bd3bbc7f8c5556b116c351 (diff)
altos: Add missing ADC divider values for Tmega v1.0
Somehow I left these out of the previous commit Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/telemega-v1.0/ao_pins.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/telemega-v1.0/ao_pins.h b/src/telemega-v1.0/ao_pins.h
index 95644dae..fe97c684 100644
--- a/src/telemega-v1.0/ao_pins.h
+++ b/src/telemega-v1.0/ao_pins.h
@@ -250,6 +250,23 @@ struct ao_adc {
#define AO_ADC_SQ9 AO_ADC_TEMP
/*
+ * Voltage divider on ADC battery sampler
+ */
+#define AO_BATTERY_DIV_PLUS 56 /* 5.6k */
+#define AO_BATTERY_DIV_MINUS 100 /* 10k */
+
+/*
+ * Voltage divider on ADC igniter samplers
+ */
+#define AO_IGNITE_DIV_PLUS 100 /* 100k */
+#define AO_IGNITE_DIV_MINUS 27 /* 27k */
+
+/*
+ * ADC reference in decivolts
+ */
+#define AO_ADC_REFERENCE_DV 33
+
+/*
* Pressure sensor settings
*/
#define HAS_MS5607 1