Instead of including from nrfx_glue.h a specific Zephyr Bluetooth controller header file that defines PPI and GPIOTE resources to be reserved for exclusive use by the controller, include a file with only a fixed name and expect the chosen Bluetooth controller to provide the location of this file in include paths. This way, when a different Bluetooth controller implementation is used downstream, a different file can be easily pointed to. Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
109 lines
2.6 KiB
CMake
109 lines
2.6 KiB
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
if(CONFIG_BT_LL_SW_SPLIT)
|
|
zephyr_library_sources(
|
|
ll_sw/nordic/lll/lll.c
|
|
ll_sw/nordic/lll/lll_clock.c
|
|
)
|
|
if(CONFIG_BT_BROADCASTER)
|
|
zephyr_library_sources(
|
|
ll_sw/nordic/lll/lll_adv.c
|
|
)
|
|
zephyr_library_sources_ifdef(
|
|
CONFIG_BT_CTLR_ADV_EXT
|
|
ll_sw/nordic/lll/lll_adv_aux.c
|
|
)
|
|
zephyr_library_sources_ifdef(
|
|
CONFIG_BT_CTLR_ADV_PERIODIC
|
|
ll_sw/nordic/lll/lll_adv_sync.c
|
|
)
|
|
zephyr_library_sources_ifdef(
|
|
CONFIG_BT_CTLR_ADV_ISO
|
|
ll_sw/nordic/lll/lll_adv_iso.c
|
|
)
|
|
endif()
|
|
if(CONFIG_BT_OBSERVER)
|
|
zephyr_library_sources(
|
|
ll_sw/nordic/lll/lll_scan.c
|
|
)
|
|
zephyr_library_sources_ifdef(
|
|
CONFIG_BT_CTLR_ADV_EXT
|
|
ll_sw/nordic/lll/lll_scan_aux.c
|
|
)
|
|
zephyr_library_sources_ifdef(
|
|
CONFIG_BT_CTLR_SYNC_PERIODIC
|
|
ll_sw/nordic/lll/lll_sync.c
|
|
)
|
|
zephyr_library_sources_ifdef(
|
|
CONFIG_BT_CTLR_SYNC_ISO
|
|
ll_sw/nordic/lll/lll_sync_iso.c
|
|
)
|
|
endif()
|
|
if(CONFIG_BT_CONN)
|
|
zephyr_library_sources(
|
|
ll_sw/nordic/lll/lll_conn.c
|
|
)
|
|
zephyr_library_sources_ifdef(
|
|
CONFIG_BT_PERIPHERAL
|
|
ll_sw/nordic/lll/lll_peripheral.c
|
|
)
|
|
zephyr_library_sources_ifdef(
|
|
CONFIG_BT_CENTRAL
|
|
ll_sw/nordic/lll/lll_central.c
|
|
)
|
|
endif()
|
|
zephyr_library_sources_ifdef(
|
|
CONFIG_BT_CTLR_DTM
|
|
ll_sw/nordic/lll/lll_test.c
|
|
)
|
|
zephyr_library_sources_ifdef(
|
|
CONFIG_BT_CTLR_PROFILE_ISR
|
|
ll_sw/nordic/lll/lll_prof.c
|
|
)
|
|
zephyr_library_sources_ifdef(
|
|
CONFIG_BT_CTLR_DF
|
|
ll_sw/nordic/lll/lll_df.c
|
|
)
|
|
if(CONFIG_BT_CTLR_DF AND NOT CONFIG_SOC_SERIES_BSIM_NRFXX)
|
|
zephyr_library_sources(ll_sw/nordic/hal/nrf5/radio/radio_df.c)
|
|
endif()
|
|
if(CONFIG_BT_CTLR_CONN_ISO)
|
|
zephyr_library_sources(
|
|
ll_sw/nordic/lll/lll_conn_iso.c
|
|
)
|
|
endif()
|
|
zephyr_library_sources_ifdef(
|
|
CONFIG_BT_CTLR_PERIPHERAL_ISO
|
|
ll_sw/nordic/lll/lll_peripheral_iso.c
|
|
)
|
|
if(CONFIG_BT_CTLR_ISO)
|
|
zephyr_library_sources(
|
|
ll_sw/nordic/ull/ull_iso_vendor.c
|
|
)
|
|
endif()
|
|
endif()
|
|
|
|
zephyr_library_sources(
|
|
ll_sw/nordic/hal/nrf5/cntr.c
|
|
ll_sw/nordic/hal/nrf5/ecb.c
|
|
ll_sw/nordic/hal/nrf5/radio/radio.c
|
|
ll_sw/nordic/hal/nrf5/mayfly.c
|
|
ll_sw/nordic/hal/nrf5/ticker.c
|
|
)
|
|
|
|
zephyr_library_sources_ifdef(
|
|
CONFIG_SOC_FAMILY_NRF
|
|
hci/nordic/hci_vendor.c
|
|
)
|
|
|
|
zephyr_library_include_directories(
|
|
ll_sw/nordic
|
|
hci/nordic
|
|
)
|
|
|
|
# This path needs to be added globally as it is supposed to be used
|
|
# in nrfx_glue.h when other libraries are built.
|
|
zephyr_include_directories(
|
|
ll_sw/nordic/hal/nrf5/nrfx_glue
|
|
)
|