projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Clean up radio CRC handling
[fw/altos]
/
src
/
core
/
ao.h
diff --git
a/src/core/ao.h
b/src/core/ao.h
index 62eb488e41f269dd54f98679404a0874a5b0bdf3..861a0fd479dc70aed5863cafb3591ec5a088b07b 100644
(file)
--- 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;
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);
void
ao_radio_general_isr(void) ao_arch_interrupt(16);