Zephyr Project API  3.2.0
A Scalable Open Source RTOS
zephyr.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2020 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12#ifndef ZEPHYR_INCLUDE_DEVICETREE_ZEPHYR_H_
13#define ZEPHYR_INCLUDE_DEVICETREE_ZEPHYR_H_
14
15#include <zephyr/toolchain.h>
16
23/*
24 * This file is currently deliberately not defining macros for some
25 * existing zephyr,foo chosen nodes, such as zephyr,sram, until there
26 * are users for them. Feel free to extend it as needed.
27 *
28 * Getting doxygen to play along with all the dts-specific ifdeffery
29 * proved too complex for DT_CHOSEN_ZEPHYR_ENTROPY_LABEL, so we document
30 * everything under a DT_DOXYGEN define.
31 */
32
33#ifdef DT_DOXYGEN
42#define DT_CHOSEN_ZEPHYR_ENTROPY_LABEL ""
43
52#define DT_CHOSEN_ZEPHYR_FLASH_CONTROLLER_LABEL ""
53
54#endif /* DT_DOXYGEN */
55
56#if DT_NODE_HAS_PROP(DT_CHOSEN(zephyr_entropy), label)
57#define DT_CHOSEN_ZEPHYR_ENTROPY_LABEL \
58 __DEPRECATED_MACRO DT_LABEL(DT_CHOSEN(zephyr_entropy))
59#endif
60
61#if DT_NODE_HAS_PROP(DT_CHOSEN(zephyr_flash_controller), label)
62#define DT_CHOSEN_ZEPHYR_FLASH_CONTROLLER_LABEL \
63 __DEPRECATED_MACRO DT_LABEL(DT_CHOSEN(zephyr_flash_controller))
64#endif
65
70#endif
Macros to abstract toolchain specific capabilities.