Bluetooth: Controller: Add assertion checks for delayed radio start

Add assertion checks for delayed radio start.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2024-07-19 03:09:04 +02:00 committed by Fabio Baltieri
commit 521ea5561a
3 changed files with 3 additions and 4 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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