MCUSW
Cdd_IpcCfg.h
Go to the documentation of this file.
1 /*
2 *
3 * Copyright (c) 2019 Texas Instruments Incorporated
4 *
5 * All rights reserved not granted herein.
6 *
7 * Limited License.
8 *
9 * Texas Instruments Incorporated grants a world-wide, royalty-free, non-exclusive
10 * license under copyrights and patents it now or hereafter owns or controls to make,
11 * have made, use, import, offer to sell and sell ("Utilize") this software subject to the
12 * terms herein. With respect to the foregoing patent license, such license is granted
13 * solely to the extent that any such patent is necessary to Utilize the software alone.
14 * The patent license shall not apply to any combinations which include this software,
15 * other than combinations with devices manufactured by or for TI ("TI Devices").
16 * No hardware patent is licensed hereunder.
17 *
18 * Redistributions must preserve existing copyright notices and reproduce this license
19 * (including the above copyright notice and the disclaimer and (if applicable) source
20 * code license limitations below) in the documentation and/or other materials provided
21 * with the distribution
22 *
23 * Redistribution and use in binary form, without modification, are permitted provided
24 * that the following conditions are met:
25 *
26 * * No reverse engineering, decompilation, or disassembly of this software is
27 * permitted with respect to any software provided in binary form.
28 *
29 * * any redistribution and use are licensed by TI for use only with TI Devices.
30 *
31 * * Nothing shall obligate TI to provide you with source code for the software
32 * licensed and provided to you in object code.
33 *
34 * If software source code is provided to you, modification and redistribution of the
35 * source code are permitted provided that the following conditions are met:
36 *
37 * * any redistribution and use of the source code, including any resulting derivative
38 * works, are licensed by TI for use only with TI Devices.
39 *
40 * * any redistribution and use of any object code compiled from the source code
41 * and any resulting derivative works, are licensed by TI for use only with TI Devices.
42 *
43 * Neither the name of Texas Instruments Incorporated nor the names of its suppliers
44 *
45 * may be used to endorse or promote products derived from this software without
46 * specific prior written permission.
47 *
48 * DISCLAIMER.
49 *
50 * THIS SOFTWARE IS PROVIDED BY TI AND TI'S LICENSORS "AS IS" AND ANY EXPRESS
51 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
52 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
53 * IN NO EVENT SHALL TI AND TI'S LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT,
54 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
55 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
56 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
57 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
58 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
59 * OF THE POSSIBILITY OF SUCH DAMAGE.
60 *
61 */
62 
71 /******************************************************************************
72  Project : CddIpc_431
73  Date : 2020-04-24 17:36:00
74  SW Ver : 1.0.0
75  Module Rele Ver : AUTOSAR 4.3.1 0
76 
77  This file is generated by EB Tresos
78  Do not modify this file,otherwise the software may behave in unexpected way.
79 ******************************************************************************/
80 
88 #ifndef CDD_IPC_CFG_H_
89 #define CDD_IPC_CFG_H_
90 /* Generic requirements covered mapping */
91 /*
92  * Design : DES_CDD_IPC_020
93  */
94 /*
95  * Requirements : MCAL-3698
96  */
97 
98 /* ========================================================================== */
99 /* Include Files */
100 /* ========================================================================== */
101 
102 #include "Dem.h"
103 #include "Os.h"
104 
105 
106 #ifdef __cplusplus
107 extern "C" {
108 #endif
109 
110 /* ========================================================================== */
111 /* Macros & Typedefs */
112 /* ========================================================================== */
113 /*
114  * Design : DES_CDD_IPC_004, DES_CDD_IPC_002, DES_CDD_IPC_017
115  */
116 /*
117  * Requirements : MCAL-921, MCAL-3703
118  */
123 #define CDD_IPC_PRE_COMPILE_VARIANT (STD_ON)
124 /*
125  * Design : DES_CDD_IPC_012
126  */
127 /*
128  * Requirements : MCAL-3693
129  */
131 #define CDD_IPC_DEV_ERROR_DETECT (STD_ON)
132 /*
133  * Design : DES_CDD_IPC_012
134  */
135 /*
136  * Requirements : MCAL-3692
137  */
139 #define CDD_IPC_ISR_TYPE (CDD_IPC_ISR_CAT2)
140 
145 /*
146  * Design : DES_CDD_IPC_012
147  */
148 /*
149  * Requirements : MCAL-3741
150  */
152 #define CDD_IPC_VERSION_INFO_API (STD_ON)
153 /*
154  * Design : DES_CDD_IPC_012
155  */
156 /*
157  * Requirements : MCAL-3688
158  */
160 #define CDD_IPC_DEINIT_API (STD_ON)
161 /*
162  * Design : DES_CDD_IPC_012
163  */
164 /*
165  * Requirements : MCAL-3689
166  */
168 #define CDD_IPC_ANNOUNCE_API (STD_ON)
169 /*
170  * Design : DES_CDD_IPC_005, DES_CDD_IPC_012
171  */
172 /*
173  * Requirements : MCAL-3687
174  */
176 #define CDD_IPC_REGISTER_READBACK_API (STD_ON)
177 
178 /*
179  * Design : DES_CDD_IPC_040
180  */
181 /*
182  * Requirements : MCAL-4452
183  */
184 
186 #define CDD_IPC_IS_INIT_DONE_API (STD_ON)
187 
188 /*
189  * Design : DES_CDD_IPC_041
190  */
191 /*
192  * Requirements : MCAL-4453
193  */
194 
196 #define CDD_IPC_GET_MAX_MSG_SIZE_API (STD_ON)
197 
198 
199 /* @} */
200 
205 /*
206  * Design : DES_CDD_IPC_012
207  */
208 /*
209  * Requirements : MCAL-3694, MCAL-3694
210  */
212 #define CDD_IPC_OS_COUNTER_ID ((CounterType)OsCounter_0)
213 
220 /*
221  * Design : DES_CDD_IPC_020
222  */
223 /*
224  * Requirements : MCAL-3693
225  */
226 #define DemConf_DemEventParameter_CDD_IPC_DEM_NO_EVENT (0xFFFFU)
227 #define CDD_IPC_DEM_NO_EVENT DemConf_DemEventParameter_CDD_IPC_DEM_NO_EVENT
228 
229 #ifndef CDD_IPC_E_HARDWARE_ERROR
230 
231 #define CDD_IPC_E_HARDWARE_ERROR (DemConf_DemEventParameter_CDD_IPC_E_HARDWARE_ERROR)
232 #endif
233 /* @} */
234 
239 /*
240  * Design : DES_CDD_IPC_018
241  */
242 /*
243  * Requirements : MCAL-3699, MCAL-3700
244  */
245 #define CDD_IPC_CORE_MPU1_0 (0u)
246 
247 #define CDD_IPC_CORE_MCU1_0 (1U)
248 
249 #define CDD_IPC_CORE_MCU1_1 (2U)
250 
251 #define CDD_IPC_CORE_MCU2_0 (3U)
252 
253 #define CDD_IPC_CORE_MCU2_1 (4U)
254 
255 #define CDD_IPC_CORE_MCU3_0 (5U)
256 
257 #define CDD_IPC_CORE_MCU3_1 (6U)
258 
259 #define CDD_IPC_CORE_C66X_1 (7U)
260 
261 #define CDD_IPC_CORE_C66X_2 (8U)
262 
263 #define CDD_IPC_CORE_C7X_1 (9U)
264 
265 #define CDD_IPC_CORE_MPU1_1 (10U)
266 
267 #define CDD_IPC_CORE_MAX_PROCS (11U)
268 
271 #define CDD_IPC_OWN_CORE_ID (CDD_IPC_CORE_MCU1_0)
272 
273 #define CDD_IPC_REMOTE_CORE_MCU2_0_USED
274 
275 #define CDD_IPC_REMOTE_CORE_MPU1_0_USED
276 
277 #define CDD_IPC_REMOTE_CORE_MCU2_1_USED
278 
280 /* @} */
281 
282 
287 /*
288  * Design : DES_CDD_IPC_005, DES_CDD_IPC_016
289  */
290 /*
291  * Requirements : MCAL-3686,
292  */
293 #define CDD_IPC_VERTIO_OBJECT_SIZE (0x1000U)
294  /* @} */
295 
300 /*
301  * Design : DES_CDD_IPC_016
302  */
303 /*
304  * Requirements : MCAL-3686,
305  */
306 #define CddIpcConf_IpcComChanId_Cdd_IpcMpu10 (0U)
307 
308 #define CddIpcConf_IpcComChanId_Cdd_IpcMcu20 (1U)
309 
310 #define CddIpcConf_IpcComChanId_Cdd_IpcMcu21 (2U)
311 
313 /*
314  * Design : DES_CDD_IPC_016
315  */
316 /*
317  * Requirements : MCAL-3755, MCAL-3682
318  */
319 #define CDD_IPC_RPMSG_OBJ_SIZE (256U)
320 
321 #define CDD_IPC_CH_0_BUFF_SIZE ((256U * 512U) + CDD_IPC_RPMSG_OBJ_SIZE)
322 
323 #define CDD_IPC_CH_1_BUFF_SIZE ((256U * 512U) + CDD_IPC_RPMSG_OBJ_SIZE)
324 
325 #define CDD_IPC_CH_2_BUFF_SIZE ((256U * 512U) + CDD_IPC_RPMSG_OBJ_SIZE)
326 
327 #define CDD_IPC_MAX_CHANNEL_CFG (3U)
328 
330 /* @} */
331 /* ========================================================================== */
332 /* Globals Variables */
333 /* ========================================================================== */
334 /* None */
335 
336 /* ========================================================================== */
337 /* Function Declarations */
338 /* ========================================================================== */
339 /*
340  * Design : DES_CDD_IPC_002, DES_CDD_IPC_017
341  */
342 /*
343  * Requirements : MCAL-3703
344  */
345 extern const struct Cdd_IpcConfigType_s CddIpcConfiguraions_PC;
346 
351 extern const struct Cdd_IpcChannelBufType_s
353 
358 /*
359  * Design : DES_CDD_IPC_012, DES_CDD_IPC_026
360  */
361 /*
362  * Requirements : MCAL-3701, MCAL-3691
363  */
364 extern void Cdd_IpcNewMessageNotify(uint32 comId);
365 
366 #define CDD_IPC_NEW_MSG_NTFY_FXN Cdd_IpcNewMessageNotify
367 
368 #if (STD_ON == CDD_IPC_ANNOUNCE_API)
369 
374 /*
375  * Design : DES_CDD_IPC_039
376  */
377 /*
378  * Requirements : MCAL-4067, MCAL-4066
379  */
380 extern void Cdd_IpcNewCtrlMessageNotify(uint32 remoteProcId);
381 
382 #define CDD_IPC_NEW_CTRL_MSG_NTFY_FXN Cdd_IpcNewCtrlMessageNotify
383 
384 #endif /* STD_ON == CDD_IPC_ANNOUNCE_API */
385 
386 /*
387  * Design : DES_CDD_IPC_013
388  */
389 /*
390  * Requirements : MCAL-3674
391  */
397 
398 #ifdef __cplusplus
399 }
400 #endif
401 
402 #endif /* #ifndef CDD_IPC_CFG_H_ */
403 
404 /* @} */
405 
#define CDD_IPC_VERTIO_OBJECT_SIZE
Definition: Cdd_IpcCfg.h:293
#define CDD_IPC_MAX_CHANNEL_CFG
Definition: Cdd_IpcCfg.h:327
void Cdd_IpcNewMessageNotify(uint32 comId)
New Message notification function.
const struct Cdd_IpcChannelBufType_s Cdd_IpcCommChanBufferPtr[CDD_IPC_MAX_CHANNEL_CFG]
A array of buffer pointers that describe memory allocated to local communication channels.
const struct Cdd_IpcConfigType_s CddIpcConfiguraions_PC
void Cdd_IpcNewCtrlMessageNotify(uint32 remoteProcId)
New Control Message notification function.
uint8 Cdd_IpcDrvVertIoObj[CDD_IPC_VERTIO_OBJECT_SIZE]
Communication Channels configured.