mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/mrf24j40: model Kconfig
This commit is contained in:
parent
16ffe80525
commit
a2681a0f88
@ -4,6 +4,112 @@
|
|||||||
# General Public License v2.1. See the file LICENSE in the top level
|
# General Public License v2.1. See the file LICENSE in the top level
|
||||||
# directory for more details.
|
# directory for more details.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
menuconfig MODULE_MRF24J40
|
||||||
|
bool
|
||||||
|
prompt "MRF24J40 radio" if !(MODULE_NETDEV_DEFAULT && HAVE_MRF24J40)
|
||||||
|
default (MODULE_NETDEV_DEFAULT && HAVE_MRF24J40)
|
||||||
|
depends on TEST_KCONFIG
|
||||||
|
depends on HAS_PERIPH_GPIO
|
||||||
|
depends on HAS_PERIPH_GPIO_IRQ
|
||||||
|
depends on HAS_PERIPH_SPI
|
||||||
|
select MODULE_PERIPH_GPIO
|
||||||
|
select MODULE_PERIPH_GPIO_IRQ
|
||||||
|
select MODULE_PERIPH_SPI
|
||||||
|
select MODULE_XTIMER
|
||||||
|
select MODULE_IEEE802154
|
||||||
|
select MODULE_NETDEV
|
||||||
|
select MODULE_NETDEV_IEEE802154
|
||||||
|
|
||||||
|
if MODULE_MRF24J40
|
||||||
|
|
||||||
|
choice MRF24J40_VARIANT
|
||||||
|
bool "Variant"
|
||||||
|
default MODULE_MRF24J40MA if HAVE_MRF24J40MA
|
||||||
|
default MODULE_MRF24J40MB if HAVE_MRF24J40MB
|
||||||
|
default MODULE_MRF24J40MC if HAVE_MRF24J40MC
|
||||||
|
default MODULE_MRF24J40MD if HAVE_MRF24J40MD
|
||||||
|
default MODULE_MRF24J40ME if HAVE_MRF24J40ME
|
||||||
|
|
||||||
|
# the generic module matches this variant
|
||||||
|
config MRF24J40
|
||||||
|
bool "MRF24J40"
|
||||||
|
|
||||||
|
config MODULE_MRF24J40MA
|
||||||
|
bool "MRF24J40MA"
|
||||||
|
|
||||||
|
config MODULE_MRF24J40MB
|
||||||
|
bool "MRF24J40MB"
|
||||||
|
|
||||||
|
config MODULE_MRF24J40MC
|
||||||
|
bool "MRF24J40MC"
|
||||||
|
|
||||||
|
config MODULE_MRF24J40MD
|
||||||
|
bool "MRF24J40MD"
|
||||||
|
|
||||||
|
config MODULE_MRF24J40ME
|
||||||
|
bool "MRF24J40ME"
|
||||||
|
|
||||||
|
endchoice
|
||||||
|
|
||||||
|
config MRF24J40_OQPSK
|
||||||
|
bool "OQPSK support"
|
||||||
|
default y if !MRF24J40
|
||||||
|
select MODULE_NETDEV_IEEE802154_OQPSK
|
||||||
|
|
||||||
|
config MRF24J40_USE_EXT_PA_LNA
|
||||||
|
bool "Enable external PA/LNA control"
|
||||||
|
default y
|
||||||
|
depends on !MODULE_MRF24J40MA
|
||||||
|
help
|
||||||
|
Increase RSSI for MRF24J40MC/MD/ME devices. No effect on MRF24J40MA.
|
||||||
|
For more information, please refer to section 4.2 of MRF24J40 datasheet.
|
||||||
|
|
||||||
|
config MRF24J40_TEST_SPI_CONNECTION
|
||||||
|
bool "Enable basic self-test on init"
|
||||||
|
help
|
||||||
|
Perform a write / read to a known register on startup to detect if the
|
||||||
|
device is connected. Enable this if you want the boot not to hang if the
|
||||||
|
device is not connected / there are SPI errors.
|
||||||
|
|
||||||
|
endif # MODULE_MRF24J40
|
||||||
|
|
||||||
|
config HAVE_MRF24J40
|
||||||
|
bool
|
||||||
|
help
|
||||||
|
Indicates that a MRF24J40 radio is present.
|
||||||
|
|
||||||
|
config HAVE_MRF24J40MA
|
||||||
|
bool
|
||||||
|
select HAVE_MRF24J40
|
||||||
|
help
|
||||||
|
Indicates that a MRF24J40MA radio is present.
|
||||||
|
|
||||||
|
config HAVE_MRF24J40MB
|
||||||
|
bool
|
||||||
|
select HAVE_MRF24J40
|
||||||
|
help
|
||||||
|
Indicates that a MRF24J40MB radio is present.
|
||||||
|
|
||||||
|
config HAVE_MRF24J40MC
|
||||||
|
bool
|
||||||
|
select HAVE_MRF24J40
|
||||||
|
help
|
||||||
|
Indicates that a MRF24J40MC radio is present.
|
||||||
|
|
||||||
|
config HAVE_MRF24J40MD
|
||||||
|
bool
|
||||||
|
select HAVE_MRF24J40
|
||||||
|
help
|
||||||
|
Indicates that a MRF24J40MD radio is present.
|
||||||
|
|
||||||
|
config HAVE_MRF24J40ME
|
||||||
|
bool
|
||||||
|
select HAVE_MRF24J40
|
||||||
|
help
|
||||||
|
Indicates that a MRF24J40ME radio is present.
|
||||||
|
|
||||||
|
|
||||||
menuconfig KCONFIG_USEMODULE_MRF24J40
|
menuconfig KCONFIG_USEMODULE_MRF24J40
|
||||||
bool "Configure MRF24J40 driver"
|
bool "Configure MRF24J40 driver"
|
||||||
depends on USEMODULE_MRF24J40
|
depends on USEMODULE_MRF24J40
|
||||||
|
Loading…
Reference in New Issue
Block a user