Skip to content
Commit f0d11f78 authored by Martí Bolívar's avatar Martí Bolívar Committed by Carles Cufi
Browse files

gen_defines: add helpers for iterating over the entire tree



Add two helper macros:

- DT_FOREACH_HELPER
- DT_FOREACH_OKAY_HELPER

These are internal generated macros which will be used to define
devicetree.h APIs for iterating over every node in the tree, and every
node in the tree with status "okay", respectively.

We can use these new APIs to implement the functionality in
device_extern.h natively from device.h without requiring a generated
header. It will also be useful for other purposes later on.

Signed-off-by: default avatarMartí Bolívar <marti.bolivar@nordicsemi.no>
parent 190197ec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment