2020-07-27 17:09:27 +02:00
|
|
|
# Copyright (c) 2020 HAW Hamburg
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
menuconfig MODULE_PERIPH_SPI
|
2020-07-27 17:09:27 +02:00
|
|
|
bool "SPI peripheral driver"
|
|
|
|
depends on HAS_PERIPH_SPI
|
2020-08-31 09:57:28 +02:00
|
|
|
select MODULE_PERIPH_COMMON
|
2020-07-27 17:09:27 +02:00
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
if MODULE_PERIPH_SPI
|
2020-07-27 17:09:27 +02:00
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
config MODULE_PERIPH_INIT_SPI
|
2020-07-27 17:09:27 +02:00
|
|
|
bool "Auto initialize SPI peripheral"
|
2020-08-31 09:57:28 +02:00
|
|
|
default y if MODULE_PERIPH_INIT
|
2020-07-27 17:09:27 +02:00
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
config MODULE_PERIPH_SPI_RECONFIGURE
|
2020-07-27 17:09:27 +02:00
|
|
|
bool "Pin reconfiguration support"
|
|
|
|
depends on HAS_PERIPH_SPI_RECONFIGURE
|
|
|
|
|
2021-11-24 08:52:19 +01:00
|
|
|
config MODULE_PERIPH_SPI_ON_QSPI
|
|
|
|
bool "Use QSPI peripherial in SPI mode"
|
|
|
|
depends on HAS_PERIPH_SPI_ON_QSPI
|
|
|
|
|
2021-09-17 10:20:35 +02:00
|
|
|
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.
|
2020-07-27 17:09:27 +02:00
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
config MODULE_PERIPH_INIT_SPI_RECONFIGURE
|
2020-07-27 17:09:27 +02:00
|
|
|
bool "Auto initialize SPI pin reconfiguration support"
|
2020-08-31 09:57:28 +02:00
|
|
|
default y if MODULE_PERIPH_INIT
|
|
|
|
depends on MODULE_PERIPH_SPI_RECONFIGURE
|
2020-07-27 17:09:27 +02:00
|
|
|
|
2021-09-17 10:20:35 +02:00
|
|
|
config MODULE_PERIPH_INIT_SPI_GPIO_MODE
|
|
|
|
bool
|
|
|
|
default y if MODULE_PERIPH_INIT
|
|
|
|
depends on MODULE_PERIPH_SPI_GPIO_MODE
|
|
|
|
|
2021-10-01 12:41:03 +02:00
|
|
|
# Include CPU specific configurations
|
|
|
|
osource "$(RIOTCPU)/$(CPU)/periph/Kconfig.spi"
|
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
endif # MODULE_PERIPH_SPI
|