Merge pull request #1479 from g-oikonomou/bugfix/cc13xx/dont-mask-cmdsta

Allow the caller to access the entire content of CMDSTA
This commit is contained in:
George Oikonomou 2016-01-27 11:46:01 +00:00
commit a2d7b87936

View file

@ -160,7 +160,7 @@ rf_core_send_cmd(uint32_t cmd, uint32_t *status)
HWREG(RFC_DBELL_BASE + RFC_DBELL_O_CMDR) = cmd; HWREG(RFC_DBELL_BASE + RFC_DBELL_O_CMDR) = cmd;
do { do {
*status = HWREG(RFC_DBELL_BASE + RFC_DBELL_O_CMDSTA) & 0xFF; *status = HWREG(RFC_DBELL_BASE + RFC_DBELL_O_CMDSTA);
if(++timeout_count > 50000) { if(++timeout_count > 50000) {
PRINTF("rf_core_send_cmd: 0x%08lx Timeout\n", cmd); PRINTF("rf_core_send_cmd: 0x%08lx Timeout\n", cmd);
if(!interrupts_disabled) { if(!interrupts_disabled) {
@ -168,7 +168,7 @@ rf_core_send_cmd(uint32_t cmd, uint32_t *status)
} }
return RF_CORE_CMD_ERROR; return RF_CORE_CMD_ERROR;
} }
} while(*status == RF_CORE_CMDSTA_PENDING); } while((*status & RF_CORE_CMDSTA_RESULT_MASK) == RF_CORE_CMDSTA_PENDING);
if(!interrupts_disabled) { if(!interrupts_disabled) {
ti_lib_int_master_enable(); ti_lib_int_master_enable();