Skip to content

Commit 1f3ce81

Browse files
JordanYateshenrikbrixandersen
authored andcommitted
bluetooth: controller: ll_sw: nordic: constant latency req
When `CONFIG_NRF_SYS_EVENT` is enabled, route constant latency requests through the reference counted API. Signed-off-by: Jordan Yates <[email protected]>
1 parent 75cb327 commit 1f3ce81

File tree

1 file changed

+9
-0
lines changed
  • subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio

1 file changed

+9
-0
lines changed

subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <zephyr/sys/byteorder.h>
1111
#include <soc.h>
1212

13+
#include <nrf_sys_event.h>
1314
#include <nrfx_gpiote.h>
1415

1516
#include "util/mem.h"
@@ -221,7 +222,11 @@ void radio_reset(void)
221222
RADIO_TIMING_RU_Msk;
222223
#endif /* !CONFIG_BT_CTLR_TIFS_HW */
223224

225+
#if defined(CONFIG_NRF_SYS_EVENT)
226+
(void)nrf_sys_event_request_global_constlat();
227+
#else /* !CONFIG_NRF_SYS_EVENT */
224228
NRF_POWER->TASKS_CONSTLAT = 1U;
229+
#endif /* !CONFIG_NRF_SYS_EVENT */
225230
#endif /* CONFIG_SOC_COMPATIBLE_NRF54LX */
226231

227232
#if defined(HAL_RADIO_GPIO_HAVE_PA_PIN) || defined(HAL_RADIO_GPIO_HAVE_LNA_PIN)
@@ -1788,7 +1793,11 @@ void radio_tmr_stop(void)
17881793
#endif /* !CONFIG_BT_CTLR_TIFS_HW */
17891794

17901795
#if defined(CONFIG_SOC_COMPATIBLE_NRF54LX)
1796+
#if defined(CONFIG_NRF_SYS_EVENT)
1797+
(void)nrf_sys_event_release_global_constlat();
1798+
#else /* !CONFIG_NRF_SYS_EVENT */
17911799
NRF_POWER->TASKS_LOWPWR = 1U;
1800+
#endif /* !CONFIG_NRF_SYS_EVENT */
17921801
#endif /* CONFIG_SOC_COMPATIBLE_NRF54LX */
17931802
}
17941803

0 commit comments

Comments
 (0)