summaryrefslogtreecommitdiff
path: root/src/drivers/ao_cc1200_CC1200.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-10-25 17:44:48 -0700
committerKeith Packard <keithp@keithp.com>2014-10-25 17:44:48 -0700
commitc831f1ffb378c20b7513d209d60cdd5dee9db85b (patch)
treed4755d34dc92976267debf16cba4297e37a8b0a4 /src/drivers/ao_cc1200_CC1200.h
parent3f7263f57b1b697d92ed6c3d62956e5bdfc11f24 (diff)
altos: Perform cc1200 calibration less often. Tweak radio params
This performs calibration after every 4 operations, or when the frequency changes. This reduces the time it takes to get to receive mode. This also makes the sync and preamble qualifiers more strict to reject bad packets. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/drivers/ao_cc1200_CC1200.h')
-rw-r--r--src/drivers/ao_cc1200_CC1200.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/ao_cc1200_CC1200.h b/src/drivers/ao_cc1200_CC1200.h
index ab642f70..c078c09d 100644
--- a/src/drivers/ao_cc1200_CC1200.h
+++ b/src/drivers/ao_cc1200_CC1200.h
@@ -34,7 +34,7 @@
CC1200_SYNC0, 0x91, /* Sync Word Configuration [7:0] */
CC1200_SYNC_CFG1, /* Sync Word Detection Configuration Reg. 1 */
((CC1200_SYNC_CFG1_SYNC_MODE_16_BITS << CC1200_SYNC_CFG1_SYNC_MODE) |
- (12 << CC1200_SYNC_CFG1_SYNC_THR)),
+ (11 << CC1200_SYNC_CFG1_SYNC_THR)),
CC1200_SYNC_CFG0, /* Sync Word Detection Configuration Reg. 0 */
((1 << CC1200_SYNC_CFG0_AUTO_CLEAR) |
(0 << CC1200_SYNC_CFG0_RX_CONFIG_LIMITATION) |
@@ -46,7 +46,7 @@
CC1200_PREAMBLE_CFG0, /* Preamble Detection Configuration Reg. 0 */
((1 << CC1200_PREAMBLE_CFG0_PQT_EN) |
(CC1200_PREAMBLE_CFG0_PQT_VALID_TIMEOUT_11 << CC1200_PREAMBLE_CFG0_PQT_VALID_TIMEOUT) |
- (12 << CC1200_PREAMBLE_CFG0_PQT)),
+ (6 << CC1200_PREAMBLE_CFG0_PQT)),
CC1200_IQIC, 0xcb, /* Digital Image Channel Compensation Configuration */
CC1200_CHAN_BW, 0x11, /* Channel Filter Configuration */
CC1200_MDMCFG1, 0x40, /* General Modem Parameter Configuration Reg. 1 */
@@ -60,7 +60,7 @@
CC1200_AGC_CFG0, 0x87, /* Automatic Gain Control Configuration Reg. 0 */
CC1200_FIFO_CFG, 0x40, /* FIFO Configuration */
CC1200_SETTLING_CFG, /* Frequency Synthesizer Calibration and Settling Configuration */
- ((CC1200_SETTLING_CFG_FS_AUTOCAL_IDLE_TO_ON << CC1200_SETTLING_CFG_FS_AUTOCAL) |
+ ((CC1200_SETTLING_CFG_FS_AUTOCAL_EVERY_4TH_TIME << CC1200_SETTLING_CFG_FS_AUTOCAL) |
(CC1200_SETTLING_CFG_LOCK_TIME_75_30 << CC1200_SETTLING_CFG_LOCK_TIME) |
(CC1200_SETTLING_CFG_FSREG_TIME_60 << CC1200_SETTLING_CFG_FSREG_TIME)),
CC1200_FS_CFG, /* Frequency Synthesizer Configuration */