projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altoslib: Allow flight number to be zero
[fw/altos]
/
src
/
drivers
/
ao_cc1120.h
diff --git
a/src/drivers/ao_cc1120.h
b/src/drivers/ao_cc1120.h
index 0f03f2c7c74dea874ba976e640f2c8cf070b4455..60b9621e5042fc62291814870db2965576ad3fac 100644
(file)
--- a/
src/drivers/ao_cc1120.h
+++ b/
src/drivers/ao_cc1120.h
@@
-181,6
+181,11
@@
#define CC1120_PREAMBLE_CFG1_PREAMBLE_WORD_MASK 3
#define CC1120_PREAMBLE_CFG0 0x0e
#define CC1120_PREAMBLE_CFG1_PREAMBLE_WORD_MASK 3
#define CC1120_PREAMBLE_CFG0 0x0e
+#define CC1120_PREAMBLE_CFG0_PQT_EN 5
+#define CC1120_PREAMBLE_CFG0_PQT_VALID_TIMEOUT 4
+#define CC1120_PREAMBLE_CFG0_PQT 0
+#define CC1120_PREAMBLE_CFG0_PQT_MASK 0xf
+
#define CC1120_FREQ_IF_CFG 0x0f
#define CC1120_IQIC 0x10
#define CC1120_CHAN_BW 0x11
#define CC1120_FREQ_IF_CFG 0x0f
#define CC1120_IQIC 0x10
#define CC1120_CHAN_BW 0x11
@@
-215,6
+220,8
@@
#define CC1120_AGC_CFG1 0x1c
#define CC1120_AGC_CFG0 0x1d
#define CC1120_FIFO_CFG 0x1e
#define CC1120_AGC_CFG1 0x1c
#define CC1120_AGC_CFG0 0x1d
#define CC1120_FIFO_CFG 0x1e
+#define CC1120_FIFO_CFG_CRC_AUTOFLUSH 7
+#define CC1120_FIFO_CFG_FIFO_THR 0
#define CC1120_DEV_ADDR 0x1f
#define CC1120_SETTLING_CFG 0x20
#define CC1120_SETTLING_CFG_FS_AUTOCAL 3
#define CC1120_DEV_ADDR 0x1f
#define CC1120_SETTLING_CFG 0x20
#define CC1120_SETTLING_CFG_FS_AUTOCAL 3
@@
-281,6
+288,7
@@
#define CC1120_PKT_CFG1_APPEND_STATUS 0
#define CC1120_PKT_CFG0 0x28
#define CC1120_PKT_CFG1_APPEND_STATUS 0
#define CC1120_PKT_CFG0 0x28
+#define CC1120_PKT_CFG0_RESERVED7 7
#define CC1120_PKT_CFG0_LENGTH_CONFIG 5
#define CC1120_PKT_CFG0_LENGTH_CONFIG_FIXED 0
#define CC1120_PKT_CFG0_LENGTH_CONFIG_VARIABLE 1
#define CC1120_PKT_CFG0_LENGTH_CONFIG 5
#define CC1120_PKT_CFG0_LENGTH_CONFIG_FIXED 0
#define CC1120_PKT_CFG0_LENGTH_CONFIG_VARIABLE 1
@@
-320,6
+328,8
@@
#define CC1120_DIRECT_FIFO 0x3e
#define CC1120_FIFO 0x3f
#define CC1120_DIRECT_FIFO 0x3e
#define CC1120_FIFO 0x3f
+#define CC1120_FIFO_SIZE 128
+
/* Extended register space */
#define CC1120_EXTENDED_BIT 0x8000
/* Extended register space */
#define CC1120_EXTENDED_BIT 0x8000