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:
commit
a2d7b87936
@ -160,7 +160,7 @@ rf_core_send_cmd(uint32_t cmd, uint32_t *status)
|
||||
|
||||
HWREG(RFC_DBELL_BASE + RFC_DBELL_O_CMDR) = cmd;
|
||||
do {
|
||||
*status = HWREG(RFC_DBELL_BASE + RFC_DBELL_O_CMDSTA) & 0xFF;
|
||||
*status = HWREG(RFC_DBELL_BASE + RFC_DBELL_O_CMDSTA);
|
||||
if(++timeout_count > 50000) {
|
||||
PRINTF("rf_core_send_cmd: 0x%08lx Timeout\n", cmd);
|
||||
if(!interrupts_disabled) {
|
||||
@ -168,7 +168,7 @@ rf_core_send_cmd(uint32_t cmd, uint32_t *status)
|
||||
}
|
||||
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) {
|
||||
ti_lib_int_master_enable();
|
||||
|
Loading…
Reference in New Issue
Block a user