zephyr/tests/drivers/gpio/gpio_basic_api/boards/native_posix.overlay
Christopher Friedt cc537b5a3a tests: gpio_basic_api: support for emulated GPIO
This adds support for emmulated GPIO (CONFIG_GPIO_EMUL=y) and
additionally allows BOARD=native_posix and
BOARD=native_posix_64 to run the gpio_basic_api test suite.

Fixes #26477

Signed-off-by: Christopher Friedt <chrisfriedt@gmail.com>
2020-12-27 18:15:33 +01:00

18 lines
287 B
Plaintext

/*
* Copyright (c) 2020 Friedt Professional Engineering Services, Inc
*
* SPDX-License-Identifier: Apache-2.0
*/
/ {
resources {
compatible = "test,gpio_basic_api";
out-gpios = <&gpio0 0 0>; /* Pin 0 */
in-gpios = <&gpio0 1 0>; /* Pin 1 */
};
};
&gpio0 {
ngpios = <2>;
};