123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- /*==================================================================================================
- * Project : RTD AUTOSAR 4.4
- * Platform : CORTEXM
- * Peripheral : FLEXCAN
- * Dependencies :
- *
- * Autosar Version : 4.4.0
- * Autosar Revision : ASR_REL_4_4_REV_0000
- * Autosar Conf.Variant :
- * SW Version : 1.0.0
- * Build Version : S32K1_RTD_1_0_0_HF01_D2109_ASR_REL_4_4_REV_0000_20210907
- *
- * (c) Copyright 2020-2021 NXP Semiconductors
- * All Rights Reserved.
- *
- * NXP Confidential. This software is owned or controlled by NXP and may only be
- * used strictly in accordance with the applicable license terms. By expressly
- * accepting such terms or by downloading, installing, activating and/or otherwise
- * using the software, you are agreeing that you have read, and that you agree to
- * comply with and are bound by, such license terms. If you do not agree to be
- * bound by the applicable license terms, then you may not retain, install,
- * activate or otherwise use the software.
- ==================================================================================================*/
- /**
- * @file FlexCAN_Ip_Irq.h
- *
- * @brief Interrupt Handlers for FlexCAN
- * @details Contains the Interrupt Handlers Header file
- *
- * @addtogroup FlexCAN
- * @{
- */
- #ifndef FLEXCAN_IP_IRQ_H
- #define FLEXCAN_IP_IRQ_H
- /*==================================================================================================
- * INCLUDE FILES
- * 1) system and project includes
- * 2) needed interfaces from external units
- * 3) internal and external interfaces from this unit
- ==================================================================================================*/
- #include "FlexCAN_Ip.h"
- /*==================================================================================================
- * SOURCE FILE VERSION INFORMATION
- ==================================================================================================*/
- #define FLEXCAN_IP_IRQ_VENDOR_ID_H 43
- #define FLEXCAN_IP_IRQ_AR_RELEASE_MAJOR_VERSION_H 4
- #define FLEXCAN_IP_IRQ_AR_RELEASE_MINOR_VERSION_H 4
- #define FLEXCAN_IP_IRQ_AR_RELEASE_REVISION_VERSION_H 0
- #define FLEXCAN_IP_IRQ_SW_MAJOR_VERSION_H 1
- #define FLEXCAN_IP_IRQ_SW_MINOR_VERSION_H 0
- #define FLEXCAN_IP_IRQ_SW_PATCH_VERSION_H 0
- /*==================================================================================================
- * FILE VERSION CHECKS
- ==================================================================================================*/
- /* Check if current file and FlexCAN_Ip_Irq header file are of the same vendor */
- #if (FLEXCAN_IP_IRQ_VENDOR_ID_H != FLEXCAN_IP_VENDOR_ID_H)
- #error "FlexCAN_Ip_Irq.h and FlexCAN_Ip.h have different vendor ids"
- #endif
- /* Check if current file and FlexCAN_Ip_Irq header file are of the same Autosar version */
- #if ((FLEXCAN_IP_IRQ_AR_RELEASE_MAJOR_VERSION_H != FLEXCAN_IP_AR_RELEASE_MAJOR_VERSION_H) || \
- (FLEXCAN_IP_IRQ_AR_RELEASE_MINOR_VERSION_H != FLEXCAN_IP_AR_RELEASE_MINOR_VERSION_H) || \
- (FLEXCAN_IP_IRQ_AR_RELEASE_REVISION_VERSION_H != FLEXCAN_IP_AR_RELEASE_REVISION_VERSION_H))
- #error "AutoSar Version Numbers of FlexCAN_Ip_Irq.h and FlexCAN_Ip.h are different"
- #endif
- /* Check if current file and FlexCAN_Ip_Irq header file are of the same Software version */
- #if ((FLEXCAN_IP_IRQ_SW_MAJOR_VERSION_H != FLEXCAN_IP_SW_MAJOR_VERSION_H) || \
- (FLEXCAN_IP_IRQ_SW_MINOR_VERSION_H != FLEXCAN_IP_SW_MINOR_VERSION_H) || \
- (FLEXCAN_IP_IRQ_SW_PATCH_VERSION_H != FLEXCAN_IP_SW_PATCH_VERSION_H))
- #error "Software Version Numbers of FlexCAN_Ip_Irq.h and FlexCAN_Ip.h are different"
- #endif
- /*==================================================================================================
- * CONSTANTS
- ==================================================================================================*/
- /*==================================================================================================
- * DEFINES AND MACROS
- ==================================================================================================*/
- /*==================================================================================================
- * FUNCTION PROTOTYPES
- ==================================================================================================*/
- #define CAN_START_SEC_CODE
- #include "Can_MemMap.h"
- void FlexCAN_IRQHandler
- (
- uint8 instance,
- uint32 startMbIdx,
- uint32 endMbIdx
- #if (FLEXCAN_IP_FEATURE_HAS_ENHANCED_RX_FIFO == STD_ON)
- ,boolean bEnhancedFifoExisted
- #endif
- );
- #if (FLEXCAN_IP_FEATURE_BUSOFF_ERROR_INTERRUPT_UNIFIED == STD_ON)
- void FlexCAN_Busoff_Error_IRQHandler(uint8 instance);
- #else
- void FlexCAN_BusOff_IRQHandler(uint8 instance);
- void FlexCAN_Error_IRQHandler(uint8 instance);
- #endif
- #if (FLEXCAN_IP_FEATURE_HAS_PRETENDED_NETWORKING == STD_ON)
- void FlexCAN_WakeUp_IRQHandler(uint8 u8Instance);
- #endif
- #define CAN_STOP_SEC_CODE
- #include "Can_MemMap.h"
- #endif /* FLEXCAN_IP_IRQ_H*/
- /** @} */
|