zephyr/tests/drivers/gpio/gpio_basic_api/boards/esp32.overlay
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

25 lines
572 B
Plaintext

/*
* Copyright (c) 2019 Mohamed ElShahawi
*
* SPDX-License-Identifier: Apache-2.0
*/
/ {
resources {
compatible = "test,gpio_basic_api";
out-gpios = <&gpio0 16 0>;
in-gpios = <&gpio0 17 0>;
};
};
/*
* Some notes about esp32 pins:
* GPIO pins 34-39 are not suitable for this test because:
* 1. input-only
* 2. No internal pull-up/pull-down circuitry.
* The pin names are: SENSOR_VP(GPIO36),SENSOR_CAPP(GPIO37),
* SENSOR_CAPN (GPIO38), SENSOR_VN (GPIO39),
* VDET_1 (GPIO34), VDET_2 (GPIO35).
*/