Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
mbox.h
Go to the documentation of this file.
1
5
6/*
7 * Copyright (c) 2022 Carlo Caione <ccaione@baylibre.com>
8 *
9 * SPDX-License-Identifier: Apache-2.0
10 */
11
12#ifndef ZEPHYR_INCLUDE_DEVICETREE_MBOX_H_
13#define ZEPHYR_INCLUDE_DEVICETREE_MBOX_H_
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
25
53#define DT_MBOX_CTLR_BY_NAME(node_id, name) \
54 DT_PHANDLE_BY_NAME(node_id, mboxes, name)
55
90#define DT_MBOX_CHANNEL_BY_NAME(node_id, name) \
91 DT_PHA_BY_NAME_OR(node_id, mboxes, name, channel, 0)
92
96
97#ifdef __cplusplus
98}
99#endif
100
101#endif /* ZEPHYR_INCLUDE_DEVICETREE_MBOX_H_ */