Skip to content

Commit e642aa3

Browse files
cvinayaknashif
authored andcommitted
Bluetooth: Controller: nRF54Lx: Use nrfx interface for bsim use (4/4)
Use nrfx interface for register access with sideeffects to facilitate bsim use. Remove CMSIS interface use, was replaced with nrf_grtc, nrf_dppic and nrf_ppib interface in previous commit. 4 part commits: 1. Add nrf_grtc interface. 2. Remove CMSIS interface use. 3. Add nrf_grtc interface, once missing bsim port available. 4. Remove CMSIS interface use, replaced by bsim port. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent da6bd08 commit e642aa3

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_nrf5_dppi.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -102,30 +102,18 @@ static inline void hal_event_timer_start_ppi_config(void)
102102
{
103103
#if defined(CONFIG_BT_CTLR_NRF_GRTC)
104104
/* Publish GRTC compare */
105-
NRF_GRTC->PUBLISH_COMPARE[HAL_CNTR_GRTC_CC_IDX_RADIO] =
106-
((HAL_EVENT_TIMER_START_PPI <<
107-
GRTC_PUBLISH_COMPARE_CHIDX_Pos) &
108-
GRTC_PUBLISH_COMPARE_CHIDX_Msk) |
109-
((GRTC_PUBLISH_COMPARE_EN_Enabled <<
110-
GRTC_PUBLISH_COMPARE_EN_Pos) &
111-
GRTC_PUBLISH_COMPARE_EN_Msk);
112105
nrf_grtc_publish_set(NRF_GRTC, HAL_CNTR_GRTC_EVENT_COMPARE_RADIO,
113106
HAL_EVENT_TIMER_START_PPI);
114107

115108
/* Enable same DPPI in Global domain */
116-
NRF_DPPIC20->CHENSET = BIT(HAL_EVENT_TIMER_START_PPI);
117109
nrf_dppi_channels_enable(NRF_DPPIC20,
118110
BIT(HAL_EVENT_TIMER_START_PPI));
119111

120112
/* Setup PPIB send subscribe */
121-
NRF_PPIB21->SUBSCRIBE_SEND[HAL_EVENT_TIMER_START_PPI] =
122-
BIT(HAL_EVENT_TIMER_START_PPI) | PPIB_SUBSCRIBE_SEND_EN_Msk;
123113
nrf_ppib_subscribe_set(NRF_PPIB21, HAL_PPIB_SEND_EVENT_TIMER_START_PPI,
124114
HAL_EVENT_TIMER_START_PPI);
125115

126116
/* Setup PPIB receive publish */
127-
NRF_PPIB11->PUBLISH_RECEIVE[HAL_EVENT_TIMER_START_PPI] =
128-
BIT(HAL_EVENT_TIMER_START_PPI) | PPIB_PUBLISH_RECEIVE_EN_Msk;
129117
nrf_ppib_publish_set(NRF_PPIB11, HAL_PPIB_RECEIVE_EVENT_TIMER_START_PPI,
130118
HAL_EVENT_TIMER_START_PPI);
131119

0 commit comments

Comments
 (0)