-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers/mrf24j40: Expose configurations to Kconfig
- Loading branch information
1 parent
2795823
commit e0f9ce2
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |