@@ -170,7 +170,7 @@ static inline void hal_radio_end_time_capture_ppi_config(void)
170
170
/* No need to configure anything for the pre-programmed channel. */
171
171
}
172
172
173
- #else
173
+ #else /* !(EVENT_TIMER_ID == 0) */
174
174
175
175
static inline void hal_radio_end_time_capture_ppi_config (void )
176
176
{
@@ -181,7 +181,7 @@ static inline void hal_radio_end_time_capture_ppi_config(void)
181
181
(uint32_t )& (EVENT_TIMER -> TASKS_CAPTURE [HAL_EVENT_TIMER_TRX_END_CC_OFFSET ]));
182
182
}
183
183
184
- #endif /* (EVENT_TIMER_ID == 0) */
184
+ #endif /* ! (EVENT_TIMER_ID == 0) */
185
185
186
186
/*******************************************************************************
187
187
* Start event timer on RTC tick:
@@ -307,7 +307,7 @@ static inline void hal_sw_switch_timer_clear_ppi_config(void)
307
307
(uint32_t )& (SW_SWITCH_TIMER -> TASKS_CLEAR ));
308
308
}
309
309
310
- #else /* ! CONFIG_BT_CTLR_SW_SWITCH_SINGLE_TIMER */
310
+ #else /* CONFIG_BT_CTLR_SW_SWITCH_SINGLE_TIMER */
311
311
312
312
/* Clear event timer (sw-switch timer) on Radio end:
313
313
* wire the RADIO EVENTS_END event to the
@@ -325,7 +325,7 @@ static inline void hal_sw_switch_timer_clear_ppi_config(void)
325
325
(uint32_t )& (SW_SWITCH_TIMER -> TASKS_CLEAR ));
326
326
}
327
327
328
- #endif /* ! CONFIG_BT_CTLR_SW_SWITCH_SINGLE_TIMER */
328
+ #endif /* CONFIG_BT_CTLR_SW_SWITCH_SINGLE_TIMER */
329
329
330
330
/* The 2 adjacent PPI groups used for implementing SW_SWITCH_TIMER-based
331
331
* auto-switch for TIFS. 'index' must be 0 or 1.
@@ -453,11 +453,15 @@ static inline void hal_radio_sw_switch_disable(void)
453
453
{
454
454
/* Disable the following PPI channels that implement SW Switch:
455
455
* - Clearing SW SWITCH TIMER on RADIO END event
456
+ * - Do not clear for single timer use as it uses the same PPI as
457
+ * end time capture
456
458
* - Enabling SW SWITCH PPI Group on RADIO END event
457
459
*/
458
460
nrf_ppi_channels_disable (
459
461
NRF_PPI ,
462
+ #if !defined (CONFIG_BT_CTLR_SW_SWITCH_SINGLE_TIMER )
460
463
BIT (HAL_SW_SWITCH_TIMER_CLEAR_PPI ) |
464
+ #endif /* !CONFIG_BT_CTLR_SW_SWITCH_SINGLE_TIMER */
461
465
BIT (HAL_SW_SWITCH_GROUP_TASK_ENABLE_PPI ));
462
466
463
467
/* Invalidation of subscription of S2 timer Compare used when
0 commit comments