diff --git a/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_nrf5.h b/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_nrf5.h index 88b6939cd20..414e4a0dbb5 100644 --- a/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_nrf5.h +++ b/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_nrf5.h @@ -51,6 +51,7 @@ #if defined(CONFIG_BT_CTLR_NRF_GRTC) #include +#include #else /* !CONFIG_BT_CTLR_NRF_GRTC */ #include #endif /* !CONFIG_BT_CTLR_NRF_GRTC */ diff --git a/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_nrf5_dppi.h b/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_nrf5_dppi.h index 5c2b2802752..e4ceae36bca 100644 --- a/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_nrf5_dppi.h +++ b/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_nrf5_dppi.h @@ -109,17 +109,25 @@ static inline void hal_event_timer_start_ppi_config(void) ((GRTC_PUBLISH_COMPARE_EN_Enabled << GRTC_PUBLISH_COMPARE_EN_Pos) & GRTC_PUBLISH_COMPARE_EN_Msk); + nrf_grtc_publish_set(NRF_GRTC, HAL_CNTR_GRTC_EVENT_COMPARE_RADIO, + HAL_EVENT_TIMER_START_PPI); /* Enable same DPPI in Global domain */ NRF_DPPIC20->CHENSET = BIT(HAL_EVENT_TIMER_START_PPI); + nrf_dppi_channels_enable(NRF_DPPIC20, + BIT(HAL_EVENT_TIMER_START_PPI)); /* Setup PPIB send subscribe */ NRF_PPIB21->SUBSCRIBE_SEND[HAL_EVENT_TIMER_START_PPI] = BIT(HAL_EVENT_TIMER_START_PPI) | PPIB_SUBSCRIBE_SEND_EN_Msk; + nrf_ppib_subscribe_set(NRF_PPIB21, HAL_PPIB_SEND_EVENT_TIMER_START_PPI, + HAL_EVENT_TIMER_START_PPI); /* Setup PPIB receive publish */ NRF_PPIB11->PUBLISH_RECEIVE[HAL_EVENT_TIMER_START_PPI] = BIT(HAL_EVENT_TIMER_START_PPI) | PPIB_PUBLISH_RECEIVE_EN_Msk; + nrf_ppib_publish_set(NRF_PPIB11, HAL_PPIB_RECEIVE_EVENT_TIMER_START_PPI, + HAL_EVENT_TIMER_START_PPI); #else /* !CONFIG_BT_CTLR_NRF_GRTC */ nrf_rtc_publish_set(NRF_RTC, NRF_RTC_EVENT_COMPARE_2, HAL_EVENT_TIMER_START_PPI); diff --git a/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_nrf5_dppi_resources.h b/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_nrf5_dppi_resources.h index 38eca18e78a..8bb3fc1c9f0 100644 --- a/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_nrf5_dppi_resources.h +++ b/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_nrf5_dppi_resources.h @@ -37,6 +37,10 @@ * wire the RTC0 EVENTS_COMPARE[2] event to EVENT_TIMER TASKS_START task. */ #define HAL_EVENT_TIMER_START_PPI 7 +#define HAL_PPIB_SEND_EVENT_TIMER_START_PPI \ + _CONCAT(NRF_PPIB_TASK_SEND_, HAL_EVENT_TIMER_START_PPI) +#define HAL_PPIB_RECEIVE_EVENT_TIMER_START_PPI \ + _CONCAT(NRF_PPIB_EVENT_RECEIVE_, HAL_EVENT_TIMER_START_PPI) /******************************************************************************* * Capture event timer on Radio ready: