This sample is a bit messy; clean it up. Remove unused includes, add missing include guards, clean up the separation of responsibilities between main.c and the button and LED helper files by moving code around, and replace the now-outmoded device_get_binding() calls with GPIO_DT_SPEC_GET(). Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no> |
||
|---|---|---|
| .. | ||
| button_svc.c | ||
| button_svc.h | ||
| led_svc.c | ||
| led_svc.h | ||
| main.c | ||