1 /*
2  * Copyright 2021-2024 NXP
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef CANEXCEL_IP_IRQ_H_
8 #define CANEXCEL_IP_IRQ_H_
9 
10 /**
11 *   @file CanEXCEL_Ip_Irq.h
12 *
13 *   @addtogroup CanEXCEL
14 *   @{
15 */
16 
17 #ifdef __cplusplus
18 extern "C"{
19 #endif
20 
21 /*==================================================================================================
22 *                                        INCLUDE FILES
23 * 1) system and project includes
24 * 2) needed interfaces from external units
25 * 3) internal and external interfaces from this unit
26 ==================================================================================================*/
27 #include "CanEXCEL_Ip.h"
28 
29 /*==================================================================================================
30 *                              SOURCE FILE VERSION INFORMATION
31 ==================================================================================================*/
32 #define CANEXCEL_IP_IRQ_VENDOR_ID_H                      43
33 #define CANEXCEL_IP_IRQ_AR_RELEASE_MAJOR_VERSION_H       4
34 #define CANEXCEL_IP_IRQ_AR_RELEASE_MINOR_VERSION_H       7
35 #define CANEXCEL_IP_IRQ_AR_RELEASE_REVISION_VERSION_H    0
36 #define CANEXCEL_IP_IRQ_SW_MAJOR_VERSION_H               2
37 #define CANEXCEL_IP_IRQ_SW_MINOR_VERSION_H               0
38 #define CANEXCEL_IP_IRQ_SW_PATCH_VERSION_H               0
39 /*==================================================================================================
40 *                                     FILE VERSION CHECKS
41 ==================================================================================================*/
42 /* Check if current file and CanEXCEL_Ip.h are of the same vendor */
43 #if (CANEXCEL_IP_IRQ_VENDOR_ID_H != CANEXCEL_IP_VENDOR_ID_H)
44     #error "CanEXCEL_Ip_Irq.h and CanEXCEL_Ip.h have different vendor ids"
45 #endif
46 /* Check if current file and CanEXCEL_Ip.h are of the same Autosar version */
47 #if ((CANEXCEL_IP_IRQ_AR_RELEASE_MAJOR_VERSION_H    != CANEXCEL_IP_AR_RELEASE_MAJOR_VERSION_H) || \
48      (CANEXCEL_IP_IRQ_AR_RELEASE_MINOR_VERSION_H    != CANEXCEL_IP_AR_RELEASE_MINOR_VERSION_H) || \
49      (CANEXCEL_IP_IRQ_AR_RELEASE_REVISION_VERSION_H != CANEXCEL_IP_AR_RELEASE_REVISION_VERSION_H) \
50 )
51     #error "AutoSar Version Numbers of CanEXCEL_Ip_Irq.h and CanEXCEL_Ip.h are different"
52 #endif
53 /* Check if current file and CanEXCEL_Ip_Cfg.h are of the same Software version */
54 #if ((CANEXCEL_IP_IRQ_SW_MAJOR_VERSION_H != CANEXCEL_IP_SW_MAJOR_VERSION_H) || \
55      (CANEXCEL_IP_IRQ_SW_MINOR_VERSION_H != CANEXCEL_IP_SW_MINOR_VERSION_H) || \
56      (CANEXCEL_IP_IRQ_SW_PATCH_VERSION_H != CANEXCEL_IP_SW_PATCH_VERSION_H) \
57 )
58     #error "Software Version Numbers of CanEXCEL_Ip_Irq.h and CanEXCEL_Ip.h are different"
59 #endif
60 
61 /*==================================================================================================
62 *                                      DEFINES AND MACROS
63 ==================================================================================================*/
64 
65 #define CAN_43_CANEXCEL_START_SEC_CODE
66 #include "Can_43_CANEXCEL_MemMap.h"
67 ISR(CANXL0_RX_TX_DATA_IRQHandler);
68 ISR(CANXL0_INT_ERROR_IRQHandler);
69 
70 #if (CANXL_SIC_INSTANCE_COUNT > 1U)
71 ISR(CANXL1_RX_TX_DATA_IRQHandler);
72 ISR(CANXL1_INT_ERROR_IRQHandler);
73 #endif /* (CANXL_SIC_INSTANCE_COUNT > 1U) */
74 
75 #if (CANXL_SIC_INSTANCE_COUNT > 2U)
76 ISR(CANXL2_RX_TX_DATA_IRQHandler);
77 ISR(CANXL2_INT_ERROR_IRQHandler);
78 #endif /* (CANXL_SIC_INSTANCE_COUNT > 2U) */
79 
80 #if (CANXL_SIC_INSTANCE_COUNT > 3U)
81 ISR(CANXL3_RX_TX_DATA_IRQHandler);
82 ISR(CANXL3_INT_ERROR_IRQHandler);
83 #endif /* (CANXL_SIC_INSTANCE_COUNT > 3U) */
84 
85 
86 #define CAN_43_CANEXCEL_STOP_SEC_CODE
87 #include "Can_43_CANEXCEL_MemMap.h"
88 
89 #ifdef __cplusplus
90 }
91 #endif
92 
93 /** @} */
94 
95 #endif /* CANEXCEL_IP_IRQ_H_ */
96