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

cpu/rpx0xx: Fix kconfig model

This commit is contained in:
MrKevinWeiss 2023-05-24 09:49:21 +02:00
parent 75d19552dd
commit adbf951481
No known key found for this signature in database
GPG Key ID: 4B69974722CBEEAE
2 changed files with 24 additions and 0 deletions

View File

@ -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"

View File

@ -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