Browse Source

cpu/cc2538: Wait for transmission to complete before returning from send()

pr/spi.typo
Aaron Sowry 6 years ago
parent
commit
191dc0ffad
  1. 3
      cpu/cc2538/radio/cc2538_rf_netdev.c

3
cpu/cc2538/radio/cc2538_rf_netdev.c

@ -283,6 +283,9 @@ static int _send(netdev2_t *netdev, const struct iovec *vector, unsigned count)
RFCORE_SFR_RFST = ISTXON;
/* Wait for transmission to complete */
RFCORE_WAIT_UNTIL(RFCORE->XREG_FSMSTAT1bits.TX_ACTIVE == 0);
return pkt_len;
}

Loading…
Cancel
Save