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:
parent
e59a6786a6
commit
7ca22f7791
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user