Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
 4.1.99
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
display.h
Go to the documentation of this file.
1
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
59#define DT_ZEPHYR_DISPLAY(idx) \
60 DT_PHANDLE_BY_IDX(DT_COMPAT_GET_ANY_STATUS_OKAY(zephyr_displays), displays, idx)
61
68#define DT_ZEPHYR_DISPLAYS_COUNT \
69 COND_CODE_1(DT_HAS_COMPAT_STATUS_OKAY(zephyr_displays), \
70 (DT_PROP_LEN(DT_COMPAT_GET_ANY_STATUS_OKAY(zephyr_displays), displays)), \
71 (DT_HAS_CHOSEN(zephyr_display)))
76#ifdef __cplusplus
77}
78#endif
79
80#endif /* ZEPHYR_INCLUDE_DEVICETREE_DMAS_H_ */