zephyr/tests/lib/devicetree/api
Peter Bigot 345da78b5b devicetree: basic support for enum tokens
Whenever a devicetree binding defines a string property whose
enumerated values are all tokenizable, generate C macros for each
property value that are the corresponding tokens.

Note that "token" is distinct from "identifier": both 'foo' and '123'
are valid tokens, but only 'foo' is a valid identifier. We permit some
strings which are not valid identifiers in anticipation that the
generalization may be useful, e.g. when defining macros that paste the
token onto a prefix that makes the whole thing an identifier.

Fixes: #21273
Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2020-12-13 19:25:24 -05:00
..
src devicetree: basic support for enum tokens 2020-12-13 19:25:24 -05:00
app.overlay tests: devicetree: Add DT_PROP_BY_PHANDLE_IDX_OR test 2020-12-09 16:39:33 -05:00
CMakeLists.txt cmake: removing DTS_ROOTS in test samples as they serves no purpose 2020-07-03 12:18:04 -04:00
prj.conf
README
testcase.yaml tests/samples: enable for integration testing 2020-07-30 08:00:03 -04:00

Test cases for the devicetree.h API.