Skip to content

Commit

Permalink
Bluetooth: Controller: BUILD_ASSERT ticker nodes exceed UINT8_MAX
Browse files Browse the repository at this point in the history
Added BUILD_ASSERT to ensure ticker node count does not
exceed UINT8_MAX.

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
  • Loading branch information
cvinayak authored and kartben committed Jan 18, 2025
1 parent 4304640 commit 750250f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions subsys/bluetooth/controller/ll_sw/ull.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@
FLASH_TICKER_NODES + \
COEX_TICKER_NODES)

/* Ticker implementation supports up to 255 ticker node count value */
BUILD_ASSERT(TICKER_NODES <= UINT8_MAX);

/* When both central and peripheral are supported, one each Rx node will be
* needed by connectable advertising and the initiator to generate connection
* complete event, hence conditionally set the count.
Expand Down

0 comments on commit 750250f

Please sign in to comment.