mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-10-11 16:57:21 +00:00
Fixing NRF_RADIO CI field on ble_phy.
X-Original-Commit: 3c2c8defa455137a45f397513ca54ed7be8e68f7
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user