drivers/mrf24j40: add pseudomodules for MRF24J40MA/C/D/E
Microchip offers ready-to-use modules with the mrf24j40 chip. All but the MRF24J40MA integrate an external PA/LNA, they also come with an RF shield. If the PA/LNA is not enabled, the signal off these modules is really poor. This adds pseudomodules so that the PA/LNA is automatically enabled when the appropriate module is used.
This commit is contained in:
parent
8de39d80b7
commit
0bb04cfd27
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user