+/*
+ * ao_telemetry.c
+ */
+
+#define AO_TELEMETRY_SENSOR 1
+#define AO_TELEMETRY_GPS 2
+
+struct ao_telemetry {
+ uint8_t addr;
+ uint8_t type;
+ uint8_t flight_state;
+ union {
+ struct ao_adc adc;
+ struct ao_gps_data gps;
+ } u;
+};
+
+void
+ao_telemetry_send(__xdata struct ao_telemetry *telemetry) __reentrant;
+
+void
+ao_telemetry_init(void);
+
+/*
+ * ao_radio.c
+ */
+
+void
+ao_radio_send(__xdata struct ao_telemetry *telemetry) __reentrant;
+
+struct ao_radio_recv {
+ struct ao_telemetry telemetry;
+ uint8_t rssi;
+ uint8_t status;
+};
+
+void
+ao_radio_recv(__xdata struct ao_radio_recv *recv) __reentrant;
+
+void
+ao_radio_init(void);
+
+/*
+ * ao_monitor.c
+ */
+
+void
+ao_monitor(void);
+
+void
+ao_monitor_init(void);
+
+/*
+ * ao_stdio.c
+ */
+
+void
+flush(void);