2020-07-02 01:20:49 +08:00
|
|
|
# Emulated GPIO configuration options
|
|
|
|
|
|
|
|
# Copyright (c) 2020 Friedt Professional Engineering Services, Inc
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
config GPIO_EMUL
|
2021-10-22 18:36:55 +08:00
|
|
|
bool "Emulated GPIO driver"
|
2022-07-21 01:07:47 +08:00
|
|
|
default y
|
|
|
|
depends on DT_HAS_ZEPHYR_GPIO_EMUL_ENABLED
|
2020-07-02 01:20:49 +08:00
|
|
|
help
|
|
|
|
Enable the emulated GPIO driver. Mainly used for testing, this
|
|
|
|
driver allows for an arbitrary number of emulated GPIO controllers
|
|
|
|
to be instantiated. Furthermore, the emulated pins can be "wired"
|
|
|
|
using the regular GPIO callback API and the additional API
|
|
|
|
available in drivers/gpio/gpio_emul.h . Configuration for each
|
|
|
|
GPIO instance is accomplished using device tree and an example of
|
|
|
|
such a configuration is in
|
2024-03-18 21:13:06 +08:00
|
|
|
tests/drivers/gpio/gpio_basic_api/boards/native_sim.overlay
|
2020-07-02 01:20:49 +08:00
|
|
|
If unsure, say N.
|