zephyr/doc
Gerard Marull-Paretas fff9ecbc7f devicetree: add DT_(INST_)FOREACH_CHILD(_STATUS_OKAY)_SEP(_VARGS)
It is frequent to see in Devicetree code constructs like:

```c
 #define NAME_AND_COMMA(node_id) DT_NODE_FULL_NAME(node_id),

const char *child_names[] = {
	DT_FOREACH_CHILD(DT_NODELABEL(n), NAME_AND_COMMA)
};
```

That is, an auxiliary macro to append a separator character in
DT_FOREACH* macros. Non-DT API, e.g. FOR_EACH(), takes a separator
argument to avoid such intermediate macros.

This patch adds DT_FOREACH_CHILD_SEP (and instance/status okay/vargs
versions of it). They all take an extra argument: a separator. With this
change, the example above can be simplified to:

```c
const char *child_labels[] = {
	DT_FOREACH_CHILD(DT_NODELABEL(n), DT_NODE_FULL_NAME, (,))
};
```

Notes:
- Other DT_FOREACH* macros could/should be extended as well

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-08-30 16:19:57 +02:00
..
_doxygen doc: Update HTML documentation Zephyr logo 2022-06-06 00:02:55 +09:00
_extensions/zephyr doc: extend application sphinx extension to support west arguments 2022-08-12 13:56:55 +02:00
_scripts doc: gen_devicetree_rest: Fix binding doc file name resolution 2022-07-25 15:18:27 +02:00
_static doc: Update PDF documentation Zephyr logo 2022-06-06 00:02:55 +09:00
_templates
build devicetree: add DT_(INST_)FOREACH_CHILD(_STATUS_OKAY)_SEP(_VARGS) 2022-08-30 16:19:57 +02:00
connectivity doc: Documenting 32 bit UUID support in GATT 2022-08-22 16:31:44 +00:00
contribute blobs: Document the submission process 2022-08-25 11:10:53 -04:00
develop doc: Update to Zephyr SDK 0.15.0 2022-08-29 16:57:18 +02:00
hardware devices: constify device pointers initialized at compile time 2022-08-22 17:08:26 +02:00
images
introduction doc: mention MIPS architecture support 2022-01-24 17:11:42 -05:00
kernel doc: Update documentation related to pipes 2022-08-17 19:31:25 +02:00
project doc: gh: Add RFC to the list of mandatory labels 2022-06-30 17:01:58 -04:00
releases doc: releases: add Bluetooth privacy changes for extended advertising 2022-08-29 11:22:25 +02:00
security vulnerabilities: Add CVE information 2022-06-06 17:59:28 +02:00
services doc: smf: Add Event Driven Example 2022-08-26 10:23:39 -07:00
templates
404.rst doc: Suggest filing GitHub issue for broken links 2022-04-28 10:26:03 +02:00
CMakeLists.txt doc: fix building documentation when PYTHONPATH is set 2022-05-25 17:16:55 -07:00
conf.py doc: add nitpicky mode ignores 2022-08-26 11:57:26 +02:00
copyright.rst
glossary.rst doc: use :kconfig:option: domain role 2022-03-02 09:28:37 +01:00
index-tex.rst doc: get rid of reference section 2022-04-07 16:35:19 +02:00
index.rst doc: get rid of reference section 2022-04-07 16:35:19 +02:00
kconfig.rst doc: use new kconfig extension 2022-03-02 09:28:37 +01:00
known-warnings.txt doc: Bluetooth: Document the services APIs 2022-05-24 17:49:17 +02:00
LICENSING.rst
Makefile doc: use new kconfig extension 2022-03-02 09:28:37 +01:00
substitutions.txt
zephyr.doxyfile.in doc: Bluetooth: Add ATT section in docs 2022-08-19 11:59:52 +02:00