* AVR definitions and code fragments for AltOS
*/
-#define AO_STACK_SIZE 128
+#define AO_STACK_SIZE 116
/* Various definitions to make GCC look more like SDCC */
asm("ret"); \
} while(0)
-#define ao_arch_critical(b) do { cli(); b; sei(); } while (0)
+#define ao_arch_critical(b) do { cli(); do { b } while (0); 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_ */