It can be convenient to "iterate" over the elements of a property, in the same way it is convenient to "iterate" over enabled instances. Add a new macro for doing this, along with a DT_INST_FOREACH_PROP_ELEM variant. This is likely to be more convenient than UTIL_LISTIFY or FOR_EACH in some situations because: - it handles inputs of any length - compiler error messages will be shorter and more self-contained - it is easier to use with phandle-array type properties, which require more complicated macro boilerplate when used with util_macro.h APIs Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no> |
||
|---|---|---|
| .. | ||
| src | ||
| app.overlay | ||
| CMakeLists.txt | ||
| prj.conf | ||
| README | ||
| testcase.yaml | ||
Test cases for the devicetree.h API.