Skip to content

Commit 7520742

Browse files
cvinayakkartben
authored andcommitted
Bluetooth: Controller: Fix single timer clear event define name
Rename the single timer clear event define name based on direction finding support. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 23d321d commit 7520742

File tree

2 files changed

+19
-14
lines changed

2 files changed

+19
-14
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -231,15 +231,15 @@ static inline void hal_trigger_crypt_by_bcmatch_ppi_config(void)
231231

232232
/******************************************************************************/
233233
#if !defined(CONFIG_BT_CTLR_TIFS_HW)
234-
235234
/* DPPI setup used for SW-based auto-switching during TIFS. */
235+
236236
#if defined(CONFIG_BT_CTLR_SW_SWITCH_SINGLE_TIMER)
237-
#define HAL_NRF_RADIO_TIFS_DPPI_EVENT_END HAL_NRF_RADIO_EVENT_END
238-
#define HAL_RADIO_TIFS_DPPI_PUBLISH_END HAL_RADIO_PUBLISH_END
239-
#else /* !CONFIG_BT_CTLR_SW_SWITCH_SINGLE_TIMER */
240-
#define HAL_NRF_RADIO_TIFS_DPPI_EVENT_END HAL_NRF_RADIO_EVENT_PHYEND
241-
#define HAL_RADIO_TIFS_DPPI_PUBLISH_END HAL_RADIO_PUBLISH_PHYEND
242-
#endif /* !CONFIG_BT_CTLR_SW_SWITCH_SINGLE_TIMER */
237+
#define HAL_NRF_RADIO_TIMER_CLEAR_EVENT_END HAL_NRF_RADIO_EVENT_END
238+
#define HAL_RADIO_GROUP_TASK_ENABLE_PUBLISH_END HAL_RADIO_PUBLISH_END
239+
#else /* !CONFIG_BT_CTLR_SW_SWITCH_SINGLE_TIMER || CONFIG_BT_CTLR_DF */
240+
#define HAL_NRF_RADIO_TIMER_CLEAR_EVENT_END HAL_NRF_RADIO_EVENT_PHYEND
241+
#define HAL_RADIO_GROUP_TASK_ENABLE_PUBLISH_END HAL_RADIO_PUBLISH_PHYEND
242+
#endif /* !CONFIG_BT_CTLR_SW_SWITCH_SINGLE_TIMER || CONFIG_BT_CTLR_DF */
243243

