zephyr/include/zephyr
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
..
app_memory
arch nios2: rename default RAM region from 'SRAM' to 'RAM' 2022-10-03 10:09:53 +02:00
audio
bluetooth Bluetooth: Audio: Remove caching ASE on release 2022-09-27 09:16:21 +00:00
canbus
console
crypto
data lib: os: Extend Json library API and type update 2022-06-06 12:06:43 +02:00
debug doxygen: remove redundant usages of def 2022-08-09 12:29:28 +02:00
devicetree devicetree.h: use DT_CAT<x> consistently 2022-09-09 12:19:18 +02:00
dfu dfu/mcuboot: removes BOOT_MAX_ALIGN and BOOT_MAGIC_SZ 2022-09-19 18:36:37 +02:00
display drivers: display: framebuffer: rework to make it self-contained 2022-09-02 14:16:08 +02:00
drivers drivers/mm: Add API to query memory regions 2022-10-01 14:52:29 -04:00
dt-bindings dts: sensor: adding nodes for STM32 quadrature encoder 2022-10-03 10:10:31 +02:00
fs fcb: Fix parameter description 2022-06-05 14:49:06 +02:00
ipc ipc_service: Add ipc_service_close_instance function 2022-10-03 10:08:44 +02:00
kernel kernel: pipes: rewrite pipes implementation 2022-08-17 19:31:25 +02:00
linker logging: Use STRUCT_SECTION macros for log backend 2022-10-03 10:11:03 +02:00
logging logging: Use STRUCT_SECTION macros for log backend 2022-10-03 10:11:03 +02:00
lorawan
math doxygen: remove redundant usages of def 2022-08-09 12:29:28 +02:00
mgmt mgmt: mcumgr: Move wrongly placed header file 2022-09-20 15:01:47 +02:00
modbus modbus: add user data for adu callback 2022-09-02 10:51:57 +02:00
multi_heap doc: doxygen: group heap APIs 2022-09-07 10:45:55 -04:00
net net: net_pkt: Simplify net_pkt_compact() API 2022-09-15 16:35:11 +00:00
pm pm: policy: allow multiple subscribers to latency changes 2022-08-03 11:19:17 +02:00
portability
posix includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
random
rtio rtio: Low (Memory) Cost Concurrent scheduler 2022-06-28 13:53:13 -04:00
sd
settings settings: API for get storage instance used 2022-08-02 15:15:10 +02:00
shell shell: add function checking shell readiness. 2022-09-06 12:36:01 +02:00
stats
storage storage/flash_map: Deprecate FLASH_AREA_ macros 2022-09-30 07:44:49 -05:00
sys includes: prevent warnings (Z_CBPRINTF_ARG_SIZE shadows variables) 2022-09-26 09:43:28 -05:00
task_wdt
timing
toolchain toolchain/gcc: Don't use no_sanitize("address") with gcc 2022-09-15 16:23:11 +00:00
tracing tracing: ctf: add timer support 2022-08-31 16:04:01 -04:00
usb usb: remove deprecated headers and macros 2022-07-08 11:58:08 +02:00
xen everywhere: Fix legacy include paths 2022-07-18 16:16:47 +00:00
cache.h arch: Rework cache-related Kconfig symbols 2022-08-18 11:30:49 +00:00
device.h device: remove duplicate Z_DEVICE_STATE_DEFINE macro definition 2022-09-28 13:54:10 -05:00
devicetree.h devicetree: add DT(_INST)_FOREACH_PROP_ELEM_SEP(_VARGS) 2022-10-03 10:11:18 +02:00
exc_handle.h
fatal.h
init.h cmake: Update CONFIG_ASAN support 2022-08-19 08:30:01 +02:00
irq_nextlevel.h
irq_offload.h
irq.h doxygen: remove redundant usages of def 2022-08-09 12:29:28 +02:00
kernel_includes.h
kernel_structs.h
kernel_version.h
kernel.h kernel: Remove stale references to memory pool API 2022-09-28 14:24:34 +00:00
shared_irq.h
smf.h includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
spinlock.h
sw_isr_table.h arch: Use a common place for z_irq_spurious 2022-07-07 15:24:39 -04:00
sys_clock.h sys_clock: define NSEC_PER_MSEC 2022-09-01 16:29:25 -04:00
syscall_handler.h
syscall.h
timeout_q.h
toolchain.h cmake: Update CONFIG_ASAN support 2022-08-19 08:30:01 +02:00
types.h include: types: remove ulong_t 2022-09-06 18:16:33 +02:00
wait_q.h
zephyr.h includes: deprecate <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00