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 <Zephyr>/drivers/gpio/Kconfig.emul:6

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:32<Zephyr>/drivers/Kconfig:34<Zephyr>/drivers/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.)