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 <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2024-12-28 07:38:26 +01:00 committed by Benjamin Cabé
parent 4304640347
commit 750250f129

View file

@ -221,6 +221,9 @@
FLASH_TICKER_NODES + \ FLASH_TICKER_NODES + \
COEX_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 /* When both central and peripheral are supported, one each Rx node will be
* needed by connectable advertising and the initiator to generate connection * needed by connectable advertising and the initiator to generate connection
* complete event, hence conditionally set the count. * complete event, hence conditionally set the count.