MCUSW
Can_Cfg.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  /***************************************************************************
63  Project: Can431
64  Date : 2020-02-25 16:07:21
65  This file is generated by EB Tresos
66  Do not modify this file, otherwise the software may behave in unexpected way.
67 
68  *****************************************************************************/
69 
87 #ifndef CAN_CFG_H_
88 #define CAN_CFG_H_
89 
90 #include "Dem.h"
91 
92 #ifdef __cplusplus
93 extern "C" {
94 #endif
95 
96 
102 #define CAN_VARIANT_PRE_COMPILE (STD_ON)
103 
110 #define CAN_VERSION_INFO_API (STD_ON)
111 
112 #define CAN_DEV_ERROR_DETECT (STD_ON)
113 
114 #define CAN_LOOPBACK_ENABLE (STD_ON)
115 
116 #define CAN_REGISTER_READBACK_API (STD_ON)
117 
118 #define CAN_WAKEUP_FUNCTIONALITY_API (STD_OFF)
119 
120 #define CAN_MULTIPLEXED_TRANSMISSION_ENABLE (STD_ON)
121 
128 #define CAN_INIT_CONFIG_PC CanConfigSet
129 
130 
131 
132 
133 /*Requirements: MCAL-2311 */
134 #define CAN_TX_POLLING (STD_OFF)
135 
136 #define CAN_RX_POLLING (STD_OFF)
137 
138 #define CAN_BUSOFF_POLLING (STD_OFF)
139 
140 #define CAN_WAKEUP_POLLING (STD_OFF)
141 
143 /* @} */
144 
145 #define CAN_NUM_CONTROLLER (3U)
146 
148 #define CAN_NUM_MAILBOXES (9U)
149 
151 #define CAN_MAX_CONTROLLER (16U)
152 
154 #define CAN_MAX_MAILBOXES (64U)
155 
157 #define CAN_ISR_TYPE (CAN_ISR_CAT1)
158 
160 #define CLK_CAN_FD_FREQ (80U)
161 
169 #define CanConf_CanController_CanController_0 (0U)
170 #define CanConf_CanController_CanController_1 (1U)
171 #define CanConf_CanController_CanController_2 (2U)
172 /* @} */
173 
174 /* @} */
175 
177 #define CAN_CONTROLLER_MCU_MCAN0
178 
179 
180 
181 
182 
183 
184 
185 
186 
187 
188 
189 
190 
191 
192 
193 
194 
195 
196 
197 
198 
199 
201 #define CAN_CONTROLLER_MCU_MCAN1
202 
203 
204 
205 
206 
207 
208 
209 
210 
211 
212 
213 
214 
215 
216 
217 
218 
219 
220 
221 
222 
223 
225 #define CAN_CONTROLLER_MCAN0
226 
227 
228 
229 
230 
231 
232 
233 
234 
235 
236 
237 
238 
239 
240 
241 
242 
243 
244 
245 
246 
247 
248 
249 
250 
251 
252 
253 
254 
255 
256 
257 
258 
259 
260 
261 
262 
263 
264 
265 
266 
267 
268 
269 
270 
271 
272 
273 
274 
275 
276 
277 
278 
279 
280 
281 
282 
283 
284 
285 
286 
287 
288 
289 
290 
291 
292 
293 
294 
295 
296 
297 
298 
299 
300 
301 
302 
303 
304 
305 
306 
314 #define CanConf_CanHardwareObject_CanHardwareObject_0 (0U)
315 #define CAN_HTRH_0 (CanConf_CanHardwareObject_CanHardwareObject_0)
316 
317 #define CanConf_CanHardwareObject_CanHardwareObject_1 (1U)
318 #define CAN_HTRH_1 (CanConf_CanHardwareObject_CanHardwareObject_1)
319 
320 #define CanConf_CanHardwareObject_CanHardwareObject_2 (2U)
321 #define CAN_HTRH_2 (CanConf_CanHardwareObject_CanHardwareObject_2)
322 
323 #define CanConf_CanHardwareObject_CanHardwareObject_3 (3U)
324 #define CAN_HTRH_3 (CanConf_CanHardwareObject_CanHardwareObject_3)
325 
326 #define CanConf_CanHardwareObject_CanHardwareObject_4 (4U)
327 #define CAN_HTRH_4 (CanConf_CanHardwareObject_CanHardwareObject_4)
328 
329 #define CanConf_CanHardwareObject_CanHardwareObject_5 (5U)
330 #define CAN_HTRH_5 (CanConf_CanHardwareObject_CanHardwareObject_5)
331 
332 #define CanConf_CanHardwareObject_CanHardwareObject_6 (6U)
333 #define CAN_HTRH_6 (CanConf_CanHardwareObject_CanHardwareObject_6)
334 
335 #define CanConf_CanHardwareObject_CanHardwareObject_7 (7U)
336 #define CAN_HTRH_7 (CanConf_CanHardwareObject_CanHardwareObject_7)
337 
338 #define CanConf_CanHardwareObject_CanHardwareObject_8 (8U)
339 #define CAN_HTRH_8 (CanConf_CanHardwareObject_CanHardwareObject_8)
340 
341 /* @} */
342 
343 /* @} */
344 
346 #define CAN_OS_COUNTER_ID ((CounterType)OsCounter_0)
347 
353 #define CAN_TIMEOUT_DURATION (10000U)
354 
361 #define DemConf_DemEventParameter_CAN_DEM_NO_EVENT (0xFFFFU)
362 #define CAN_DEM_NO_EVENT DemConf_DemEventParameter_CAN_DEM_NO_EVENT
363 
364 #ifndef CAN_E_HARDWARE_ERROR
365 
366 #define CAN_E_HARDWARE_ERROR (DemConf_DemEventParameter_CAN_E_HARDWARE_ERROR)
367 #endif
368 
369 /* @} */
370 
371 /* ========================================================================== */
372 /* Structures and Enums */
373 /* ========================================================================== */
374 
376 extern const struct Can_ConfigType_s CanConfigSet;
377 
378 
380 extern const struct Can_ControllerStruct_PC CanConfigSet_PC_CanController_0;
381 
383 extern const struct Can_ControllerStruct_PC CanConfigSet_PC_CanController_1;
384 
386 extern const struct Can_ControllerStruct_PC CanConfigSet_PC_CanController_2;
387 
388 
390 extern const struct Can_ControllerStruct_PC
392 
394 extern const struct Can_MailboxStruct_PC
396 
397 
398 
399 #ifdef __cplusplus
400 }
401 #endif
402 
403 #endif /*CAN_CFG_H__*/
404 
405 /* @} */
406 /**********************************************************************************************************************
407  * END OF FILE: Can_Cfg.h
408  *********************************************************************************************************************/
const struct Can_ControllerStruct_PC CanConfigSet_PC_CanController_1
CAN Controller Configuration Pre Compile struct declaration.
#define CAN_NUM_CONTROLLER
Definition: Can_Cfg.h:145
#define CAN_NUM_MAILBOXES
Definition: Can_Cfg.h:148
const struct Can_ControllerStruct_PC CanConfigSet_PC_CanController_0
CAN Controller Configuration Pre Compile struct declaration.
const struct Can_ConfigType_s CanConfigSet
CAN Configuration struct declaration.
const struct Can_ControllerStruct_PC * CanConfigSet_CanController_List_PC[CAN_NUM_CONTROLLER]
CAN Controller Pre Compile Configuration List.
const struct Can_ControllerStruct_PC CanConfigSet_PC_CanController_2
CAN Controller Configuration Pre Compile struct declaration.
const struct Can_MailboxStruct_PC * CanConfigSet_CanHardwareObject_List_PC[CAN_NUM_MAILBOXES]
CAN Mailbox Pre Compile Configuration List.