Fixing NRF_RADIO CI field on ble_phy.

X-Original-Commit: 3c2c8defa455137a45f397513ca54ed7be8e68f7
This commit is contained in:
Miguel Azevedo
2018-02-13 17:58:39 -02:00
parent b7dca4f760
commit 1ce5000d4e
+5 -5
View File
@@ -773,12 +773,12 @@ ble_phy_get_cur_rx_phy_mode(void)
(phy == BLE_PHY_MODE_CODED_500KBPS)) {
/*
* XXX CI field value is bits [2:1] in NRF_RADIO->PDUSTAT which is
* available in SDK v14.0 - it's NRF_RADIO->RESERVED7[0] in
* SDK v11.0 so let's use it for now
* available in nrfx for nrf52840 only - it's NRF_RADIO->RESERVED7[0]
* for other nrf52 vairants.
*/
phy = NRF_RADIO->RESERVED7[0] & 0x06 ?
BLE_PHY_MODE_CODED_500KBPS :
BLE_PHY_MODE_CODED_125KBPS;
phy = NRF_RADIO->PDUSTAT & 0x06 ?
BLE_PHY_MODE_CODED_500KBPS :
BLE_PHY_MODE_CODED_125KBPS;
}
#endif