#define ao_arch_critical(b) __critical { b }
struct ao_adc {
- uint16_t tick; /* tick when the sample was read */
int16_t accel; /* accelerometer */
int16_t pres; /* pressure sensor */
int16_t temp; /* temperature sensor */
int16_t v_batt; /* battery voltage */
int16_t sense_d; /* drogue continuity sense */
int16_t sense_m; /* main continuity sense */
+#if HAS_ACCEL_REF
+ int16_t accel_ref; /* acceleration reference */
+#endif
};
-#define AO_ADC_RING 32
+#define AO_DATA_RING 32
/* ao_button.c */
#ifdef HAS_BUTTON