1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/mrf24j40: move CFLAG to Makefile.include

This commit is contained in:
Leandro Lanzieri 2022-03-09 11:01:00 +01:00
parent e59a6786a6
commit 7ca22f7791
No known key found for this signature in database
GPG Key ID: F4E9A721761C7593
2 changed files with 9 additions and 7 deletions

View File

@ -7,11 +7,4 @@ FEATURES_REQUIRED += periph_spi
ifneq (,$(filter mrf24j40m%,$(USEMODULE)))
DEFAULT_MODULE += netdev_ieee802154_oqpsk
ifndef CONFIG_KCONFIG_MODULE_MRF24J40
# all modules but mrf24j40ma have an external PA
ifeq (,$(filter mrf24j40ma,$(USEMODULE)))
CFLAGS += -DCONFIG_MRF24J40_USE_EXT_PA_LNA
endif
endif
endif

View File

@ -1,5 +1,14 @@
# include variants of mrf24j40 drivers as pseudo modules
PSEUDOMODULES += mrf24j40m%
ifneq (,$(filter mrf24j40m%,$(USEMODULE)))
ifndef CONFIG_KCONFIG_MODULE_MRF24J40
# all modules but mrf24j40ma have an external PA
ifeq (,$(filter mrf24j40ma,$(USEMODULE)))
CFLAGS += -DCONFIG_MRF24J40_USE_EXT_PA_LNA
endif
endif
endif
USEMODULE_INCLUDES_mrf24j40 := $(LAST_MAKEFILEDIR)/include
USEMODULE_INCLUDES += $(USEMODULE_INCLUDES_mrf24j40)