Bluetooth: Controller: Conditional compile optional ticker interfaces

Conditional compile ticker interfaces like ticker_update
which are not required when individual state or role samples
are build.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2022-10-05 16:40:12 +05:30 committed by Carles Cufí
commit 367004fd57
2 changed files with 73 additions and 1 deletions

View file

@ -43,6 +43,11 @@ config BT_LLL_VENDOR_NORDIC
select BT_CTLR_TIFS_HW_SUPPORT
select BT_CTLR_ULL_LLL_PRIO_SUPPORT
select BT_TICKER_UPDATE if BT_BROADCASTER || BT_CONN || \
(BT_OBSERVER && BT_CTLR_ADV_EXT)
select BT_TICKER_NEXT_SLOT_GET if (BT_BROADCASTER && \
BT_CTLR_ADV_EXT) || \
BT_CTLR_ADV_PERIODIC
select BT_TICKER_REMAINDER_GET if BT_BROADCASTER && BT_CTLR_ADV_EXT
select BT_TICKER_LAZY_GET if BT_CTLR_ADV_PERIODIC
@ -58,6 +63,9 @@ config BT_LLL_VENDOR_OPENISA
select BT_HAS_HCI_VS
select BT_CTLR_LE_ENC_SUPPORT if !BT_CTLR_DATA_LENGTH_CLEAR
select BT_CTLR_PRIVACY_SUPPORT
select BT_TICKER_UPDATE if BT_BROADCASTER || BT_CONN
default y
help
Use OpenISA Lower Link Layer implementation.
@ -768,8 +776,30 @@ config BT_TICKER_LOW_LAT
radio RX/TX. Enabling this option disables the ticker priority- and
'must expire' features.
config BT_TICKER_UPDATE
bool "Ticker Update"
help
This option enables Ticker Update interface.
config BT_TICKER_JOB_IDLE_GET
bool "Ticker Job Idle Get"
default y if BT_TICKER_LOW_LAT
help
This option enables the ticker interface to query the idle state of
the Ticker Job execution context. This interface is used to disable
Ticker Job execution once in idle state, no operations pending for the
Ticker Job to process.
config BT_TICKER_NEXT_SLOT_GET
bool "Ticker Next Slot Get"
default y if BT_CENTRAL
help
This option enables ticker interface to iterate through active
ticker nodes, returning tick to expire.
config BT_TICKER_REMAINDER_GET
bool "Ticker Next Slot Get with Remainder"
depends on BT_TICKER_NEXT_SLOT_GET
help
This option enables ticker interface to iterate through active
ticker nodes, returning tick to expire and remainder from a reference
@ -777,6 +807,7 @@ config BT_TICKER_REMAINDER_GET
config BT_TICKER_LAZY_GET
bool "Ticker Next Slot Get with Lazy"
depends on BT_TICKER_NEXT_SLOT_GET
help
This option enables ticker interface to iterate through active
ticker nodes, returning tick to expire and lazy count from a reference
@ -784,6 +815,7 @@ config BT_TICKER_LAZY_GET
config BT_TICKER_NEXT_SLOT_GET_MATCH
bool "Ticker Next Slot Get with match callback"
depends on BT_TICKER_NEXT_SLOT_GET
default y if BT_TICKER_SLOT_AGNOSTIC
help
This option enables ticker interface to iterate through active