Zephyr API Documentation 4.0.0-rc3
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
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
32#define DT_DEP_ORD_STR_SORTABLE(node_id) DT_CAT(node_id, _ORD_STR_SORTABLE)
33
51#define DT_REQUIRES_DEP_ORDS(node_id) DT_CAT(node_id, _REQUIRES_ORDS)
52
68#define DT_SUPPORTS_DEP_ORDS(node_id) DT_CAT(node_id, _SUPPORTS_ORDS)
69
78#define DT_INST_DEP_ORD(inst) DT_DEP_ORD(DT_DRV_INST(inst))
79
90#define DT_INST_REQUIRES_DEP_ORDS(inst) DT_REQUIRES_DEP_ORDS(DT_DRV_INST(inst))
91
102#define DT_INST_SUPPORTS_DEP_ORDS(inst) DT_SUPPORTS_DEP_ORDS(DT_DRV_INST(inst))
103
108#endif /* ZEPHYR_INCLUDE_DEVICETREE_ORDINALS_H_ */