Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
display.h
Go to the documentation of this file.
1
5
6/*
7 * Copyright (c) 2025 Abderrahmane JARMOUNI
8 *
9 * SPDX-License-Identifier: Apache-2.0
10 */
11
12#ifndef ZEPHYR_INCLUDE_DEVICETREE_DISPLAY_H_
13#define ZEPHYR_INCLUDE_DEVICETREE_DISPLAY_H_
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
25
60#define DT_ZEPHYR_DISPLAY(idx) \
61 DT_PHANDLE_BY_IDX(DT_COMPAT_GET_ANY_STATUS_OKAY(zephyr_displays), displays, idx)
62
69#define DT_ZEPHYR_DISPLAYS_COUNT \
70 COND_CODE_1(DT_HAS_COMPAT_STATUS_OKAY(zephyr_displays), \
71 (DT_PROP_LEN(DT_COMPAT_GET_ANY_STATUS_OKAY(zephyr_displays), displays)), \
72 (DT_HAS_CHOSEN(zephyr_display)))
73
76
77#ifdef __cplusplus
78}
79#endif
80
81#endif /* ZEPHYR_INCLUDE_DEVICETREE_DMAS_H_ */