Merge pull request #15726 from jia200x/pr/cc2538_fix

cc2538_rf/radio_hal: fix transmit function
This commit is contained in:
benpicco 2021-01-14 11:42:42 +01:00 committed by GitHub
commit bd5b195433
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,6 +93,13 @@ static int _request_transmit(ieee802154_dev_t *dev)
if (cc2538_csma_ca_retries < 0) { if (cc2538_csma_ca_retries < 0) {
RFCORE_SFR_RFST = ISTXON; RFCORE_SFR_RFST = ISTXON;
/* The CPU Ctrl mask is used here to indicate whether the radio is being
* controlled by the CPU or the CSP Strobe Processor.
* We set this to 1 in order to indicate that the CSP is not used and
* thus, that the @ref ieee802154_radio_ops::confirm_transmit should
* return 0 immediately after the TXDONE event
*/
RFCORE_XREG_CSPCTRL |= CC2538_CSP_MCU_CTRL_MASK;
} }
else { else {
cc2538_cca = false; cc2538_cca = false;