6342eff58b
Add a struct led_dt_spec to hold an LED device and index pointer, some initializer and wrapper APIs. This allows simpler LED usage, such as: static const struct led_dt_spec led = LED_DT_SPEC_GET(DT_NODELABEL(led0)); led_on_dt(&led); led_off_dt(&led); Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> |
||
---|---|---|
.. | ||
eol_releases.rst | ||
index.rst | ||
migration-guide-3.5.rst | ||
migration-guide-3.6.rst | ||
migration-guide-3.7.rst | ||
migration-guide-4.0.rst | ||
migration-guide-4.1.rst | ||
release-notes-1.5.rst | ||
release-notes-1.6.rst | ||
release-notes-1.7.rst | ||
release-notes-1.8.rst | ||
release-notes-1.9.rst | ||
release-notes-1.10.rst | ||
release-notes-1.11.rst | ||
release-notes-1.12.rst | ||
release-notes-1.13.rst | ||
release-notes-1.14.rst | ||
release-notes-2.0.rst | ||
release-notes-2.1.rst | ||
release-notes-2.2.rst | ||
release-notes-2.3.rst | ||
release-notes-2.4.rst | ||
release-notes-2.5.rst | ||
release-notes-2.6.rst | ||
release-notes-2.7.rst | ||
release-notes-3.0.rst | ||
release-notes-3.1.rst | ||
release-notes-3.2.rst | ||
release-notes-3.3.rst | ||
release-notes-3.4.rst | ||
release-notes-3.5.rst | ||
release-notes-3.6.rst | ||
release-notes-3.7.rst | ||
release-notes-4.0.rst | ||
release-notes-4.1.rst |