nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
nrf_rpc_uart.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef NRF_RPC_UART_H_
8#define NRF_RPC_UART_H_
9
10#include <nrf_rpc.h>
11#include <nrf_rpc_tr.h>
12#include <zephyr/kernel.h>
13#include <zephyr/device.h>
14#include <zephyr/sys/ring_buffer.h>
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
32#define NRF_RPC_UART_TRANSPORT(node_id) _CONCAT(nrf_rpc_tr_, DT_DEP_ORD(node_id))
33
38#define _NRF_RPC_UART_TRANSPORT_DECLARE(node_id) \
39 extern const struct nrf_rpc_tr NRF_RPC_UART_TRANSPORT(node_id);
40
41DT_FOREACH_STATUS_OKAY(nordic_nrf_uarte, _NRF_RPC_UART_TRANSPORT_DECLARE);
42
43#ifdef __cplusplus
44}
45#endif
46
47#endif /* NRF_RPC_UART_H_ */
DT_FOREACH_STATUS_OKAY(nordic_nrf_uarte, _NRF_RPC_UART_TRANSPORT_DECLARE)