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

drivers/spi: Model Kconfig spi_gpio_mode

This commit is contained in:
MrKevinWeiss 2021-09-17 10:20:35 +02:00
parent 91b71a5fb2
commit 0c5c657912
No known key found for this signature in database
GPG Key ID: 3514539D7808D123

View File

@ -20,13 +20,25 @@ config MODULE_PERIPH_SPI_RECONFIGURE
bool "Pin reconfiguration support"
depends on HAS_PERIPH_SPI_RECONFIGURE
# TODO: this module is actually just an artifact from the way periph_init_%
# modules are handled in Makefile. We need to define it to keep the list the
# same for now. We should be able to remove it later on.
config MODULE_PERIPH_SPI_GPIO_MODE
bool "Support initializing SPI pins with adapted GPIO modes"
depends on HAS_PERIPH_SPI_GPIO_MODE
help
Say y to call `spi_init_with_gpio_mode`, which allows to initialize the SPI pins in
with an specific GPIO mode.
# TODO: these modules are actually just artifacts from the way periph_init_%
# modules are handled in Makefile. We need to define them to keep the list the
# same for now. We should be able to remove them later on.
config MODULE_PERIPH_INIT_SPI_RECONFIGURE
bool "Auto initialize SPI pin reconfiguration support"
default y if MODULE_PERIPH_INIT
depends on MODULE_PERIPH_SPI_RECONFIGURE
config MODULE_PERIPH_INIT_SPI_GPIO_MODE
bool
default y if MODULE_PERIPH_INIT
depends on MODULE_PERIPH_SPI_GPIO_MODE
endif # MODULE_PERIPH_SPI