diff options
| author | Keith Packard <keithp@keithp.com> | 2013-03-26 14:27:46 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2013-03-26 14:27:46 -0700 | 
| commit | 237e853b820b01409562b93b82684e5147286806 (patch) | |
| tree | 0a921c12a6c68d2c34fb0c447ff171367d36b10b /src | |
| parent | 4d187460bdcb97bf6d0a3550e4e03c4c223e4cc1 (diff) | |
altos: Allow radio recv and xmit to be separately configured
The CC115L is xmit only, so split out the functions and provide
defines to check for xmit or recv separately as needed.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/ao.h | 11 | 
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/ao.h b/src/core/ao.h index 133d9118..6cfdcba8 100644 --- a/src/core/ao.h +++ b/src/core/ao.h @@ -514,17 +514,28 @@ extern __xdata uint8_t	ao_radio_dma;  #define AO_RADIO_STATUS_CRC_OK	AO_FEC_DECODE_CRC_OK  #endif +#ifndef HAS_RADIO_RECV +#define HAS_RADIO_RECV HAS_RADIO +#endif +#ifndef HAS_RADIO_XMIT +#define HAS_RADIO_XMIT HAS_RADIO +#endif +  void  ao_radio_general_isr(void) ao_arch_interrupt(16); +#if HAS_RADIO_XMIT  void  ao_radio_send(const __xdata void *d, uint8_t size) __reentrant; +#endif +#if HAS_RADIO_RECV  uint8_t  ao_radio_recv(__xdata void *d, uint8_t size) __reentrant;  void  ao_radio_recv_abort(void); +#endif  void  ao_radio_test(uint8_t on);  | 
