This Zephyr freestanding application is used in the third article of the "Practical Zephyr" series. The application itself is just a dummy, the important files are the Devicetree overlay files to demonstrate the basic Devicetree types used by Zephyr:
props-basics.overlay
shows all basic types except for phandles. It is based on Zephyr's tests for Node.propsprops-phandles.overlay
shows the phandle, phandles, and phandle-array types.
The following command can be used to build the application for Nordic's nRF52840 development kit:
west build --board nrf52840dk_nrf52840 --
-DEXTRA_DTC_OVERLAY_FILE="dts/playground/props-phandles.overlay;dts/playground/props-basics.overlay"
The goal of this application is only demonstrating the basic Devicetree syntax and types: No code is generated for the corresponding nodes, the only output is build/zephyr/zephyr.dts
. The next demo application shows Devicetree bindings, which leads to the generation of the corresponding macros.
Note: The
tasks.py
script is used by the GitHub action for building this application using invoke.