projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid ram from 0xfda2 through feff, its funky
[fw/altos]
/
ao.h
diff --git
a/ao.h
b/ao.h
index acce918079ad95f683ce6f0f02b1e2c08af581ff..b10f1b34c1d2502cdd60c0252da5bfcc00447830 100644
(file)
--- a/
ao.h
+++ b/
ao.h
@@
-122,7
+122,7
@@
ao_timer_init(void);
* ao_adc.c
*/
* ao_adc.c
*/
-#define AO_ADC_RING
128
+#define AO_ADC_RING
64
/*
* One set of samples read from the A/D converter
/*
* One set of samples read from the A/D converter
@@
-622,6
+622,9
@@
ao_dbg_debug_mode(void);
void
ao_dbg_reset(void);
void
ao_dbg_reset(void);
+void
+ao_dbg_init(void);
+
/*
* ao_serial.c
*/
/*
* ao_serial.c
*/
@@
-685,22
+688,13
@@
ao_gps_init(void);
* ao_telemetry.c
*/
* ao_telemetry.c
*/
-#define AO_TELEMETRY_SENSOR 1
-#define AO_TELEMETRY_GPS 2
-
struct ao_telemetry {
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
-ao_telemetry_send(__xdata struct ao_telemetry *telemetry) __reentrant;
-
void
ao_telemetry_init(void);
void
ao_telemetry_init(void);