zephyrproject-rtos / gsoc-2022-arduino-core

Arduino Core Zephyr Module (GSoC 2022 Project)
Apache License 2.0
43 stars 11 forks source link

variants: Introduce the builtin-led-gpios node #61

Closed soburi closed 1 year ago

soburi commented 1 year ago

Introduce the builtin-led-gpios node to make possible to configuring the builtin-led from dts. This node uses to determine the value of the LED_BUILTIN macro.

Use the led0 alias to determine the LED_BUILTIN if the builtin-led-gpios is not defined.

The behavior can override by defining the LED_BUILTIN in pinmap.h. It uses definitions that are defined in the header preferentially.


The PR is contineued from #60. I will rebase if #60 merged.

soburi commented 1 year ago

@szczys

Thank you for reviewing.

This PR should also include an update to the variant documentation on this topic:

I update the document.