altos: Add missing ADC divider values for Tmega v1.0
authorKeith Packard <keithp@keithp.com>
Wed, 15 Jan 2014 21:28:16 +0000 (13:28 -0800)
committerKeith Packard <keithp@keithp.com>
Wed, 15 Jan 2014 21:28:16 +0000 (13:28 -0800)
Somehow I left these out of the previous commit

Signed-off-by: Keith Packard <keithp@keithp.com>
src/telemega-v1.0/ao_pins.h

index 95644dae03a1611b9e00197a980fa48e2af82f65..fe97c684114f947cc6fab805298cb4b223013d17 100644 (file)
@@ -249,6 +249,23 @@ struct ao_adc {
 #define AO_ADC_SQ8             AO_ADC_V_PBATT
 #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
  */