From 1dc6e0e32b55f0293575e1ddd59894adf8cba6f3 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Tue, 23 May 2023 09:44:32 +0200 Subject: [PATCH] drivers/nrf24l01p: model in Kconfig --- drivers/Kconfig.net | 1 + drivers/nrf24l01p/Kconfig | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 drivers/nrf24l01p/Kconfig diff --git a/drivers/Kconfig.net b/drivers/Kconfig.net index 4b95e6460a..ff194b8fb3 100644 --- a/drivers/Kconfig.net +++ b/drivers/Kconfig.net @@ -27,6 +27,7 @@ rsource "mcp2515/Kconfig" rsource "mrf24j40/Kconfig" rsource "ncv7356/Kconfig" rsource "netdev_ieee802154_submac/Kconfig" +rsource "nrf24l01p/Kconfig" rsource "pn532/Kconfig" rsource "rn2xx3/Kconfig" rsource "$(RIOTCPU)/sam0_common/sam0_eth/Kconfig" diff --git a/drivers/nrf24l01p/Kconfig b/drivers/nrf24l01p/Kconfig new file mode 100644 index 0000000000..ce970122d8 --- /dev/null +++ b/drivers/nrf24l01p/Kconfig @@ -0,0 +1,20 @@ +# Copyright (c) 2023 Inria +# 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_NRF24L01P + bool + prompt "nrf24l01p radio" if !(MODULE_NETDEV_DEFAULT && HAVE_NRF24L01P) + default (MODULE_NETDEV_DEFAULT && HAVE_NRF24L01P) + depends on TEST_KCONFIG + select MODULE_PERIPH_GPIO + select MODULE_PERIPH_GPIO_IRQ + select MODULE_PERIPH_SPI + select ZTIMER_USEC + +config HAVE_NRF24L01P + bool + help + Indicates that a NRF24L01P radio is present.