zephyr/drivers/gpio/Kconfig.esp32
Mohamed ElShahawi fef3ebaa69 drivers: gpio_esp32: update to use new GPIO API
- Updates gpio driver and device tree files to the new GPIO Config flags
- Implements the new port_* APIs
- Update I2C and PWM Drivers to use new GPIO config
- Add esp32.overlay to gpio_basic_api test
- refactor convert_int_type, regs struct
- remove config_polarity
- add kConfig notes

Tests:
- samples/basic/blinky
- samples/basic/button
- tests/drivers/gpio/gpio_basic_api
- tests/drivers/gpio/gpio_api_1pin

Board:
- esp32 DevKitC V4

Note about interrupts:
The ESP32 requires specifying a CPU interrupt to be used for GPIO
interrupt signals.  CPU interrupts can be either level or edge (or
special) triggered, but not both.
Please check gpio/Kconfig.esp32 for more info.

Signed-off-by: Mohamed ElShahawi <ExtremeGTX@hotmail.com>
2020-02-05 12:00:36 +01:00

40 lines
816 B
Plaintext

# 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
select HAS_DTS_GPIO
help
Enables the ESP32 GPIO driver
if GPIO_ESP32
config GPIO_ESP32_IRQ
int "IRQ line for ESP32 GPIO pins"
default 10
help
Select the IRQ line to be used for GPIO interrupts.
Edge-triggered interrupts are supported on lines: 10, 22,
28, 30.
Level-triggered interrupts are supported on lines: 0-5, 8,
9, 12, 13, 17-21, 23-27, 31.
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_1
bool "ESP32 GPIO (pins 32-39)"
default y
help
Include support for GPIO pins 32-39 on the ESP32.
endif # GPIO_ESP32