summaryrefslogtreecommitdiff
path: root/src/lpc/lpc.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-06-15 01:20:49 -0700
committerKeith Packard <keithp@keithp.com>2013-06-15 01:21:45 -0700
commitbe9ee9ed2d041c4ab4e77ee2010fe3c7a1ca6597 (patch)
tree2ec07a0e0e03157589b51e6d5d67a2e01972af83 /src/lpc/lpc.h
parent7361371190bf3805b6d0414e61f697aca7c7cff1 (diff)
altos/lpc: Filter ADC inputs
They're amazingly noisy on EasyMini, so just filter them as the only thing we use them for is battery and pyro numbers. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/lpc/lpc.h')
-rw-r--r--src/lpc/lpc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lpc/lpc.h b/src/lpc/lpc.h
index 49034c1c..d66f0dd0 100644
--- a/src/lpc/lpc.h
+++ b/src/lpc/lpc.h
@@ -1169,6 +1169,13 @@ extern struct lpc_adc lpc_adc;
#define LPC_ADC_CR_CLKS_6 5
#define LPC_ADC_CR_CLKS_5 6
#define LPC_ADC_CR_CLKS_4 7
+#define LPC_ADC_CR_START 24
+#define LPC_ADC_CR_START_NONE 0
+#define LPC_ADC_CR_START_NOW 1
+
+#define LPC_ADC_GDR_CHN 24
+#define LPC_ADC_GDR_OVERRUN 30
+#define LPC_ADC_GDR_DONE 31
#define LPC_ADC_INTEN_ADINTEN 0
#define LPC_ADC_INTEN_ADGINTEN 8