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:
parent
75d19552dd
commit
adbf951481
@ -17,6 +17,10 @@ config CPU_FAM_RPX0XX
|
|||||||
select HAS_PERIPH_UART_MODECFG
|
select HAS_PERIPH_UART_MODECFG
|
||||||
select HAS_PERIPH_UART_RECONFIGURE
|
select HAS_PERIPH_UART_RECONFIGURE
|
||||||
select HAS_PIO_I2C
|
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
|
config CPU_FAM
|
||||||
default "RPX0XX" if CPU_FAM_RPX0XX
|
default "RPX0XX" if CPU_FAM_RPX0XX
|
||||||
@ -36,4 +40,14 @@ config HAS_CPU_RPX0XX
|
|||||||
help
|
help
|
||||||
Indicates that a RPX0XX CPU (e.g. the RP2040) is used
|
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"
|
source "$(RIOTCPU)/cortexm_common/Kconfig"
|
||||||
|
@ -90,6 +90,16 @@ config MODULE_PERIPH_INIT_HWRNG
|
|||||||
|
|
||||||
rsource "Kconfig.i2c"
|
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
|
config MODULE_PERIPH_PM
|
||||||
bool "Power Management (PM) peripheral driver"
|
bool "Power Management (PM) peripheral driver"
|
||||||
default y
|
default y
|
||||||
|
Loading…
Reference in New Issue
Block a user