diff options
author | Keith Packard <keithp@keithp.com> | 2011-03-19 23:31:20 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-03-19 23:31:20 -0700 |
commit | 3f0bc801fd08a613c681504f0d1f9374486a2487 (patch) | |
tree | 9d08e512ed9d4377bfaa906a2ada6ee8f2212e67 /src/ao.h | |
parent | 5c28b9312d90a3a66016abc641c20bcd852d69f8 (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.h | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -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; |