Is there a working example with using gpio_dt_spec for accessing gpios?
I used the code provided from https://docs.zephyrproject.org/latest/reference/peripherals/gpio.html#c.GPIO_DT_SPEC_GET_BY_IDX
But it can not resolve the macros for the Devicetree.