Skip to content

Commit 750250f

Browse files
cvinayakkartben
authored andcommitted
Bluetooth: Controller: BUILD_ASSERT ticker nodes exceed UINT8_MAX
Added BUILD_ASSERT to ensure ticker node count does not exceed UINT8_MAX. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 4304640 commit 750250f

File tree

1 file changed

+3
-0
lines changed
  • subsys/bluetooth/controller/ll_sw

1 file changed

+3
-0
lines changed

subsys/bluetooth/controller/ll_sw/ull.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,9 @@
221221
FLASH_TICKER_NODES + \
222222
COEX_TICKER_NODES)
223223

224+
/* Ticker implementation supports up to 255 ticker node count value */
225+
BUILD_ASSERT(TICKER_NODES <= UINT8_MAX);
226+
224227
/* When both central and peripheral are supported, one each Rx node will be
225228
* needed by connectable advertising and the initiator to generate connection
226229
* complete event, hence conditionally set the count.

0 commit comments

Comments
 (0)