mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-10-01 21:17:21 +00:00
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:
@@ -1298,7 +1298,6 @@ ble_phy_dbg_time_setup(void)
|
|||||||
/* Publish RADIO->EVENTS_READY */
|
/* Publish RADIO->EVENTS_READY */
|
||||||
NRF_RADIO_NS->PUBLISH_READY = DPPI_CH_PUB(RADIO_EVENTS_READY);
|
NRF_RADIO_NS->PUBLISH_READY = DPPI_CH_PUB(RADIO_EVENTS_READY);
|
||||||
NRF_DPPIC_NS->CHENSET = DPPI_CH_MASK(RADIO_EVENTS_READY);
|
NRF_DPPIC_NS->CHENSET = DPPI_CH_MASK(RADIO_EVENTS_READY);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if MYNEWT_VAL(BLE_PHY_DBG_TIME_ADDRESS_END_PIN) >= 0
|
#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
|
* 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
|
#if PLNA_SINGLE_GPIO
|
||||||
plna_idx = ble_phy_gpiote_configure(MYNEWT_VAL(BLE_LL_PA_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);
|
NRF_GPIOTE_NS->SUBSCRIBE_SET[plna_idx] = DPPI_CH_UNSUB(RADIO_EVENTS_READY);
|
||||||
|
|||||||
Reference in New Issue
Block a user