Skip to content
Commit e7d42ff8 authored by Martí Bolívar's avatar Martí Bolívar Committed by Kumar Gala
Browse files

dts: gen_defines: emit more for-each helpers



Add some helper macros that work similarly to the
'DT_FOREACH_OKAY_INST_<compat>(fn)' macros, except they give 'fn'
node identifiers in their expansion instead of instance numbers.

This makes it possible to add for-each APIs to devicetree.h that work
on an arbitrary compatible, not just DT_DRV_COMPAT.

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