drivers: ieee802154_cc2520: move to new logger

Move to new logger and remove commented logger calls.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2018-10-16 08:33:14 -04:00
commit 7147f0ceeb
3 changed files with 3 additions and 6 deletions

View file

@ -76,7 +76,6 @@ static inline bool _cc1200_instruct(struct cc1200_context *ctx, u8_t addr)
#define DEFINE_REG_READ(__reg_name, __reg_addr, __ext) \ #define DEFINE_REG_READ(__reg_name, __reg_addr, __ext) \
static inline u8_t read_reg_##__reg_name(struct cc1200_context *ctx) \ static inline u8_t read_reg_##__reg_name(struct cc1200_context *ctx) \
{ \ { \
/*SYS_LOG_DBG("");*/ \
return _cc1200_read_single_reg(ctx, __reg_addr, __ext); \ return _cc1200_read_single_reg(ctx, __reg_addr, __ext); \
} }
@ -84,7 +83,6 @@ static inline bool _cc1200_instruct(struct cc1200_context *ctx, u8_t addr)
static inline bool write_reg_##__reg_name(struct cc1200_context *ctx, \ static inline bool write_reg_##__reg_name(struct cc1200_context *ctx, \
u8_t val) \ u8_t val) \
{ \ { \
/*SYS_LOG_DBG("");*/ \
return _cc1200_write_single_reg(ctx, __reg_addr, \ return _cc1200_write_single_reg(ctx, __reg_addr, \
val, __ext); \ val, __ext); \
} }
@ -109,7 +107,6 @@ DEFINE_REG_READ(num_rxbytes, CC1200_REG_NUM_RXBYTES, true)
#define DEFINE_STROBE_INSTRUCTION(__ins_name, __ins_addr) \ #define DEFINE_STROBE_INSTRUCTION(__ins_name, __ins_addr) \
static inline bool instruct_##__ins_name(struct cc1200_context *ctx) \ static inline bool instruct_##__ins_name(struct cc1200_context *ctx) \
{ \ { \
/*SYS_LOG_DBG("");*/ \
return _cc1200_instruct(ctx, __ins_addr); \ return _cc1200_instruct(ctx, __ins_addr); \
} }

View file

@ -122,7 +122,7 @@ static inline void _cc2520_print_exceptions(struct cc2520_context *cc2520)
flag = read_reg_excflag1(cc2520); flag = read_reg_excflag1(cc2520);
SYS_LOG_DBG("EXCFLAG1:"); LOG_DBG("EXCFLAG1:");
if (flag & EXCFLAG1_RX_FRM_DONE) { if (flag & EXCFLAG1_RX_FRM_DONE) {
LOG_DBG(" RX_FRM_DONE"); LOG_DBG(" RX_FRM_DONE");
@ -161,7 +161,7 @@ static inline void _cc2520_print_errors(struct cc2520_context *cc2520)
{ {
u8_t flag = read_reg_excflag2(cc2520); u8_t flag = read_reg_excflag2(cc2520);
SYS_LOG_DBG("EXCFLAG2:"); LOG_DBG("EXCFLAG2:");
if (flag & EXCFLAG2_MEMADDR_ERROR) { if (flag & EXCFLAG2_MEMADDR_ERROR) {
LOG_DBG(" MEMADDR_ERROR"); LOG_DBG(" MEMADDR_ERROR");

View file

@ -43,7 +43,7 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#define _MAX_PKT_TX_DURATION (133 + 9 + 8 + 9) #define _MAX_PKT_TX_DURATION (133 + 9 + 8 + 9)
#if LOG_LEVEL == LOG_LEVEL_DBG #if LOG_LEVEL == LOG_LEVEL_DBG
/* Prevent timer overflow during SYS_LOG_* output */ /* Prevent timer overflow during LOG_* output */
#define _MACACKWAITDURATION (864 / 16 + 11625) #define _MACACKWAITDURATION (864 / 16 + 11625)
#define MCR20A_SEQ_SYNC_TIMEOUT (200) #define MCR20A_SEQ_SYNC_TIMEOUT (200)
#else #else