summaryrefslogtreecommitdiff
path: root/ao.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-04-21 01:17:03 -0700
committerKeith Packard <keithp@keithp.com>2009-04-21 01:17:03 -0700
commitd1887ded41a5bfec8e10e9fd736fa9444b9b6222 (patch)
tree936c2e251c195d80e13a0754931ba188fbf7e5ad /ao.h
parent43c8f7012102cdb591ace899420c10e4a78385ad (diff)
Fix up fancy dbg stuff. Add teleterra initial bits.
The dbg stuff needed a bit of help to actually walk the tables; it appears that complex expressions confuse sdcc. This also adds primitive teleterra bits, but no UI, etc. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao.h')
-rw-r--r--ao.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/ao.h b/ao.h
index acce9180..c2e83277 100644
--- a/ao.h
+++ b/ao.h
@@ -622,6 +622,9 @@ ao_dbg_debug_mode(void);
void
ao_dbg_reset(void);
+void
+ao_dbg_init(void);
+
/*
* ao_serial.c
*/
@@ -685,17 +688,11 @@ ao_gps_init(void);
* 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;
+ uint8_t addr;
+ uint8_t flight_state;
+ struct ao_adc adc;
+ struct ao_gps_data gps;
};
void