5992afae4f
Replace DT_CHOSEN_ZEPHYR_CAN_PRIMARY_LABEL with DEVICE_DT_GET on the chosen node itself. This is causing a build error in CI for the waveshare_open103z board because it disables CAN by default in favor of USB. Throw in an overlay reversing that decision for the sake of this sample to keep things building. (Though the build previously succeeded, the device_get_binding() call would simply have failed.) Replace the LED access with GPIO_DT_SPEC_GET_OR. This changes the semantics slightly so that the simulated LED implemented via printk() is run if either the node is missing or the pin cannot be configured, instead of just running when the node is missing. An unready LED port when the node is defined still returns early from main. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no> |
||
---|---|---|
.. | ||
waveshare_open103z.overlay |