telescience: steal last adc channel for icp3 most recent value
[fw/altos] / src / avr / ao_arch.h
index b816279e29f540f14a49f63f41083365ee051f45..a14d0adecc6d7fc3d0cb3d5e0965768c15eb4818 100644 (file)
@@ -67,7 +67,11 @@ extern void putchar(char c);
 extern char getchar(void);
 extern void ao_avr_stdio_init(void);
 
-extern const uint16_t ao_serial_number;
+#define AO_ROMCONFIG_VERSION   2
+
+#define AO_ROMCONFIG_SYMBOL(a) const
+
+extern AO_ROMCONFIG_SYMBOL(0) uint16_t ao_serial_number;
 
 #define AVR_PUSH8(stack, val)  (*((stack)--) = (val))
 
@@ -146,12 +150,5 @@ extern uint8_t     ao_cpu_sleep_disable;
 
 #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_ */