1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 14:33:52 +01:00

drivers/at86rf215: fix dependency resolution for single radio

Let the user chose `at86rf215_subghz`/`at86rf215_24ghz` if they
only want a single radio.
This commit is contained in:
Benjamin Valentin 2020-10-21 19:38:24 +02:00
parent fed1c4dbbe
commit 9fb90b11f5

View File

@ -1,5 +1,13 @@
DEFAULT_MODULE += auto_init_at86rf215
DEFAULT_MODULE += at86rf215_subghz
ifeq (,$(filter at86rf215m,$(USEMODULE)))
USEMODULE += at86rf215_subghz
endif
ifeq (,$(filter at86rf215_subghz at86rf215_24ghz,$(USEMODULE)))
DEFAULT_MODULE += at86rf215_subghz
DEFAULT_MODULE += at86rf215_24ghz
endif
DEFAULT_MODULE += netdev_ieee802154_multimode
@ -11,10 +19,6 @@ FEATURES_REQUIRED += periph_gpio
FEATURES_REQUIRED += periph_gpio_irq
FEATURES_REQUIRED += periph_spi
ifeq (,$(filter at86rf215m,$(USEMODULE)))
DEFAULT_MODULE += at86rf215_24ghz
endif
USEMODULE += xtimer
USEMODULE += netif
USEMODULE += ieee802154