nimble/phy/nrf53: Fix PA/LNA enable

READY/DISABLED events were not published if PA/LNA was enabled so it was
not working - it only worked if GPIO debugging is also enabled which
published those events.
This commit is contained in:
Andrzej Kaczmarek
2022-05-05 19:33:52 +02:00
parent 21d59b8b40
commit 7a111aeeba
+7 -1
View File
@@ -1298,7 +1298,6 @@ ble_phy_dbg_time_setup(void)
/* Publish RADIO->EVENTS_READY */
NRF_RADIO_NS->PUBLISH_READY = DPPI_CH_PUB(RADIO_EVENTS_READY);
NRF_DPPIC_NS->CHENSET = DPPI_CH_MASK(RADIO_EVENTS_READY);
#endif
#if MYNEWT_VAL(BLE_PHY_DBG_TIME_ADDRESS_END_PIN) >= 0
@@ -1435,6 +1434,13 @@ ble_phy_init(void)
* TODO: figure out if this affects power consumption
*/
/* Publish RADIO->EVENTS_READY */
NRF_RADIO_NS->PUBLISH_READY = DPPI_CH_PUB(RADIO_EVENTS_READY);
NRF_DPPIC_NS->CHENSET = DPPI_CH_MASK(RADIO_EVENTS_READY);
/* Publish RADIO->EVENTS_DISABLED */
NRF_RADIO_NS->PUBLISH_DISABLED = DPPI_CH_PUB(RADIO_EVENTS_DISABLED);
NRF_DPPIC_NS->CHENSET = DPPI_CH_MASK(RADIO_EVENTS_DISABLED);
#if PLNA_SINGLE_GPIO
plna_idx = ble_phy_gpiote_configure(MYNEWT_VAL(BLE_LL_PA_GPIO));
NRF_GPIOTE_NS->SUBSCRIBE_SET[plna_idx] = DPPI_CH_UNSUB(RADIO_EVENTS_READY);