zephyr/drivers/gpio/Kconfig.esp32
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

44 lines
771 B
Plaintext

# Kconfig.esp32 - ESP32 GPIO configuration options
#
#
# Copyright (c) 2017 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
menuconfig GPIO_ESP32
bool "ESP32 GPIO"
depends on SOC_ESP32
help
Enables the ESP32 GPIO driver
if GPIO_ESP32
config GPIO_ESP32_IRQ
int "IRQ line for ESP32 GPIO pins"
default 10
config GPIO_ESP32_0
bool "ESP32 GPIO (pins 0-31)"
default y
help
Include support for GPIO pins 0-31 on the ESP32.
config GPIO_ESP32_0_NAME
string "Driver name"
depends on GPIO_ESP32_0
default "GPIO_0"
config GPIO_ESP32_1
bool "ESP32 GPIO (pins 32-39)"
default y
help
Include support for GPIO pins 32-39 on the ESP32.
config GPIO_ESP32_1_NAME
string "Driver name"
depends on GPIO_ESP32_1
default "GPIO_1"
endif # GPIO_ESP32