:orphan: .. title:: GPIO_EMUL .. option:: 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 =================== \ :option:`GPIO ` *(Includes any dependencies from ifs and menus.)* Defaults ======== No defaults. Implicitly defaults to ``n``. Kconfig definition ================== .. highlight:: kconfig At ``drivers/gpio/Kconfig.emul:6`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:32`` → ``drivers/Kconfig:34`` → ``drivers/gpio/Kconfig:84`` Menu path: (Top) → Device Drivers → GPIO Drivers .. parsed-literal:: config GPIO_EMUL bool "[EXPERIMENTAL] Emulated GPIO driver" depends on \ :option:`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.)*