# RIOT specific dependencies USEMODULE += posix_semaphore USEMODULE += event_callback USEMODULE += xtimer # Requires nimble feature FEATURES_REQUIRED += ble_nimble # glue code USEMODULE += nimble_riot_contrib # RIOT port USEMODULE += nimble_porting_nimble USEMODULE += nimble_npl_riot # if nothing else is specified, we build the host and controller ifeq (,$(filter nimble_host nimble_controller,$(USEMODULE))) USEMODULE += nimble_host USEMODULE += nimble_controller endif # include host dependencies ifneq (,$(filter nimble_host,$(USEMODULE))) USEMODULE += nimble_host_util USEMODULE += nimble_tinycrypt USEMODULE += nimble_host_store_ram endif # nimble controller dependencies ifneq (,$(filter nimble_controller,$(USEMODULE))) USEMODULE += nimble_transport_ram ifneq (,$(filter nrf5%,$(CPU_FAM))) USEMODULE += nimble_drivers_nrf5x endif endif # RIOT specific submodule dependencies ifneq (,$(filter nimble_addr,$(USEMODULE))) USEMODULE += bluetil_addr endif ifneq (,$(filter nimble_scanlist,$(USEMODULE))) USEMODULE += nimble_addr USEMODULE += bluetil_ad endif ifneq (,$(filter nimble_netif,$(USEMODULE))) USEMODULE += l2util USEMODULE += bluetil_addr ifneq (,$(filter gnrc_ipv6_%,$(USEMODULE))) USEMODULE += nimble_svc_ipss endif ifneq (,$(filter gnrc_ipv6_router_default,$(USEMODULE))) USEMODULE += gnrc_ipv6_nib_6lr USEMODULE += gnrc_sixlowpan USEMODULE += gnrc_sixlowpan_iphc endif ifneq (,$(filter gnrc_ipv6_default,$(USEMODULE))) USEMODULE += gnrc_ipv6_nib_6ln USEMODULE += gnrc_sixlowpan USEMODULE += gnrc_sixlowpan_iphc endif endif