/**
*   @file    Crypto_Cse_Irq.c
*   @version 1.0.0
*
*   @brief   AUTOSAR Crypto - Files used by Crypto that contain the ISRs.
*   @details This files implements ISR functions used for Crypto interrupts
*
*   @addtogroup CRYPTO
*   @{
*/
/*==================================================================================================
*   Project              : AUTOSAR 4.3 MCAL
*   Platform             : PA
*   Peripheral           : Crypto
*   Dependencies         : none
*
*   Autosar Version      : 4.3.1
*   Autosar Revision     : ASR_REL_4_3_REV_0001
*   Autosar Conf.Variant :
*   SW Version           : 1.0.0
*   Build Version        : MPC5777C_MCAL_1_0_0_RTM_ASR_REL_4_3_REV_0001_20190315
*
*   (c) Copyright 2006-2016 Freescale Semiconductor, Inc. 
*       Copyright 2017-2019 NXP
*   All Rights Reserved.
==================================================================================================*/
/*==================================================================================================
==================================================================================================*/

#ifdef __cplusplus
extern "C"{
#endif

/**
* @page misra_violations MISRA-C:2012 violations
*
* @section Crypto_Cse_Irq_c_REF_1
* Violates MISRA 2012 Advisory Rule 20.1, #include directives should only be preceded by preprocessor
* directives or comments. AUTOSAR imposes the specification of the sections in which certain parts
* of the driver must be placed.
*
* @section Crypto_Cse_Irq_c_REF_2
* Violates MISRA 2012 Required Directive 4.10, Precautions shall be taken in order to prevent the contents
* of a header file being included more than once. This comes from the order of includes in the .c file
* and from include dependencies. As a safe approach, any file must include all its dependencies.
* Header files are already protected against double inclusions. The inclusion of Crypto_MemMap.h is as
* per AUTOSAR requirement [SWS_MemMap_00003].
*
* @section [global]
*          Violates MISRA 2012 Required Rule 5.1, External identifiers shall be distinct.
*          The used compilers use more than 31 chars for identifiers.
*
* @section [global]
*          Violates MISRA 2012 Required Rule 5.2, Identifiers declared in the same scope and name space shall be distinct.
*          The used compilers use more than 31 chars for identifiers.
*
* @section [global]
*          Violates MISRA 2012 Required Rule 5.4, Macro identifiers shall be distinct.
*          The used compilers use more than 31 chars for identifiers.
*
* @section [global]
*          Violates MISRA 2012 Required Rule 5.5, Identifiers shall be distinct from macro names.
*          The used compilers use more than 31 chars for identifiers.
*/

/*==================================================================================================
*                                        INCLUDE FILES
* 1) system and project includes
* 2) needed interfaces from external units
* 3) internal and external interfaces from this unit
==================================================================================================*/
#include "Crypto_Cse.h"

/*==================================================================================================
*                              SOURCE FILE VERSION INFORMATION
==================================================================================================*/
#define CRYPTO_CSE_IRQ_VENDOR_ID_C                    43
#define CRYPTO_CSE_IRQ_AR_RELEASE_MAJOR_VERSION_C     4
#define CRYPTO_CSE_IRQ_AR_RELEASE_MINOR_VERSION_C     3
#define CRYPTO_CSE_IRQ_AR_RELEASE_REVISION_VERSION_C  1
#define CRYPTO_CSE_IRQ_SW_MAJOR_VERSION_C             1
#define CRYPTO_CSE_IRQ_SW_MINOR_VERSION_C             0
#define CRYPTO_CSE_IRQ_SW_PATCH_VERSION_C             0

/*==================================================================================================
*                                     FILE VERSION CHECKS
==================================================================================================*/
/* Check if Crypto_Cse_Irq source file and Crypto_Cse.h header file are of the same vendor */
#if (CRYPTO_CSE_IRQ_VENDOR_ID_C != CRYPTO_CSE_VENDOR_ID)
    #error "Crypto_Cse_Irq.c and Crypto_Cse.h have different vendor ids"
#endif

/* Check if Crypto_Cse_Irq source file and Crypto_Cse.h header file are of the same Autosar version */
#if ((CRYPTO_CSE_IRQ_AR_RELEASE_MAJOR_VERSION_C    != CRYPTO_CSE_AR_RELEASE_MAJOR_VERSION) || \
     (CRYPTO_CSE_IRQ_AR_RELEASE_MINOR_VERSION_C    != CRYPTO_CSE_AR_RELEASE_MINOR_VERSION) || \
     (CRYPTO_CSE_IRQ_AR_RELEASE_REVISION_VERSION_C != CRYPTO_CSE_AR_RELEASE_REVISION_VERSION) \
    )
    #error "AutoSar Version Numbers of Crypto_Cse_Irq.c  and Crypto_Cse.h are different"
#endif

/* Check if Crypto_Cse_Irq source file and Crypto_Cse.h header file are of the same Software version */
#if ((CRYPTO_CSE_IRQ_SW_MAJOR_VERSION_C != CRYPTO_CSE_SW_MAJOR_VERSION) || \
     (CRYPTO_CSE_IRQ_SW_MINOR_VERSION_C != CRYPTO_CSE_SW_MINOR_VERSION) || \
     (CRYPTO_CSE_IRQ_SW_PATCH_VERSION_C != CRYPTO_CSE_SW_PATCH_VERSION)    \
    )
    #error "Software Version Numbers of Crypto_Cse_Irq.c  and Crypto_Cse.h are different"
#endif

/*==================================================================================================
*                          LOCAL TYPEDEFS (STRUCTURES, UNIONS, ENUMS)
==================================================================================================*/

/*==================================================================================================
*                                       LOCAL MACROS
==================================================================================================*/

/*==================================================================================================
*                                      LOCAL CONSTANTS
==================================================================================================*/

/*==================================================================================================
*                                      LOCAL VARIABLES
==================================================================================================*/

/*==================================================================================================
*                                      GLOBAL CONSTANTS
==================================================================================================*/

/*==================================================================================================
*                                      GLOBAL VARIABLES
==================================================================================================*/

/*==================================================================================================
*                                   LOCAL FUNCTION PROTOTYPES
==================================================================================================*/

/*==================================================================================================
*                                       LOCAL FUNCTIONS
==================================================================================================*/

/*==================================================================================================
*                                       GLOBAL FUNCTIONS
==================================================================================================*/
#define CRYPTO_START_SEC_CODE
/**
* @violates @ref Crypto_Cse_Irq_c_REF_1 #include directives should only be preceded by preprocessor
* directives or comments.
*
* @violates @ref Crypto_Cse_Irq_c_REF_2 Precautions shall be taken in order to prevent the contents
* of a header file being included more than once.
*/
#include "Crypto_MemMap.h"

#if (STD_ON == CRYPTO_ASYNC_PROCESS_INTERRUPT)

ISR(CRYPTO_CSE_ISR)
{
    Crypto_Cse_InterruptHandler();

    EXIT_INTERRUPT();
}

#endif /* (STD_ON == CRYPTO_ASYNC_PROCESS_INTERRUPT) */


#define CRYPTO_STOP_SEC_CODE
/**
* @violates @ref Crypto_Cse_Irq_c_REF_1 #include directives should only be preceded by preprocessor
* directives or comments.
*
* @violates @ref Crypto_Cse_Irq_c_REF_2 Precautions shall be taken in order to prevent the contents
* of a header file being included more than once.
*/
#include "Crypto_MemMap.h"


#ifdef __cplusplus
}
#endif

/** @} */
