Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
ordinals.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2020 Nordic Semiconductor ASA
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
6#ifndef ZEPHYR_INCLUDE_DEVICETREE_ORDINALS_H_
7#define ZEPHYR_INCLUDE_DEVICETREE_ORDINALS_H_
8
25#define DT_DEP_ORD(node_id) DT_CAT(node_id, _ORD)
26
44#define DT_REQUIRES_DEP_ORDS(node_id) DT_CAT(node_id, _REQUIRES_ORDS)
45
61#define DT_SUPPORTS_DEP_ORDS(node_id) DT_CAT(node_id, _SUPPORTS_ORDS)
62
71#define DT_INST_DEP_ORD(inst) DT_DEP_ORD(DT_DRV_INST(inst))
72
83#define DT_INST_REQUIRES_DEP_ORDS(inst) DT_REQUIRES_DEP_ORDS(DT_DRV_INST(inst))
84
95#define DT_INST_SUPPORTS_DEP_ORDS(inst) DT_SUPPORTS_DEP_ORDS(DT_DRV_INST(inst))
96
101#endif /* ZEPHYR_INCLUDE_DEVICETREE_ORDINALS_H_ */