From c3501e8b359c747d392a757ac8bcb46b4e3abd71 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Wed, 9 Mar 2022 09:08:03 +0100 Subject: [PATCH] drivers/kw2xrf: model Kconfig --- boards/pba-d-01-kw2x/Kconfig | 1 + drivers/Kconfig.net | 1 + drivers/kw2xrf/Kconfig | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 drivers/kw2xrf/Kconfig diff --git a/boards/pba-d-01-kw2x/Kconfig b/boards/pba-d-01-kw2x/Kconfig index af97b54914..8068c000ca 100644 --- a/boards/pba-d-01-kw2x/Kconfig +++ b/boards/pba-d-01-kw2x/Kconfig @@ -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 diff --git a/drivers/Kconfig.net b/drivers/Kconfig.net index e8c6f04b84..3ba32e3076 100644 --- a/drivers/Kconfig.net +++ b/drivers/Kconfig.net @@ -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" diff --git a/drivers/kw2xrf/Kconfig b/drivers/kw2xrf/Kconfig new file mode 100644 index 0000000000..88d694b5b4 --- /dev/null +++ b/drivers/kw2xrf/Kconfig @@ -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.