/* * Copyright 2020-2023 NXP * * SPDX-License-Identifier: BSD-3-Clause */ /** * @file Clock_Ip_Irq.c * @version 2.0.0 * * @brief CLOCK driver implementations. * @details CLOCK driver implementations. * * @addtogroup CLOCK_DRIVER Clock Ip Driver * @{ */ #ifdef __cplusplus extern "C"{ #endif /*================================================================================================== * INCLUDE FILES * 1) system and project includes * 2) needed interfaces from external units * 3) internal and external interfaces from this unit ==================================================================================================*/ #include "Clock_Ip_Private.h" /*================================================================================================== SOURCE FILE VERSION INFORMATION ==================================================================================================*/ #define CLOCK_IP_IRQ_VENDOR_ID_C 43 #define CLOCK_IP_IRQ_AR_RELEASE_MAJOR_VERSION_C 4 #define CLOCK_IP_IRQ_AR_RELEASE_MINOR_VERSION_C 7 #define CLOCK_IP_IRQ_AR_RELEASE_REVISION_VERSION_C 0 #define CLOCK_IP_IRQ_SW_MAJOR_VERSION_C 2 #define CLOCK_IP_IRQ_SW_MINOR_VERSION_C 0 #define CLOCK_IP_IRQ_SW_PATCH_VERSION_C 0 /*================================================================================================== * FILE VERSION CHECKS ==================================================================================================*/ /* Check if Clock_Ip_Irq.c file and Clock_Ip_Private.h file are of the same vendor */ #if (CLOCK_IP_IRQ_VENDOR_ID_C != CLOCK_IP_PRIVATE_VENDOR_ID) #error "Clock_Ip_Irq.c and Clock_Ip_Private.h have different vendor ids" #endif /* Check if Clock_Ip_Irq.c file and Clock_Ip_Private.h file are of the same Autosar version */ #if ((CLOCK_IP_IRQ_AR_RELEASE_MAJOR_VERSION_C != CLOCK_IP_PRIVATE_AR_RELEASE_MAJOR_VERSION) || \ (CLOCK_IP_IRQ_AR_RELEASE_MINOR_VERSION_C != CLOCK_IP_PRIVATE_AR_RELEASE_MINOR_VERSION) || \ (CLOCK_IP_IRQ_AR_RELEASE_REVISION_VERSION_C != CLOCK_IP_PRIVATE_AR_RELEASE_REVISION_VERSION) \ ) #error "AutoSar Version Numbers of Clock_Ip_Irq.c and Clock_Ip_Private.h are different" #endif /* Check if Clock_Ip_Irq.c file and Clock_Ip_Private.h file are of the same Software version */ #if ((CLOCK_IP_IRQ_SW_MAJOR_VERSION_C != CLOCK_IP_PRIVATE_SW_MAJOR_VERSION) || \ (CLOCK_IP_IRQ_SW_MINOR_VERSION_C != CLOCK_IP_PRIVATE_SW_MINOR_VERSION) || \ (CLOCK_IP_IRQ_SW_PATCH_VERSION_C != CLOCK_IP_PRIVATE_SW_PATCH_VERSION) \ ) #error "Software Version Numbers of Clock_Ip_Irq.c and Clock_Ip_Private.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 MCU_START_SEC_CODE #include "Mcu_MemMap.h" #if CLOCK_IP_CMU_INSTANCES_ARRAY_SIZE > 0U ISR(Mcu_Cmu_ClockFail_IRQHandler); /** * @brief This function clear the CMU interrupt flag from CMU module. * @details Called by RGM ISR routine when a user notification for CMU FCCU events is configured * * @return void * */ ISR(Mcu_Cmu_ClockFail_IRQHandler) { Clock_Ip_CMU_ClockFailInt(); EXIT_INTERRUPT(); } #endif #define MCU_STOP_SEC_CODE #include "Mcu_MemMap.h" #ifdef __cplusplus } #endif /** @} */