summaryrefslogtreecommitdiff
path: root/src/ao.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-12-19 11:34:16 -0800
committerKeith Packard <keithp@keithp.com>2009-12-19 11:35:35 -0800
commit10d1bbcd9709a5eee8d50989215242b16feb7232 (patch)
tree7de1577d347a3bb7d58208d3a7b973c860b16264 /src/ao.h
parenta15abc1882a3bdd2c980eed169f3b80337528390 (diff)
Use ao_radio_get/ao_radio_put in packet code.
The ao_radio_get function both acquires the mutex *and* configures the radio channel and frequency. Failing to use this in the packet code would leave the radio frequency unconfigured. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao.h')
-rw-r--r--src/ao.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ao.h b/src/ao.h
index 39f7bea2..096a4d80 100644
--- a/src/ao.h
+++ b/src/ao.h
@@ -836,6 +836,11 @@ void
ao_radio_general_isr(void) interrupt 16;
void
+ao_radio_get(void);
+
+#define ao_radio_put() ao_mutex_put(&ao_radio_mutex)
+
+void
ao_radio_set_telemetry(void);
void