Zephyr API Documentation
2.7.0-rc2
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
21
/*
22
* This file is currently deliberately not defining macros for some
23
* existing zephyr,foo chosen nodes, such as zephyr,sram, until there
24
* are users for them. Feel free to extend it as needed.
25
*
26
* Getting doxygen to play along with all the dts-specific ifdeffery
27
* proved too complex for DT_CHOSEN_ZEPHYR_ENTROPY_LABEL, so we document
28
* everything under a DT_DOXYGEN define.
29
*/
30
31
#ifdef DT_DOXYGEN
38
#define DT_CHOSEN_ZEPHYR_ENTROPY_LABEL ""
39
46
#define DT_CHOSEN_ZEPHYR_FLASH_CONTROLLER_LABEL ""
47
54
#define DT_CHOSEN_ZEPHYR_CAN_PRIMARY_LABEL ""
55
56
#endif
/* DT_DOXYGEN */
57
58
#if DT_NODE_HAS_PROP(DT_CHOSEN(zephyr_entropy), label)
59
#define DT_CHOSEN_ZEPHYR_ENTROPY_LABEL DT_LABEL(DT_CHOSEN(zephyr_entropy))
60
#endif
61
62
#if DT_NODE_HAS_PROP(DT_CHOSEN(zephyr_flash_controller), label)
63
#define DT_CHOSEN_ZEPHYR_FLASH_CONTROLLER_LABEL \
64
DT_LABEL(DT_CHOSEN(zephyr_flash_controller))
65
#endif
66
67
#if DT_NODE_HAS_PROP(DT_CHOSEN(zephyr_can_primary), label)
68
#define DT_CHOSEN_ZEPHYR_CAN_PRIMARY_LABEL \
69
DT_LABEL(DT_CHOSEN(zephyr_can_primary))
70
#endif
75
#endif
include
devicetree
zephyr.h
Generated on Sun Oct 9 2022 09:21:56 for Zephyr API Documentation by
1.9.4