Skip to content

Commit 521ea55

Browse files
cvinayakfabiobaltieri
authored andcommitted
Bluetooth: Controller: Add assertion checks for delayed radio start
Add assertion checks for delayed radio start. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent f851cad commit 521ea55

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

subsys/bluetooth/controller/ll_sw/nordic/lll/lll_scan_aux.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ void lll_scan_aux_isr_aux_setup(void *param)
338338
aux_start_us -= EVENT_JITTER_US;
339339

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

342343
/* Setup header complete timeout */
343344
hcto = start_us;

subsys/bluetooth/controller/ll_sw/nordic/lll/lll_sync.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,7 @@ static void isr_aux_setup(void *param)
738738
aux_start_us -= EVENT_JITTER_US;
739739

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

742743
/* Setup header complete timeout */
743744
hcto = start_us;

subsys/bluetooth/controller/ll_sw/nordic/lll/lll_sync_iso.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,10 +1046,7 @@ static void isr_rx(void *param)
10461046

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

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

0 commit comments

Comments
 (0)