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:
parent
f851cad162
commit
521ea5561a
3 changed files with 3 additions and 4 deletions
|
@ -338,6 +338,7 @@ void lll_scan_aux_isr_aux_setup(void *param)
|
||||||
aux_start_us -= EVENT_JITTER_US;
|
aux_start_us -= EVENT_JITTER_US;
|
||||||
|
|
||||||
start_us = radio_tmr_start_us(0, aux_start_us);
|
start_us = radio_tmr_start_us(0, aux_start_us);
|
||||||
|
LL_ASSERT(start_us == (aux_start_us + 1U));
|
||||||
|
|
||||||
/* Setup header complete timeout */
|
/* Setup header complete timeout */
|
||||||
hcto = start_us;
|
hcto = start_us;
|
||||||
|
|
|
@ -738,6 +738,7 @@ static void isr_aux_setup(void *param)
|
||||||
aux_start_us -= EVENT_JITTER_US;
|
aux_start_us -= EVENT_JITTER_US;
|
||||||
|
|
||||||
start_us = radio_tmr_start_us(0, aux_start_us);
|
start_us = radio_tmr_start_us(0, aux_start_us);
|
||||||
|
LL_ASSERT(start_us == (aux_start_us + 1U));
|
||||||
|
|
||||||
/* Setup header complete timeout */
|
/* Setup header complete timeout */
|
||||||
hcto = start_us;
|
hcto = start_us;
|
||||||
|
|
|
@ -1046,10 +1046,7 @@ isr_rx_next_subevent:
|
||||||
|
|
||||||
start_us = hcto;
|
start_us = hcto;
|
||||||
hcto = radio_tmr_start_us(0U, start_us);
|
hcto = radio_tmr_start_us(0U, start_us);
|
||||||
/* FIXME: Assertion check disabled until investigation as to
|
LL_ASSERT(hcto == (start_us + 1U));
|
||||||
* why there is high ISR latency causing assertion here.
|
|
||||||
*/
|
|
||||||
/* LL_ASSERT(hcto == (start_us + 1U)); */
|
|
||||||
|
|
||||||
/* Add 8 us * subevents so far, as radio was setup to listen
|
/* 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
|
* 4 us early and subevents could have a 4 us drift each until
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue