RPMsg-Lite User's Guide
Rev. v5.3.0
NXP Semiconductors
Loading...
Searching...
No Matches
rpmsg_default_config.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2014, Mentor Graphics Corporation
3
* Copyright (c) 2015 Xilinx, Inc.
4
* Copyright (c) 2016 Freescale Semiconductor, Inc.
5
* Copyright 2016-2025 NXP
6
* All rights reserved.
7
*
8
* Redistribution and use in source and binary forms, with or without
9
* modification, are permitted provided that the following conditions are met:
10
*
11
* 1. Redistributions of source code must retain the above copyright notice,
12
* this list of conditions and the following disclaimer.
13
* 2. Redistributions in binary form must reproduce the above copyright notice,
14
* this list of conditions and the following disclaimer in the documentation
15
* and/or other materials provided with the distribution.
16
* 3. Neither the name of the copyright holder nor the names of its
17
* contributors may be used to endorse or promote products derived from this
18
* software without specific prior written permission.
19
*
20
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
24
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30
* POSSIBILITY OF SUCH DAMAGE.
31
*/
32
33
#ifndef RPMSG_DEFAULT_CONFIG_H_
34
#define RPMSG_DEFAULT_CONFIG_H_
35
41
#define RL_USE_CUSTOM_CONFIG (1)
42
43
#if RL_USE_CUSTOM_CONFIG
44
#include "rpmsg_config.h"
45
#endif
46
54
55
60
#ifndef RL_MS_PER_INTERVAL
61
#define RL_MS_PER_INTERVAL (1)
62
#endif
63
73
#ifndef RL_ALLOW_CUSTOM_SHMEM_CONFIG
74
#define RL_ALLOW_CUSTOM_SHMEM_CONFIG (0)
75
#endif
76
77
#if !(defined(RL_ALLOW_CUSTOM_SHMEM_CONFIG) && (RL_ALLOW_CUSTOM_SHMEM_CONFIG == 1))
85
#ifndef RL_BUFFER_PAYLOAD_SIZE
86
#define RL_BUFFER_PAYLOAD_SIZE (496U)
87
#endif
88
97
#ifndef RL_BUFFER_COUNT
98
#define RL_BUFFER_COUNT (2U)
99
#endif
100
#endif
/* !(defined(RL_ALLOW_CUSTOM_SHMEM_CONFIG) && (RL_ALLOW_CUSTOM_SHMEM_CONFIG == 1))*/
101
106
#ifndef RL_API_HAS_ZEROCOPY
107
#define RL_API_HAS_ZEROCOPY (1)
108
#endif
109
114
#ifndef RL_USE_STATIC_API
115
#define RL_USE_STATIC_API (0)
116
#endif
117
123
#ifndef RL_CLEAR_USED_BUFFERS
124
#define RL_CLEAR_USED_BUFFERS (0)
125
#endif
126
133
#ifndef RL_USE_DCACHE
134
#define RL_USE_DCACHE (0)
135
#endif
136
143
#ifndef RL_USE_MCMGR_IPC_ISR_HANDLER
144
#define RL_USE_MCMGR_IPC_ISR_HANDLER (0)
145
#endif
146
152
#ifndef RL_USE_ENVIRONMENT_CONTEXT
153
#define RL_USE_ENVIRONMENT_CONTEXT (0)
154
#endif
155
162
#ifndef RL_DEBUG_CHECK_BUFFERS
163
#define RL_DEBUG_CHECK_BUFFERS (0)
164
#endif
165
173
#ifndef RL_ALLOW_CONSUMED_BUFFERS_NOTIFICATION
174
#define RL_ALLOW_CONSUMED_BUFFERS_NOTIFICATION (0)
175
#endif
176
180
/*
181
* $Line Coverage Justification$
182
* RL_HANG not reachable in unit tests when own RL_ASSERT implementation used.
183
*/
184
/* GCOVR_EXCL_START */
185
static
inline
void
RL_HANG(
void
)
186
{
187
for
(;;)
188
{
189
}
190
}
191
/* GCOVR_EXCL_STOP */
192
197
201
#ifndef RL_ASSERT
202
#define RL_ASSERT_BOOL(b) \
203
do \
204
{ \
205
if (!(b)) \
206
{ \
207
RL_HANG(); \
208
} \
209
} while (0 == 1);
210
#define RL_ASSERT(x) RL_ASSERT_BOOL((int32_t)(x) != 0)
211
212
#endif
213
214
#endif
/* RPMSG_DEFAULT_CONFIG_H_ */
Copyright 2016-2025 NXP Semiconductors. All rights reserved.