1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/kw2xrf: model Kconfig

This commit is contained in:
Leandro Lanzieri 2022-03-09 09:08:03 +01:00
parent 9225c4b80e
commit c3501e8b35
No known key found for this signature in database
GPG Key ID: F4E9A721761C7593
3 changed files with 36 additions and 0 deletions

View File

@ -22,6 +22,7 @@ config BOARD_PBA_D_01_KW2X
select HAVE_SAUL_GPIO
select HAVE_HDC1000
select HAVE_KW2XRF
select HAVE_MAG3110
select HAVE_MMA8X5X
select HAVE_MPL3115A2

View File

@ -21,6 +21,7 @@ rsource "dose/Kconfig"
rsource "enc28j60/Kconfig"
rsource "encx24j600/Kconfig"
rsource "ethos/Kconfig"
rsource "kw2xrf/Kconfig"
rsource "mcp2515/Kconfig"
rsource "mrf24j40/Kconfig"
rsource "ncv7356/Kconfig"

34
drivers/kw2xrf/Kconfig Normal file
View File

@ -0,0 +1,34 @@
# Copyright (c) 2022 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 MODULE_KW2XRF
bool
prompt "KW2XRF radio" if !(MODULE_NETDEV_DEFAULT && HAVE_KW2XRF)
default (MODULE_NETDEV_DEFAULT && HAVE_KW2XRF)
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_LUID
select MODULE_IEEE802154
select MODULE_NETDEV
select MODULE_NETDEV_IEEE802154
select MODULE_CORE_THREAD_FLAGS
config MODULE_KW2XRF_TESTMODE
bool "Test mode"
depends on MODULE_KW2XRF
help
Enables functionalities to help with module testing.
config HAVE_KW2XRF
bool
help
Indicates that a KW2XRF radio is present.