Skip to content

Commit

Permalink
drivers/mrf24j40: Expose configurations to Kconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrolanzieri committed Feb 7, 2020
1 parent 2795823 commit e0f9ce2
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/Kconfig.net
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
# directory for more details.

menu "Network Device Drivers"
rsource "mrf24j40/Kconfig"
source "$(RIOTCPU)/nrf52/radio/nrf802154/Kconfig"
endmenu # Network Device Drivers
30 changes: 30 additions & 0 deletions drivers/mrf24j40/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright (c) 2020 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
menuconfig KCONFIG_MODULE_MRF24J40
bool "Configure MRF24J40 driver"
depends on MODULE_MRF24J40
help
Configure the MRF24J40 driver using Kconfig.

if KCONFIG_MODULE_MRF24J40

config MRF24J40_USE_EXT_PA_LNA
bool "Enable external PN/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 # KCONFIG_MODULE_MRF24J40

0 comments on commit e0f9ce2

Please sign in to comment.