244244
/* Clear SW-switch timer on packet end:
245245
* wire the RADIO EVENTS_END event to SW_SWITCH_TIMER TASKS_CLEAR task.
@@ -251,7 +251,7 @@ static inline void hal_trigger_crypt_by_bcmatch_ppi_config(void)
251251
*/
252252
static inline void hal_sw_switch_timer_clear_ppi_config(void)
253253
{
254-
nrf_radio_publish_set(NRF_RADIO, HAL_NRF_RADIO_TIFS_DPPI_EVENT_END,
254+
nrf_radio_publish_set(NRF_RADIO, HAL_NRF_RADIO_TIMER_CLEAR_EVENT_END,
255255
HAL_SW_SWITCH_TIMER_CLEAR_PPI);
256256
nrf_timer_subscribe_set(SW_SWITCH_TIMER,
257257
NRF_TIMER_TASK_CLEAR, HAL_SW_SWITCH_TIMER_CLEAR_PPI);
@@ -322,7 +322,7 @@ static inline void hal_sw_switch_timer_clear_ppi_config(void)
322322
* a PPI to publish RADIO END event.
323323
*/
324324
#define HAL_SW_SWITCH_GROUP_TASK_ENABLE_PPI_REGISTER_EVT \
325-
(NRF_RADIO->HAL_RADIO_TIFS_DPPI_PUBLISH_END)
325+
(NRF_RADIO->HAL_RADIO_GROUP_TASK_ENABLE_PUBLISH_END)
326326
#define HAL_SW_SWITCH_GROUP_TASK_ENABLE_PPI_EVT \
327327
(((HAL_SW_SWITCH_GROUP_TASK_ENABLE_PPI << \
328328
RADIO_PUBLISH_END_CHIDX_Pos) \

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

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
* or reception of a PDU on air. In case of regular PDU it is generated when last bit of CRC is
1919
* received or transmitted.
2020
*/
21-
#define HAL_RADIO_TRX_EVENTS_END HAL_RADIO_EVENTS_END
21+
#define HAL_RADIO_TRX_EVENTS_END HAL_RADIO_EVENTS_END
22+
#define HAL_NRF_RADIO_TRX_EVENT_END HAL_NRF_RADIO_EVENT_END
2223

2324
/* Wrapper for RADIO_SHORTS mask connecting EVENTS_END to EVENTS_DISABLE.
2425
* This is a default shortcut used to automatically disable Radio after end of PDU.
@@ -75,7 +76,8 @@
7576
* or reception of a PDU on air. In case of regular PDU it is generated when last bit of CRC is
7677
* received or transmitted.
7778
*/
78-
#define HAL_RADIO_TRX_EVENTS_END HAL_RADIO_EVENTS_END
79+
#define HAL_RADIO_TRX_EVENTS_END HAL_RADIO_EVENTS_END
80+
#define HAL_NRF_RADIO_TRX_EVENT_END HAL_NRF_RADIO_EVENT_END
7981

8082
/* Wrapper for RADIO_SHORTS mask connecting EVENTS_END to EVENTS_DISABLE.
8183
* This is a default shortcut used to automatically disable Radio after end of PDU.
@@ -109,7 +111,8 @@
109111
* or reception of a PDU on air. In case of regular PDU it is generated when last bit of CRC is
110112
* received or transmitted.
111113
*/
112-
#define HAL_RADIO_TRX_EVENTS_END HAL_RADIO_EVENTS_END
114+
#define HAL_RADIO_TRX_EVENTS_END HAL_RADIO_EVENTS_END
115+
#define HAL_NRF_RADIO_TRX_EVENT_END HAL_NRF_RADIO_EVENT_END
113116

114117
/* Wrapper for RADIO_SHORTS mask connecting EVENTS_END to EVENTS_DISABLE.
115118
* This is a default shortcut used to automatically disable Radio after end of PDU.
@@ -173,7 +176,8 @@
173176
* including CTE EVENTS_PHYEND event is generated at very end of a PDU. In case there is no CTE in
174177
* a PDU the EVENTS_PHYEND event is generated in the same instant as EVENTS_END event.
175178
*/
176-
#define HAL_RADIO_TRX_EVENTS_END HAL_RADIO_EVENTS_PHYEND
179+
#define HAL_RADIO_TRX_EVENTS_END HAL_RADIO_EVENTS_PHYEND
180+
#define HAL_NRF_RADIO_TRX_EVENT_END HAL_NRF_RADIO_EVENT_PHYEND
177181

178182
/* Wrapper for RADIO_SHORTS mask connecting EVENTS_PHYEND to EVENTS_DISABLE.
179183
* This is a mask for SOC that has Direction Finding Extension in a Radio peripheral.
@@ -196,7 +200,8 @@
196200
* or reception of a PDU on air. In case of regular PDU it is generated when last bit of CRC is
197201
* received or transmitted.
198202
*/
199-
#define HAL_RADIO_TRX_EVENTS_END HAL_RADIO_EVENTS_END
203+
#define HAL_RADIO_TRX_EVENTS_END HAL_RADIO_EVENTS_END
204+
#define HAL_NRF_RADIO_TRX_EVENT_END HAL_NRF_RADIO_EVENT_END
200205

201206
/* Wrapper for RADIO_SHORTS mask connecting EVENTS_END to EVENTS_DISABLE.
202207
* This is a default shortcut used to automatically disable Radio after end of PDU.

0 commit comments

Comments
 (0)