diff options
author | Keith Packard <keithp@keithp.com> | 2011-08-27 15:19:43 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-08-27 15:19:43 -0700 |
commit | b33a92e372327158ab21c1bb2d091c58761efe10 (patch) | |
tree | 3603ca6802d59a36e090d826fc5e11a39c290982 /src/core/ao_monitor.c | |
parent | 7e2b5e2957ddcb808723081ca7e046a28b7e70e5 (diff) |
altos: Share log code between telescience and telebt. Add telebt log
Telescience and telebt both log data in 32-byte chunks, so share some
code which manages that between the two products. Add simple telemetry
logging to telebt.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao_monitor.c')
-rw-r--r-- | src/core/ao_monitor.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/core/ao_monitor.c b/src/core/ao_monitor.c index 69eb58e8..6f2d9dbb 100644 --- a/src/core/ao_monitor.c +++ b/src/core/ao_monitor.c @@ -25,15 +25,7 @@ __xdata uint8_t ao_monitoring; __pdata uint8_t ao_monitor_led; -#define AO_MONITOR_RING 8 - -__xdata union ao_monitor { - struct ao_telemetry_raw_recv raw; - struct ao_telemetry_orig_recv orig; - struct ao_telemetry_tiny_recv tiny; -} ao_monitor_ring[AO_MONITOR_RING]; - -#define ao_monitor_ring_next(n) (((n) + 1) & (AO_MONITOR_RING - 1)) +__xdata union ao_monitor ao_monitor_ring[AO_MONITOR_RING]; __data uint8_t ao_monitor_head; |