Clock_Ip_Irq.c 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. /*==================================================================================================
  2. * Project : RTD AUTOSAR 4.4
  3. * Platform : CORTEXM
  4. * Peripheral :
  5. * Dependencies : none
  6. *
  7. * Autosar Version : 4.4.0
  8. * Autosar Revision : ASR_REL_4_4_REV_0000
  9. * Autosar Conf.Variant :
  10. * SW Version : 1.0.0
  11. * Build Version : S32K1_RTD_1_0_0_HF01_D2109_ASR_REL_4_4_REV_0000_20210907
  12. *
  13. * (c) Copyright 2020-2021 NXP Semiconductors
  14. * All Rights Reserved.
  15. *
  16. * NXP Confidential. This software is owned or controlled by NXP and may only be
  17. * used strictly in accordance with the applicable license terms. By expressly
  18. * accepting such terms or by downloading, installing, activating and/or otherwise
  19. * using the software, you are agreeing that you have read, and that you agree to
  20. * comply with and are bound by, such license terms. If you do not agree to be
  21. * bound by the applicable license terms, then you may not retain, install,
  22. * activate or otherwise use the software.
  23. ==================================================================================================*/
  24. /**
  25. * @file Clock_Ip_Irq.c
  26. * @version 1.0.0
  27. *
  28. * @brief CLOCK driver implementations.
  29. * @details CLOCK driver implementations.
  30. *
  31. * @addtogroup CLOCK_DRIVER Clock Ip Driver
  32. * @{
  33. */
  34. /*==================================================================================================
  35. * INCLUDE FILES
  36. * 1) system and project includes
  37. * 2) needed interfaces from external units
  38. * 3) internal and external interfaces from this unit
  39. ==================================================================================================*/
  40. #include "Clock_Ip_Private.h"
  41. /*==================================================================================================
  42. SOURCE FILE VERSION INFORMATION
  43. ==================================================================================================*/
  44. #define CLOCK_IP_IRQ_VENDOR_ID_C 43
  45. #define CLOCK_IP_IRQ_AR_RELEASE_MAJOR_VERSION_C 4
  46. #define CLOCK_IP_IRQ_AR_RELEASE_MINOR_VERSION_C 4
  47. #define CLOCK_IP_IRQ_AR_RELEASE_REVISION_VERSION_C 0
  48. #define CLOCK_IP_IRQ_SW_MAJOR_VERSION_C 1
  49. #define CLOCK_IP_IRQ_SW_MINOR_VERSION_C 0
  50. #define CLOCK_IP_IRQ_SW_PATCH_VERSION_C 0
  51. /*==================================================================================================
  52. * FILE VERSION CHECKS
  53. ==================================================================================================*/
  54. /* Check if Clock_Ip_Irq.c file and Clock_Ip_Private.h file are of the same vendor */
  55. #if (CLOCK_IP_IRQ_VENDOR_ID_C != CLOCK_IP_PRIVATE_VENDOR_ID)
  56. #error "Clock_Ip_IntOsc.c and Clock_Ip_Private.h have different vendor ids"
  57. #endif
  58. /* Check if Clock_Ip_Irq.c file and Clock_Ip_Private.h file are of the same Autosar version */
  59. #if ((CLOCK_IP_IRQ_AR_RELEASE_MAJOR_VERSION_C != CLOCK_IP_PRIVATE_AR_RELEASE_MAJOR_VERSION) || \
  60. (CLOCK_IP_IRQ_AR_RELEASE_MINOR_VERSION_C != CLOCK_IP_PRIVATE_AR_RELEASE_MINOR_VERSION) || \
  61. (CLOCK_IP_IRQ_AR_RELEASE_REVISION_VERSION_C != CLOCK_IP_PRIVATE_AR_RELEASE_REVISION_VERSION) \
  62. )
  63. #error "AutoSar Version Numbers of Clock_Ip_Irq.c and Clock_Ip_Private.h are different"
  64. #endif
  65. /* Check if Clock_Ip_Irq.c file and Clock_Ip_Private.h file are of the same Software version */
  66. #if ((CLOCK_IP_IRQ_SW_MAJOR_VERSION_C != CLOCK_IP_PRIVATE_SW_MAJOR_VERSION) || \
  67. (CLOCK_IP_IRQ_SW_MINOR_VERSION_C != CLOCK_IP_PRIVATE_SW_MINOR_VERSION) || \
  68. (CLOCK_IP_IRQ_SW_PATCH_VERSION_C != CLOCK_IP_PRIVATE_SW_PATCH_VERSION) \
  69. )
  70. #error "Software Version Numbers of Clock_Ip_Irq.c and Clock_Ip_Private.h are different"
  71. #endif
  72. /*==================================================================================================
  73. LOCAL TYPEDEFS (STRUCTURES, UNIONS, ENUMS)
  74. ==================================================================================================*/
  75. /*==================================================================================================
  76. LOCAL MACROS
  77. ==================================================================================================*/
  78. /*==================================================================================================
  79. LOCAL CONSTANTS
  80. ==================================================================================================*/
  81. /*==================================================================================================
  82. LOCAL VARIABLES
  83. ==================================================================================================*/
  84. /*==================================================================================================
  85. GLOBAL CONSTANTS
  86. ==================================================================================================*/
  87. /*==================================================================================================
  88. GLOBAL VARIABLES
  89. ==================================================================================================*/
  90. /*==================================================================================================
  91. LOCAL FUNCTION PROTOTYPES
  92. ==================================================================================================*/
  93. #define MCU_START_SEC_CODE
  94. #include "Mcu_MemMap.h"
  95. #if CMU_INSTANCES_ARRAY_SIZE > 0U
  96. ISR(Mcu_Cmu_ClockFail_IRQHandler);
  97. /*==================================================================================================
  98. GLOBAL FUNCTIONS
  99. ==================================================================================================*/
  100. /**
  101. * @brief This function clear the CMU interrupt flag from CMU module.
  102. * @details Called by RGM ISR routine when a user notification for CMU FCCU events is configured
  103. *
  104. * @return void
  105. *
  106. */
  107. ISR(Mcu_Cmu_ClockFail_IRQHandler)
  108. {
  109. Mcu_CMU_ClockFailInt();
  110. EXIT_INTERRUPT();
  111. }
  112. #endif
  113. #define MCU_STOP_SEC_CODE
  114. #include "Mcu_MemMap.h"
  115. /*! @}*/
  116. /*******************************************************************************
  117. * EOF
  118. ******************************************************************************/