summaryrefslogtreecommitdiff
path: root/src/ao.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-03-19 23:31:20 -0700
committerKeith Packard <keithp@keithp.com>2011-03-19 23:31:20 -0700
commit3f0bc801fd08a613c681504f0d1f9374486a2487 (patch)
tree9d08e512ed9d4377bfaa906a2ada6ee8f2212e67 /src/ao.h
parent5c28b9312d90a3a66016abc641c20bcd852d69f8 (diff)
altos: Configure packet size from send/recv parameters.
Instead of setting the packet size at configuration time, use the provided packet size to the send/recv functions to configure the radio. This eliminates many configuration calls, leaving us with 'RDF' mode and 'packet' mode, the latter working for telemetry and the bi-directional link. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao.h')
-rw-r--r--src/ao.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/ao.h b/src/ao.h
index 00c395d6..e076831d 100644
--- a/src/ao.h
+++ b/src/ao.h
@@ -962,18 +962,12 @@ void
ao_radio_general_isr(void) __interrupt 16;
void
-ao_radio_get(void);
+ao_radio_get(uint8_t len);
#define ao_radio_put() ao_mutex_put(&ao_radio_mutex)
void
-ao_radio_set_fixed_pkt(size_t size);
-
-#define ao_radio_set_telemetry() \
- ao_radio_set_fixed_pkt(sizeof (struct ao_telemetry))
-
-#define ao_radio_set_packet() \
- ao_radio_set_fixed_pkt(sizeof (struct ao_packet))
+ao_radio_set_packet(void);
void
ao_radio_send(__xdata void *data, uint8_t size) __reentrant;