1 /* 2 * Copyright 2021-2023 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 1 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_START_SEC_CODE 66 #include "Can_MemMap.h" 67 68 void Canexcel_Ip_RxTxIRQHandler(uint8 instance); 69 void Canexcel_Ip_MruIRQHandler(uint8 instance); 70 void Canexcel_Ip_ErrIRQHandler(uint8 instance); 71 72 #define CAN_STOP_SEC_CODE 73 #include "Can_MemMap.h" 74 75 #ifdef __cplusplus 76 } 77 #endif 78 79 /** @} */ 80 81 #endif /* CANEXCEL_IP_IRQ_H_ */ 82