zephyr/drivers/gpio/Kconfig.stm32
Ulf Magnusson e65f8ba1f2 kconfig: gpio: Remove lots of redundant GPIO dependencies
Most of these are from source'ing a file within an 'if GPIO', and then
adding another 'depends on GPIO' 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>
2019-03-07 20:28:04 -05:00

51 lines
986 B
Plaintext

# Kconfig - STM32 GPIO configuration
#
# Copyright (c) 2016 Open-RnD Sp. z o.o.
#
# SPDX-License-Identifier: Apache-2.0
#
menuconfig GPIO_STM32
bool "GPIO Driver for STM32 family of MCUs"
depends on SOC_FAMILY_STM32
select HAS_DTS_GPIO
help
Enable GPIO driver for STM32 line of MCUs
if GPIO_STM32
config GPIO_STM32_PORTA
bool "Enable GPIO port A support"
config GPIO_STM32_PORTB
bool "Enable GPIO port B support"
config GPIO_STM32_PORTC
bool "Enable GPIO port C support"
config GPIO_STM32_PORTD
bool "Enable GPIO port D support"
config GPIO_STM32_PORTE
bool "Enable GPIO port E support"
config GPIO_STM32_PORTF
bool "Enable GPIO port F support"
config GPIO_STM32_PORTG
bool "Enable GPIO port G support"
config GPIO_STM32_PORTH
bool "Enable GPIO port H support"
config GPIO_STM32_PORTI
bool "Enable GPIO port I support"
config GPIO_STM32_PORTJ
bool "Enable GPIO port J support"
config GPIO_STM32_PORTK
bool "Enable GPIO port K support"
endif # GPIO_STM32