OpenThread snippet for diagnostic GPIO commands (ot-diag-gpio)
To build with this snippet, follow the instructions in the Using Snippets page. When building with west, run the following command:
west build -- -D<project_name>_SNIPPET=ot-diag-gpio
Overview
This snippet enables the CONFIG_GPIO_GET_DIRECTION Kconfig option to support querying the GPIO direction.
It is used in the OpenThread samples to configure the DK buttons and LEDs for diagnostic GPIO commands.