10000 drivers/nrf24l01p: model in kconfig by aabadie · Pull Request #19650 · RIOT-OS/RIOT · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

drivers/nrf24l01p: model in kconfig #19650

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions drivers/Kconfig.net
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
20 changes: 20 additions & 0 deletions drivers/nrf24l01p/Kconfig
Original file line number Diff line number Diff line change
@@ -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.
6 changes: 6 additions & 0 deletions tests/drivers/nrf24l01p_lowlevel/app.config.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CONFIG_MODULE_NRF24L01P=y
CONFIG_MODULE_PS=y
CONFIG_MODULE_SHELL=y
CONFIG_MODULE_SHELL_CMDS_DEFAULT=y
CONFIG_MODULE_ZTIMER=y
CONFIG_ZTIMER_USEC=y
0