Mask CMDSTA when waiting for a command to get accepted

This commit is contained in:
George Oikonomou 2015-11-01 20:46:46 +00:00
parent 19cb3227ca
commit 946b72a58d

View file

@ -159,7 +159,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); *status = HWREG(RFC_DBELL_BASE + RFC_DBELL_O_CMDSTA) & 0xFF;
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) {