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>
18 lines
287 B
Plaintext
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>;
|
|
};
|