From 2a84e68e6d5cf5a1fe9b03d472a3d284fde2100d Mon Sep 17 00:00:00 2001 From: Antonio Lignan Date: Tue, 18 Oct 2016 09:35:04 +0200 Subject: [PATCH] cpu/cc2538: CCA threshold was fixed --- cpu/cc2538/dev/cc2538-rf.c | 2 +- cpu/cc2538/dev/cc2538-rf.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu/cc2538/dev/cc2538-rf.c b/cpu/cc2538/dev/cc2538-rf.c index 300ab7dee..66ff4694c 100644 --- a/cpu/cc2538/dev/cc2538-rf.c +++ b/cpu/cc2538/dev/cc2538-rf.c @@ -482,7 +482,7 @@ init(void) REG(SYS_CTRL_SCGCRFC) = 1; REG(SYS_CTRL_DCGCRFC) = 1; - REG(RFCORE_XREG_CCACTRL0) = CC2538_RF_CCA_THRES_USER_GUIDE; + REG(RFCORE_XREG_CCACTRL0) = CC2538_RF_CCA_THRES; /* * Changes from default values diff --git a/cpu/cc2538/dev/cc2538-rf.h b/cpu/cc2538/dev/cc2538-rf.h index 5edb478ba..87fef3a59 100644 --- a/cpu/cc2538/dev/cc2538-rf.h +++ b/cpu/cc2538/dev/cc2538-rf.h @@ -71,7 +71,7 @@ #ifdef CC2538_RF_CONF_CCA_THRES #define CC2538_RF_CCA_THRES CC2538_RF_CONF_CCA_THRES #else -#define CC2538_RF_CCA_THRES CCA_THRES_USER_GUIDE /** User guide recommendation */ +#define CC2538_RF_CCA_THRES CC2538_RF_CCA_THRES_USER_GUIDE #endif /* CC2538_RF_CONF_CCA_THRES */ #ifdef CC2538_RF_CONF_CHANNEL