summaryrefslogtreecommitdiff
path: root/src/core/ao.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-04-28 23:02:12 -0700
committerKeith Packard <keithp@keithp.com>2013-05-07 20:07:52 -0700
commitf677a83348a9568679240ee9d731ab454f289831 (patch)
tree8a8bd51ae7cce01fac472fb33a653f0489e74f0d /src/core/ao.h
parent0488cd9cffc837e99490a0761216bbc5847ff400 (diff)
altos: Provide timeout value to ao_radio_recv
Instead of using ao_alarm around calls to ao_radio_recv, provide an explicit timeout value as needed by radio functions with more complicated system interaction than the cc1111. The timeout is 8 bits of clock ticks. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao.h')
-rw-r--r--src/core/ao.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ao.h b/src/core/ao.h
index 548e8738..2a8eb042 100644
--- a/src/core/ao.h
+++ b/src/core/ao.h
@@ -535,7 +535,7 @@ ao_radio_send(const __xdata void *d, uint8_t size) __reentrant;
#if HAS_RADIO_RECV
uint8_t
-ao_radio_recv(__xdata void *d, uint8_t size) __reentrant;
+ao_radio_recv(__xdata void *d, uint8_t size, uint8_t timeout) __reentrant;
void
ao_radio_recv_abort(void);