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:
parent
4304640347
commit
750250f129
1 changed files with 3 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue