mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Mask CMDSTA when waiting for a command to get accepted
This commit is contained in:
parent
19cb3227ca
commit
946b72a58d
@ -159,7 +159,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);
|
||||
*status = HWREG(RFC_DBELL_BASE + RFC_DBELL_O_CMDSTA) & 0xFF;
|
||||
if(++timeout_count > 50000) {
|
||||
PRINTF("rf_core_send_cmd: 0x%08lx Timeout\n", cmd);
|
||||
if(!interrupts_disabled) {
|
||||
|
Loading…
Reference in New Issue
Block a user