mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-02 02:22:57 +00:00
The two redundant SPI dependencies are from 'source'ing a file within an 'if SPI' and then adding another 'depends on SPI' within it. 'if FOO' is just shorthand for adding depends on FOO to each item within the 'if'. There are no "conditional includes" in Kconfig, so 'if FOO' has no special meaning around a source. Conditional includes wouldn't be possible, because an if condition could include (directly or indirectly) forward references to symbols not defined yet. Tip: When adding a symbol, check its dependencies in the menuconfig ('ninja menuconfig', then / to jump to the symbol). The menuconfig also shows how the file with the symbol got included, so if you see duplicated dependencies, it's easy to hunt down where they come from. Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
29 lines
635 B
Plaintext
29 lines
635 B
Plaintext
# Kconfig - STM32 SPI driver configuration options
|
|
|
|
#
|
|
# Copyright (c) 2015-2016 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
menuconfig SPI_STM32
|
|
bool "STM32 MCU SPI controller driver"
|
|
depends on SOC_FAMILY_STM32
|
|
select USE_STM32_LL_SPI
|
|
help
|
|
Enable SPI support on the STM32 family of processors.
|
|
|
|
if SPI_STM32
|
|
|
|
config SPI_STM32_HAS_FIFO
|
|
bool
|
|
depends on SOC_SERIES_STM32L4X || SOC_SERIES_STM32F0X || SOC_SERIES_STM32F3X || SOC_SERIES_STM32F7X
|
|
default y
|
|
|
|
config SPI_STM32_INTERRUPT
|
|
bool "STM32 MCU SPI Interrupt Support"
|
|
help
|
|
Enable Interrupt support for the SPI Driver of STM32 family.
|
|
|
|
endif # SPI_STM32
|