zephyr/tests/lib
Martí Bolívar 74abb2bf95 devicetree: add first-class node label helpers
Add the following new macros:

- DT_FOREACH_NODELABEL
- DT_FOREACH_NODELABEL_VARGS
- DT_INST_FOREACH_NODELABEL
- DT_INST_FOREACH_NODELABEL_VARGS

These are for-each helpers for iterating over the node labels of a
devicetree node. Since node labels are unique in the entire
devicetree, their token representations can be useful as unique IDs in
code as well.

As a first user of these, add:

- DT_NODELABEL_STRING_ARRAY
- DT_INST_NODELABEL_STRING_ARRAY

The motivating use case for these macros is to allow looking up a
struct device by devicetree node label in Zephyr shell utilities.
The work on the shells themselves is deferred to other patches.

To make working with the string array helpers easier, add:

- DT_NUM_NODELABELS
- DT_INST_NUM_NODELABELS

Signed-off-by: Martí Bolívar <mbolivar@amperecomputing.com>
2024-06-12 18:49:54 +02:00
..
acpi lib: acpi: update shell and test app with the modifed resource struct 2024-02-15 12:28:55 +01:00
c_lib tests: lib/c_lib/thrd: config overlay for intel_adsp/ace30_ptl 2024-06-06 20:06:11 -04:00
cbprintf_fp tests/lib/cbprintf_fp: add hifive1.conf 2024-04-02 14:31:39 +01:00
cbprintf_package
cmsis_dsp hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
cmsis_nn hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
cpp sys: Add a lockfree mpsc and spsc queues 2024-06-06 00:42:29 -07:00
devicetree devicetree: add first-class node label helpers 2024-06-12 18:49:54 +02:00
fdtable
gui/lvgl tests: lib: gui: lvgl: add stm32 test cases 2024-04-05 12:21:32 +02:00
hash_function
hash_map tests/lib: Use hwmv2 native targets identifiers 2024-03-15 16:13:12 +01:00
heap tests: Remove obsolete filter for ARC nSIM platform 2024-06-11 20:04:29 +03:00
heap_align hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
json
linear_range
lockfree sys: Add a lockfree mpsc and spsc queues 2024-06-06 00:42:29 -07:00
mem_alloc
mem_blocks arch: define struct arch_esf and deprecate z_arch_esf_t 2024-06-04 14:02:51 -05:00
mem_blocks_stats
mpsc_pbuf hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
multi_heap tests: kernel: add test for k_realloc 2024-05-28 17:55:12 +02:00
newlib samples: tests: bluetooth: Add support for frdm_rw612 2024-06-10 07:02:06 -07:00
notify
onoff
p4workq tests: use appropriate sys_randX_get() 2024-04-05 10:57:45 -05:00
ringbuffer tests/lib: Use hwmv2 native targets identifiers 2024-03-15 16:13:12 +01:00
shared_multi_heap tests: Fix missed renames 2024-04-10 11:50:29 +02:00
smf Lib: SMF Modify HSM operation for UML-Style transitions 2024-05-22 21:41:06 -04:00
sprintf tests: sprintf: Avoid buffer overrun 2024-03-15 17:08:58 -04:00
spsc_pbuf tests: use appropriate sys_randX_get() 2024-04-05 10:57:45 -05:00
sys_util include: sys: util: add note and test for NUM_VA_ARGS_LESS_1 2024-05-01 22:56:00 +01:00
time posix: timers: deprecate CONFIG_POSIX_CLOCK and TIMER 2024-06-04 16:27:12 -05:00