Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
mbox.h
Go to the documentation of this file.
1
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
52#define DT_MBOX_CTLR_BY_NAME(node_id, name) \
53 DT_PHANDLE_BY_NAME(node_id, mboxes, name)
54
89#define DT_MBOX_CHANNEL_BY_NAME(node_id, name) \
90 DT_PHA_BY_NAME_OR(node_id, mboxes, name, channel, 0)
91
96#ifdef __cplusplus
97}
98#endif
99
100#endif /* ZEPHYR_INCLUDE_DEVICETREE_MBOX_H_ */