zephyr/tests/lib/devicetree/api
Martí Bolívar ffc03124c1 devicetree: make DT_PROP_HAS_IDX expand to 0 or 1
We have a use case for checking the results of a DT_PROP_HAS_IDX()
call with COND_CODE_1(). That won't work because its expansion is an
integer comparison; COND_CODE_1() expects a literal 1 or 0.

Adjust the macro implementation so it expands to a literal 1 or 0.
Make this work even when the index argument needs an expansion while
we're at it.

Fixes: #29833
Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2020-11-15 08:44:56 -06:00
..
src devicetree: make DT_PROP_HAS_IDX expand to 0 or 1 2020-11-15 08:44:56 -06:00
CMakeLists.txt cmake: removing DTS_ROOTS in test samples as they serves no purpose 2020-07-03 12:18:04 -04:00
README
app.overlay devicetree: add first round of dependency ordinal info 2020-10-14 13:18:44 -05:00
prj.conf
testcase.yaml tests/samples: enable for integration testing 2020-07-30 08:00:03 -04:00

README

Test cases for the devicetree.h API.