Merge pull request #12327 from benpicco/mrf24j40-pseudomodules

drivers/mrf24j40: add pseudomodules for MRF24J40MA/B/C/D/E
This commit is contained in:
Marian Buschsieweke 2019-09-29 21:13:23 +02:00 committed by GitHub
commit 6cbb7ad1a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -331,6 +331,15 @@ ifneq (,$(filter mq3,$(USEMODULE)))
FEATURES_REQUIRED += periph_adc FEATURES_REQUIRED += periph_adc
endif endif
ifneq (,$(filter mrf24j40m%,$(USEMODULE)))
USEMODULE += mrf24j40
# all modules but mrf24j40ma have an external PA
ifeq (,$(filter mrf24j40ma,$(USEMODULE)))
CFLAGS += -DMRF24J40_USE_EXT_PA_LNA
endif
endif
ifneq (,$(filter mrf24j40,$(USEMODULE))) ifneq (,$(filter mrf24j40,$(USEMODULE)))
USEMODULE += xtimer USEMODULE += xtimer
USEMODULE += luid USEMODULE += luid

View File

@ -107,6 +107,9 @@ PSEUDOMODULES += cc1100
PSEUDOMODULES += cc1100e PSEUDOMODULES += cc1100e
PSEUDOMODULES += cc1101 PSEUDOMODULES += cc1101
# include variants of mrf24j40 drivers as pseudo modules
PSEUDOMODULES += mrf24j40m%
# include variants of SX127X drivers as pseudo modules # include variants of SX127X drivers as pseudo modules
PSEUDOMODULES += sx1272 PSEUDOMODULES += sx1272
PSEUDOMODULES += sx1276 PSEUDOMODULES += sx1276