summaryrefslogtreecommitdiff
path: root/src/avr/ao_arch.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-08-26 15:02:43 -0700
committerKeith Packard <keithp@keithp.com>2011-08-26 20:56:25 -0700
commitc32893ce79835a8f861d6ef414644c2ff9769ff6 (patch)
treea6fd36123685f6880d35612782ddff2ed2d9b18c /src/avr/ao_arch.h
parent8125acc030574afed6f23aa8aa302d9c768bb04e (diff)
altos: Integrate telescience support
Adds a few drivers including an LCD driver Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/avr/ao_arch.h')
-rw-r--r--src/avr/ao_arch.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/avr/ao_arch.h b/src/avr/ao_arch.h
index 0ed97361..c695a725 100644
--- a/src/avr/ao_arch.h
+++ b/src/avr/ao_arch.h
@@ -145,5 +145,14 @@ extern uint8_t ao_cpu_sleep_disable;
#define ao_arch_critical(b) do { cli(); b; sei(); } while (0)
+#define AO_TELESCIENCE_NUM_ADC 12
+
+struct ao_adc {
+ uint16_t tick; /* tick when the sample was read */
+ uint16_t adc[AO_TELESCIENCE_NUM_ADC]; /* samples */
+};
+
+#define AO_ADC_RING 16
+
#endif /* _AO_ARCH_H_ */