This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

CONFIG_GPIO_EMUL

[EXPERIMENTAL] Emulated GPIO driver

Type: bool

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
tests/drivers/gpio/gpio_basic_api/boards/native_posix_64.overlay
If unsure, say N.

Direct dependencies

GPIO

(Includes any dependencies from ifs and menus.)

Defaults

No defaults. Implicitly defaults to n.

Kconfig definition

At drivers/gpio/Kconfig.emul:6

Included via Kconfig:8Kconfig.zephyr:40drivers/Kconfig:34drivers/gpio/Kconfig:84

Menu path: (Top) → Device Drivers → GPIO Drivers

config GPIO_EMUL
    bool "[EXPERIMENTAL] Emulated GPIO driver"
    depends on GPIO
    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
      tests/drivers/gpio/gpio_basic_api/boards/native_posix_64.overlay
      If unsure, say N.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)