Commit 521ea556 authored by Vinayak Kariappa Chettimada's avatar Vinayak Kariappa Chettimada Committed by Fabio Baltieri
Browse files

Bluetooth: Controller: Add assertion checks for delayed radio start



Add assertion checks for delayed radio start.

Signed-off-by: default avatarVinayak Kariappa Chettimada <vich@nordicsemi.no>
parent f851cad1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -338,6 +338,7 @@ void lll_scan_aux_isr_aux_setup(void *param)
	aux_start_us -= EVENT_JITTER_US;

	start_us = radio_tmr_start_us(0, aux_start_us);
	LL_ASSERT(start_us == (aux_start_us + 1U));

	/* Setup header complete timeout */
	hcto = start_us;
+1 −0
Original line number Diff line number Diff line
@@ -738,6 +738,7 @@ static void isr_aux_setup(void *param)
	aux_start_us -= EVENT_JITTER_US;

	start_us = radio_tmr_start_us(0, aux_start_us);
	LL_ASSERT(start_us == (aux_start_us + 1U));

	/* Setup header complete timeout */
	hcto = start_us;
+1 −4
Original line number Diff line number Diff line
@@ -1046,10 +1046,7 @@ isr_rx_next_subevent:

		start_us = hcto;
		hcto = radio_tmr_start_us(0U, start_us);
		/* FIXME: Assertion check disabled until investigation as to
		 *        why there is high ISR latency causing assertion here.
		 */
		/* LL_ASSERT(hcto == (start_us + 1U)); */
		LL_ASSERT(hcto == (start_us + 1U));

		/* Add 8 us * subevents so far, as radio was setup to listen
		 * 4 us early and subevents could have a 4 us drift each until