MCUSW
Can_Irq.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 
70 #ifndef CAN_IRQ_H_
71 #define CAN_IRQ_H_
72 /* ========================================================================== */
73 /* Include Files */
74 /* ========================================================================== */
75 
76 #include "Can.h"
77 
78 
79 #ifdef __cplusplus
80 extern "C"
81 {
82 #endif
83 
84 /* ========================================================================== */
85 /* Macros & Typedefs */
86 /* ========================================================================== */
87 
95 #define CAN_ISR_VOID (0x00U)
96 
97 #define CAN_ISR_CAT1 (0x01U)
98 
99 #define CAN_ISR_CAT2 (0x02U)
100 /* @} */
101 
102 
103 /* ========================================================================== */
104 /* Function Prototypes */
105 /* ========================================================================== */
126 #if defined (CAN_CONTROLLER_MCU_MCAN0)
127 #if (CAN_ISR_TYPE == CAN_ISR_CAT1 || \
128  CAN_ISR_TYPE == CAN_ISR_VOID)
129  FUNC(void, CAN_CODE) Can_0_Int0ISR(void);
130 
131 #elif (CAN_ISR_TYPE == CAN_ISR_CAT2)
132  ISR(Can_0_Int0ISR);
133 #endif /* ((CAN_ISR_TYPE == CAN_ISR_CAT1).... */
134 #endif
135 
156 #if defined (CAN_CONTROLLER_MCU_MCAN1)
157 #if (CAN_ISR_TYPE == CAN_ISR_CAT1 || \
158  CAN_ISR_TYPE == CAN_ISR_VOID)
159  FUNC(void, CAN_CODE) Can_1_Int0ISR(void);
160 
161 #elif (CAN_ISR_TYPE == CAN_ISR_CAT2)
162  ISR(Can_1_Int0ISR);
163 #endif /* ((CAN_ISR_TYPE == CAN_ISR_CAT1).... */
164 #endif
165 
166 #if defined (SOC_J721E)
167 
188 #if defined (CAN_CONTROLLER_MCAN0)
189 #if (CAN_ISR_TYPE == CAN_ISR_CAT1 || \
190  CAN_ISR_TYPE == CAN_ISR_VOID)
191  void Can_2_Int0ISR(void);
192 #else
193  ISR(Can_2_Int0ISR);
194 #endif /* ((CAN_ISR_TYPE == CAN_ISR_CAT1).... */
195 #endif /* #if defined (CAN_CONTROLLER_MCAN0) */
196 
217 #if defined (CAN_CONTROLLER_MCAN1)
218 #if (CAN_ISR_TYPE == CAN_ISR_CAT1 || \
219  CAN_ISR_TYPE == CAN_ISR_VOID)
220  void Can_3_Int0ISR(void);
221 #else
222  ISR(Can_3_Int0ISR);
223 #endif /* ((CAN_ISR_TYPE == CAN_ISR_CAT1).... */
224 #endif /* #if defined (CAN_CONTROLLER_MCAN1) */
225 
246 #if defined (CAN_CONTROLLER_MCAN2)
247 #if (CAN_ISR_TYPE == CAN_ISR_CAT1 || \
248  CAN_ISR_TYPE == CAN_ISR_VOID)
249  void Can_4_Int0ISR(void);
250 #else
251  ISR(Can_4_Int0ISR);
252 #endif /* ((CAN_ISR_TYPE == CAN_ISR_CAT1).... */
253 #endif /* #if defined (CAN_CONTROLLER_MCAN2) */
254 
275 #if defined (CAN_CONTROLLER_MCAN3)
276 #if (CAN_ISR_TYPE == CAN_ISR_CAT1 || \
277  CAN_ISR_TYPE == CAN_ISR_VOID)
278  void Can_5_Int0ISR(void);
279 #else
280  ISR(Can_5_Int0ISR);
281 #endif /* ((CAN_ISR_TYPE == CAN_ISR_CAT1).... */
282 #endif /* #if defined (CAN_CONTROLLER_MCAN3) */
283 
304 #if defined (CAN_CONTROLLER_MCAN4)
305 #if (CAN_ISR_TYPE == CAN_ISR_CAT1 || \
306  CAN_ISR_TYPE == CAN_ISR_VOID)
307  void Can_6_Int0ISR(void);
308 #else
309  ISR(Can_6_Int0ISR);
310 #endif /* ((CAN_ISR_TYPE == CAN_ISR_CAT1).... */
311 #endif /* #if defined (CAN_CONTROLLER_MCAN4) */
312 
333 #if defined (CAN_CONTROLLER_MCAN5)
334 #if (CAN_ISR_TYPE == CAN_ISR_CAT1 || \
335  CAN_ISR_TYPE == CAN_ISR_VOID)
336  void Can_7_Int0ISR(void);
337 #else
338  ISR(Can_7_Int0ISR);
339 #endif /* ((CAN_ISR_TYPE == CAN_ISR_CAT1).... */
340 #endif /* #if defined (CAN_CONTROLLER_MCAN5) */
341 
362 #if defined (CAN_CONTROLLER_MCAN6)
363 #if (CAN_ISR_TYPE == CAN_ISR_CAT1 || \
364  CAN_ISR_TYPE == CAN_ISR_VOID)
365  void Can_8_Int0ISR(void);
366 #else
367  ISR(Can_8_Int0ISR);
368 #endif /* ((CAN_ISR_TYPE == CAN_ISR_CAT1).... */
369 #endif /* #if defined (CAN_CONTROLLER_MCAN6) */
370 
391 #if defined (CAN_CONTROLLER_MCAN7)
392 #if (CAN_ISR_TYPE == CAN_ISR_CAT1 || \
393  CAN_ISR_TYPE == CAN_ISR_VOID)
394  void Can_9_Int0ISR(void);
395 #else
396  ISR(Can_9_Int0ISR);
397 #endif /* ((CAN_ISR_TYPE == CAN_ISR_CAT1).... */
398 #endif /* #if defined (CAN_CONTROLLER_MCAN7) */
399 
420 #if defined (CAN_CONTROLLER_MCAN8)
421 #if (CAN_ISR_TYPE == CAN_ISR_CAT1 || \
422  CAN_ISR_TYPE == CAN_ISR_VOID)
423  void Can_10_Int0ISR(void);
424 #else
425  ISR(Can_10_Int0ISR);
426 #endif /* ((CAN_ISR_TYPE == CAN_ISR_CAT1).... */
427 #endif /* #if defined (CAN_CONTROLLER_MCAN8) */
428 
449 #if defined (CAN_CONTROLLER_MCAN9)
450 #if (CAN_ISR_TYPE == CAN_ISR_CAT1 || \
451  CAN_ISR_TYPE == CAN_ISR_VOID)
452  void Can_11_Int0ISR(void);
453 #else
454  ISR(Can_11_Int0ISR);
455 #endif /* ((CAN_ISR_TYPE == CAN_ISR_CAT1).... */
456 #endif /* #if defined (CAN_CONTROLLER_MCAN9) */
457 
478 #if defined (CAN_CONTROLLER_MCAN10)
479 #if (CAN_ISR_TYPE == CAN_ISR_CAT1 || \
480  CAN_ISR_TYPE == CAN_ISR_VOID)
481  void Can_12_Int0ISR(void);
482 #else
483  ISR(Can_12_Int0ISR);
484 #endif /* ((CAN_ISR_TYPE == CAN_ISR_CAT1).... */
485 #endif /* #if defined (CAN_CONTROLLER_MCAN10) */
486 
507 #if defined (CAN_CONTROLLER_MCAN11)
508 #if (CAN_ISR_TYPE == CAN_ISR_CAT1 || \
509  CAN_ISR_TYPE == CAN_ISR_VOID)
510  void Can_13_Int0ISR(void);
511 #else
512  ISR(Can_13_Int0ISR);
513 #endif /* ((CAN_ISR_TYPE == CAN_ISR_CAT1).... */
514 #endif /* #if defined (CAN_CONTROLLER_MCAN11) */
515 
536 #if defined (CAN_CONTROLLER_MCAN12)
537 #if (CAN_ISR_TYPE == CAN_ISR_CAT1 || \
538  CAN_ISR_TYPE == CAN_ISR_VOID)
539  void Can_14_Int0ISR(void);
540 #else
541  ISR(Can_14_Int0ISR);
542 #endif /* ((CAN_ISR_TYPE == CAN_ISR_CAT1).... */
543 #endif /* #if defined (CAN_CONTROLLER_MCAN12) */
544 
565 #if defined (CAN_CONTROLLER_MCAN13)
566 #if (CAN_ISR_TYPE == CAN_ISR_CAT1 || \
567  CAN_ISR_TYPE == CAN_ISR_VOID)
568  void Can_15_Int0ISR(void);
569 #else
570  ISR(Can_15_Int0ISR);
571 #endif /* ((CAN_ISR_TYPE == CAN_ISR_CAT1).... */
572 #endif /* #if defined (CAN_CONTROLLER_MCAN13) */
573 
574 #endif /* #if defined (SOC_J721E) */
575 
576 
577 #ifdef __cplusplus
578 }
579 #endif
580 
581 #endif /* #ifndef CAN_IRQ_H_ */
582 
583 /* @} */
584 
This file contains interface header for CAN MCAL driver.