#define GPIO_SPEC_AND_COMMA(button_or_led) GPIO_DT_SPEC_GET(button_or_led, gpios),
I find this code in the buttons and led .c file
I tried finding what is does , but I couldn't .
I just need help to understand what id does and how to use it!
GPIO_SPEC_AND_COMMA is a locally defined macro in dk_buttons_and_leds.c. So, the functionality is just the way local macro works.
GPIO_SPEC_AND_COMMA is a locally defined macro in dk_buttons_and_leds.c. So, the functionality is just the way local macro works.