mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
19650: drivers/nrf24l01p: model in kconfig r=aabadie a=aabadie 19660: cpu/rpx0xx: Fix kconfig model r=aabadie a=MrKevinWeiss ### Contribution description Broken master due to incorrect model of the periph_pio in kconfig. ### Testing procedure Green murdock (now that the board is added to the list) ### Issues/PRs references Look at the master CI... Co-authored-by: Alexandre Abadie <alexandre.abadie@inria.fr> Co-authored-by: MrKevinWeiss <weiss.kevin604@gmail.com>
This commit is contained in:
commit
7b324d7a4f
1
.murdock
1
.murdock
@ -96,6 +96,7 @@ pba-d-01-kw2x
|
||||
p-nucleo-wb55
|
||||
qn9080dk
|
||||
remote-revb
|
||||
rpi-pico
|
||||
same54-xpro
|
||||
samr21-xpro
|
||||
seeedstudio-gd32
|
||||
|
@ -17,6 +17,10 @@ config CPU_FAM_RPX0XX
|
||||
select HAS_PERIPH_UART_MODECFG
|
||||
select HAS_PERIPH_UART_RECONFIGURE
|
||||
select HAS_PIO_I2C
|
||||
select MODULE_PIO_I2C if MODULE_PERIPH_I2C
|
||||
# Since make has a wildcard for anything starting with pio_ we need to
|
||||
# build it as new modules get added
|
||||
select MODULE_PERIPH_PIO if MODULE_PIO_I2C
|
||||
|
||||
config CPU_FAM
|
||||
default "RPX0XX" if CPU_FAM_RPX0XX
|
||||
@ -36,4 +40,14 @@ config HAS_CPU_RPX0XX
|
||||
help
|
||||
Indicates that a RPX0XX CPU (e.g. the RP2040) is used
|
||||
|
||||
config MODULE_PIO_I2C
|
||||
bool "Enable PIO I2C module"
|
||||
depends on HAS_PIO_I2C
|
||||
|
||||
config MODULE_PIO_AUTOSTART_I2C
|
||||
bool "Enable PIO I2C module autostart"
|
||||
default y if MODULE_PIO_I2C
|
||||
depends on HAS_PIO_I2C
|
||||
|
||||
|
||||
source "$(RIOTCPU)/cortexm_common/Kconfig"
|
||||
|
@ -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"
|
||||
|
20
drivers/nrf24l01p/Kconfig
Normal file
20
drivers/nrf24l01p/Kconfig
Normal file
@ -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.
|
@ -90,6 +90,16 @@ config MODULE_PERIPH_INIT_HWRNG
|
||||
|
||||
rsource "Kconfig.i2c"
|
||||
|
||||
config MODULE_PERIPH_PIO
|
||||
bool "Programmable IO (PIO) peripheral driver"
|
||||
depends on HAS_PERIPH_PIO
|
||||
select MODULE_PERIPH_COMMON
|
||||
|
||||
config MODULE_PERIPH_INIT_PIO
|
||||
bool "Auto initialize programmable IO (PIO) peripheral driver"
|
||||
default y if MODULE_PERIPH_INIT
|
||||
depends on MODULE_PERIPH_PIO
|
||||
|
||||
config MODULE_PERIPH_PM
|
||||
bool "Power Management (PM) peripheral driver"
|
||||
default y
|
||||
|
@ -191,9 +191,9 @@ config HAS_PERIPH_GPIO_IRQ
|
||||
config HAS_PERIPH_GPIO_FAST_READ
|
||||
bool
|
||||
help
|
||||
Indicates that the GPIO peripheral supports a mode in which pin read
|
||||
operations are faster, usually with a tradeoff against a different
|
||||
property.
|
||||
Indicates that the GPIO peripheral supports a mode in which pin read
|
||||
operations are faster, usually with a tradeoff against a different
|
||||
property.
|
||||
|
||||
config HAS_PERIPH_GPIO_TAMPER_WAKE
|
||||
bool
|
||||
|
6
tests/drivers/nrf24l01p_lowlevel/app.config.test
Normal file
6
tests/drivers/nrf24l01p_lowlevel/app.config.test
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user