Skip to content

Commit

Permalink
Bluetooth: Controller: Add verbose assertion on delayed prepare
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
cvinayak authored and carlescufi committed Oct 10, 2022
1 parent 7715fb4 commit ebf7236
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions subsys/bluetooth/controller/ll_sw/nordic/lll/lll.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ebf7236

Please sign in to comment.