Bluetooth: Controller: Add verbose assertion on delayed prepare

When an event's prepare is delayed due to ULL scheduling or
ISR latencies, check and have a verbose assertion that logs
the actual EVENT_OVERHEAD_START_US required.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2022-09-25 10:50:53 +05:30 committed by Carles Cufí
parent 7715fb40e2
commit ebf7236267

View file

@ -472,10 +472,13 @@ uint32_t lll_preempt_calc(struct ull_hdr *ull, uint8_t ticker_id,
* duration.
* 3. Increase the preempt to start ticks for future events.
*/
return 1;
LL_ASSERT_MSG(false, "%s: Actual EVENT_OVERHEAD_START_US = %u",
__func__, HAL_TICKER_TICKS_TO_US(diff));
return 1U;
}
return 0;
return 0U;
}
void lll_chan_set(uint32_t chan)