diff options
author | Keith Packard <keithp@keithp.com> | 2012-06-27 17:17:44 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-06-27 17:17:44 -0700 |
commit | 84f9a525c64491afa9b7a565e3c10a4cee106e14 (patch) | |
tree | 33f5fc926fbe26f9f90f7475d1bb1d590d9edf07 /src/core/ao.h | |
parent | b0b7f5da2d29716959c6793d744e47a3d435c247 (diff) |
altos: Clean up radio CRC handling
Make the FEC code just set the CRC_OK bit like the cc1111 radio does;
eliminates a bunch of weird conventions across the FEC API.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao.h')
-rw-r--r-- | src/core/ao.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/ao.h b/src/core/ao.h index 62eb488e..861a0fd4 100644 --- a/src/core/ao.h +++ b/src/core/ao.h @@ -511,6 +511,13 @@ extern __xdata uint8_t ao_radio_dma_done; extern __xdata uint8_t ao_radio_done; extern __xdata uint8_t ao_radio_mutex; +#ifdef PKT_APPEND_STATUS_1_CRC_OK +#define AO_RADIO_STATUS_CRC_OK PKT_APPEND_STATUS_1_CRC_OK +#else +#include <ao_fec.h> +#define AO_RADIO_STATUS_CRC_OK AO_FEC_DECODE_CRC_OK +#endif + void ao_radio_general_isr(void) ao_arch_interrupt(16); |