Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
memory.h
Go to the documentation of this file.
1
6/*
7 * Copyright (c) 2021 Carlo Caione <ccaione@baylibre.com>
8 *
9 * SPDX-License-Identifier: Apache-2.0
10 */
11
12#ifndef ZEPHYR_INCLUDE_DEVICETREE_MEMORY_H_
13#define ZEPHYR_INCLUDE_DEVICETREE_MEMORY_H_
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
45#define DT_RESERVED_MEM_GET_PTR(node_id) _DT_RESERVED_START(node_id)
46
67#define DT_RESERVED_MEM_GET_SIZE(node_id) DT_REG_SIZE(node_id)
68
97#define DT_RESERVED_MEM_GET_PTR_BY_PHANDLE(node_id, ph) \
98 DT_RESERVED_MEM_GET_PTR(DT_PHANDLE(node_id, ph))
99
128#define DT_RESERVED_MEM_GET_SIZE_BY_PHANDLE(node_id, ph) \
129 DT_RESERVED_MEM_GET_SIZE(DT_PHANDLE(node_id, ph))
130
135#ifdef __cplusplus
136}
137#endif
138
139#endif /* ZEPHYR_INCLUDE_DEVICETREE_MEMORY_H_ */