altos: Integrate telescience support
[fw/altos] / src / avr / ao_arch.h
index 0ed97361bb34da7b8be023b91b28b8f6c0b80ad2..c695a725669bf2e64bf77f49d31088f779fc3676 100644 (file)
@@ -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_ */