summaryrefslogtreecommitdiff
path: root/src/kernel/ao.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-07-27 12:24:27 -0700
committerKeith Packard <keithp@keithp.com>2016-07-27 12:24:27 -0700
commit17adfd7939ff697afa96f7207a3fe17b6af789bd (patch)
tree35d5e1145121b0be0e20fd9820d69f1347abde79 /src/kernel/ao.h
parent1667cb8e8b702b05fc3ec39ee49029885df64a4a (diff)
altos: Keep telemetry and command output from interleaving
When monitoring telemetry, the frame needs to be sent together on one line, not split with the output of a command (like 'a') mixed in. Use a mutex for products with monitoring to keep command output and telemetry output each on separate lines. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/kernel/ao.h')
-rw-r--r--src/kernel/ao.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kernel/ao.h b/src/kernel/ao.h
index 0f878df5..56945bf5 100644
--- a/src/kernel/ao.h
+++ b/src/kernel/ao.h
@@ -667,6 +667,7 @@ extern __xdata union ao_monitor ao_monitor_ring[AO_MONITOR_RING];
#define ao_monitor_ring_next(n) (((n) + 1) & (AO_MONITOR_RING - 1))
#define ao_monitor_ring_prev(n) (((n) - 1) & (AO_MONITOR_RING - 1))
+extern __data uint8_t ao_monitoring_mutex;
extern __data uint8_t ao_monitoring;
extern __data uint8_t ao_monitor_head;