zephyr/scripts
Gerard Marull-Paretas fdea3c9a44 devicetree: add DT(_INST)_FOREACH_PROP_ELEM_SEP(_VARGS)
Add a new set of helpers for expanding property entries with a
separator. These macros complement DT(_INST)FOREACH_PROP_ELEM(_VARGS) by
adding the capability to expand with a custom separator between property
entries. This allows, in some cases, to re-use existing macros (e.g.
DT_PROP_BY_IDX) without creating an auxiliary macro that just appends a
separator. Example:

```dts
n: node {
	...
	my-gpios = <&gpioa 0 GPIO_ACTIVE_HIGH>,
		   <&gpiob 1 GPIO_ACTIVE_HIGH>;
};
```

Before:

```c
 #define GPIO_DT_SPEC_BY_IDX_AND_COMMA(node_id, prop, idx) \
	GPIO_DT_SPEC_BY_IDX(node_id, prop, idx),

struct gpio_dt_spec specs[] = {
	DT_FOREACH_PROP_ELEM(DT_NODELABEL(n), my_gpios,
			     GPIO_DT_SPEC_BY_IDX_AND_COMMA)
};
```

After:

```c
struct gpio_dt_spec specs[] = {
	DT_FOREACH_PROP_ELEM_SEP(DT_NODELABEL(n), my_gpios,
				 GPIO_DT_SPEC_BY_IDX, (,))
};
```

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-10-03 10:11:18 +02:00
..
build includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
checkpatch
ci scripts: ci: test_plan: Specify ZEPHYR_BASE for list_boards 2022-09-08 18:17:10 +09:00
coccinelle
coredump
dts devicetree: add DT(_INST)_FOREACH_PROP_ELEM_SEP(_VARGS) 2022-10-03 10:11:18 +02:00
footprint footprint: Add bt_hci_rpmsg with ISO for the nRF5340 netcore 2022-09-02 11:08:31 +00:00
gitlint
kconfig scripts: kconfig: update size functions to convert bits to bytes 2022-09-21 15:22:36 +02:00
logging/dictionary
net
pylib/twister twister: add comment about stats logic 2022-10-01 06:42:54 -04:00
release scripts: release: strip title names 2022-09-27 16:51:45 -05:00
schemas/twister
support
tests twister: fix bug retrieving subtests 2022-08-12 17:39:35 +02:00
tracing
utils scripts: migrate_includes: migrate zephyr.h to kernel.h 2022-09-05 16:31:47 +02:00
west_commands west: jlink: adding optional flash loader flag required for some boards 2022-09-21 09:33:42 -05:00
.gitignore
checkpatch.pl
checkstack.pl
coccicheck
dump_bugs_pickle.py scripts: dump_bugs_pickle: strip bug titles 2022-09-27 16:51:45 -05:00
gen_gcov_files.py
get_maintainer.py
github_helpers.py
list_boards.py scripts: remove ZEPHYR_BASE as default root for board listing 2022-08-18 14:29:14 +02:00
make_bugs_pickle.py
requirements-base.txt
requirements-build-test.txt
requirements-compliance.txt scripts: Upgrade to junitparser v2+ 2022-08-03 14:04:36 -04:00
requirements-doc.txt doc: Do not use Sphinx 5.2.0.post0 2022-09-25 10:37:32 +02:00
requirements-extras.txt scripts: requirements-extras: Request imgtool 1.9 for write-block-size > 8 2022-09-01 10:28:33 +02:00
requirements-run-test.txt soc: xtensa: tools: remove dependency of netifaces package 2022-08-16 22:51:53 -07:00
requirements.txt
series-push-hook.sh
set_assignees.py scripts: set_assignee: handle exceptions 2022-07-18 21:41:22 -04:00
spelling.txt
tags.sh
twister twister: Set stdin explicitly on stty calls 2022-08-26 12:51:28 +02:00
valgrind.supp
west-commands.yml west: Add completion support for zsh 2022-09-06 08:43:15 -07:00
zephyr_module.py scripts: modules: Mark the build as tainted if blobs present 2022-08-29 15:57:59 +02:00