Lpit_Icu_Ip_Irq.h 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. /*==================================================================================================
  2. * Project : RTD AUTOSAR 4.4
  3. * Platform : CORTEXM
  4. * Peripheral : Ftm Lpit Lptmr Port_Ci LpCmp
  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. #ifndef LPIT_ICU_IP_IRQ_H
  25. #define LPIT_ICU_IP_IRQ_H
  26. /**
  27. * @file Interrupt functions description.
  28. * @details This file contains the signature of interrups functions that can be used on the
  29. * LPIT module.
  30. * @addtogroup lpit_icu_ip LPIT IPL
  31. * @{
  32. */
  33. #ifdef __cplusplus
  34. extern "C"{
  35. #endif
  36. /*==================================================================================================
  37. * INCLUDE FILES
  38. * 1) system and project includes
  39. * 2) needed interfaces from external units
  40. * 3) internal and external interfaces from this unit
  41. ==================================================================================================*/
  42. #include "OsIf.h"
  43. #include "Lpit_Icu_Ip_Cfg.h"
  44. #include "Lpit_Icu_Ip_Types.h"
  45. /*==================================================================================================
  46. * SOURCE FILE VERSION INFORMATION
  47. ==================================================================================================*/
  48. #define LPIT_ICU_IP_IRQ_VENDOR_ID 43
  49. #define LPIT_ICU_IP_IRQ_AR_RELEASE_MAJOR_VERSION 4
  50. #define LPIT_ICU_IP_IRQ_AR_RELEASE_MINOR_VERSION 4
  51. #define LPIT_ICU_IP_IRQ_AR_RELEASE_REVISION_VERSION 0
  52. #define LPIT_ICU_IP_IRQ_SW_MAJOR_VERSION 1
  53. #define LPIT_ICU_IP_IRQ_SW_MINOR_VERSION 0
  54. #define LPIT_ICU_IP_IRQ_SW_PATCH_VERSION 0
  55. /*==================================================================================================
  56. * FILE VERSION CHECKS
  57. ==================================================================================================*/
  58. #ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
  59. /* Check if header file and OsIf.h file are of the same Autosar version */
  60. #if ((LPIT_ICU_IP_IRQ_AR_RELEASE_MAJOR_VERSION != OSIF_AR_RELEASE_MAJOR_VERSION) || \
  61. (LPIT_ICU_IP_IRQ_AR_RELEASE_MINOR_VERSION != OSIF_AR_RELEASE_MINOR_VERSION))
  62. #error "AutoSar Version Numbers of Lpit_Icu_Ip_Irq.h and OsIf.h are different"
  63. #endif
  64. #endif
  65. /* Check if source file and ICU header file are of the same vendor */
  66. #if (LPIT_ICU_IP_IRQ_VENDOR_ID != LPIT_ICU_IP_CFG_VENDOR_ID)
  67. #error "Lpit_Icu_Ip_Irq.h and Lpit_Icu_Ip_Cfg.h have different vendor IDs"
  68. #endif
  69. /* Check if source file and ICU header file are of the same AutoSar version */
  70. #if ((LPIT_ICU_IP_IRQ_AR_RELEASE_MAJOR_VERSION != LPIT_ICU_IP_CFG_AR_RELEASE_MAJOR_VERSION) || \
  71. (LPIT_ICU_IP_IRQ_AR_RELEASE_MINOR_VERSION != LPIT_ICU_IP_CFG_AR_RELEASE_MINOR_VERSION) || \
  72. (LPIT_ICU_IP_IRQ_AR_RELEASE_REVISION_VERSION != LPIT_ICU_IP_CFG_AR_RELEASE_REVISION_VERSION))
  73. #error "AutoSar Version Numbers of Lpit_Icu_Ip_Irq.h and Lpit_Icu_Ip_Cfg.h are different"
  74. #endif
  75. /* Check if source file and ICU header file are of the same Software version */
  76. #if ((LPIT_ICU_IP_IRQ_SW_MAJOR_VERSION != LPIT_ICU_IP_CFG_SW_MAJOR_VERSION) || \
  77. (LPIT_ICU_IP_IRQ_SW_MINOR_VERSION != LPIT_ICU_IP_CFG_SW_MINOR_VERSION) || \
  78. (LPIT_ICU_IP_IRQ_SW_PATCH_VERSION != LPIT_ICU_IP_CFG_SW_PATCH_VERSION))
  79. #error "Software Version Numbers of Lpit_Icu_Ip_Irq.h and Lpit_Icu_Ip_Cfg.h are different"
  80. #endif
  81. /* Check if header file and Lpit_Icu_Ip_Types.h header file are of the same vendor */
  82. #if (LPIT_ICU_IP_IRQ_VENDOR_ID != LPIT_ICU_IP_TYPES_VENDOR_ID)
  83. #error "Lpit_Icu_Ip_Irq.h and Lpit_Icu_Ip_Types.h have different vendor IDs"
  84. #endif
  85. /* Check if header file and Lpit_Icu_Ip_Types.h header file are of the same AutoSar version */
  86. #if ((LPIT_ICU_IP_IRQ_AR_RELEASE_MAJOR_VERSION != LPIT_ICU_IP_TYPES_AR_RELEASE_MAJOR_VERSION) || \
  87. (LPIT_ICU_IP_IRQ_AR_RELEASE_MINOR_VERSION != LPIT_ICU_IP_TYPES_AR_RELEASE_MINOR_VERSION) || \
  88. (LPIT_ICU_IP_IRQ_AR_RELEASE_REVISION_VERSION != LPIT_ICU_IP_TYPES_AR_RELEASE_REVISION_VERSION))
  89. #error "AutoSar Version Numbers of Lpit_Icu_Ip_Irq.h and Lpit_Icu_Ip_Types.h are different"
  90. #endif
  91. /* Check if header file and Lpit_Icu_Ip_Types.h header file file are of the same Software version */
  92. #if ((LPIT_ICU_IP_IRQ_SW_MAJOR_VERSION != LPIT_ICU_IP_TYPES_SW_MAJOR_VERSION) || \
  93. (LPIT_ICU_IP_IRQ_SW_MINOR_VERSION != LPIT_ICU_IP_TYPES_SW_MINOR_VERSION) || \
  94. (LPIT_ICU_IP_IRQ_SW_PATCH_VERSION != LPIT_ICU_IP_TYPES_SW_PATCH_VERSION))
  95. #error "Software Version Numbers of Lpit_Icu_Ip_Irq.h and Lpit_Icu_Ip_Types.h are different"
  96. #endif
  97. /*==================================================================================================
  98. * LOCAL CONSTANTS
  99. ==================================================================================================*/
  100. /*==================================================================================================
  101. * GLOBAL VARIABLE DECLARATIONS
  102. ==================================================================================================*/
  103. #define ICU_START_SEC_VAR_CLEARED_UNSPECIFIED_NO_CACHEABLE
  104. #include "Icu_MemMap.h"
  105. extern Lpit_Icu_Ip_ChannelsStateType channelsState[LPIT_INSTANCE_COUNT][LPIT_TMR_COUNT];
  106. #if (STD_ON == LPIT_ICU_TIMESTAMP_API)
  107. extern Lpit_Icu_Ip_TimestampType timestampState[LPIT_INSTANCE_COUNT][LPIT_TMR_COUNT];
  108. #endif
  109. #define ICU_STOP_SEC_VAR_CLEARED_UNSPECIFIED_NO_CACHEABLE
  110. #include "Icu_MemMap.h"
  111. /*==================================================================================================
  112. * FUNCTION PROTOTYPES
  113. ==================================================================================================*/
  114. #define ICU_START_SEC_CODE
  115. #include "Icu_MemMap.h"
  116. /**
  117. * @brief LPIT_0 independent ISR declarations
  118. */
  119. #if (defined LPIT_ICU_0_CH_0_ISR_USED)
  120. ISR(LPIT_0_CH_0_ISR);
  121. #endif
  122. #if (defined LPIT_ICU_0_CH_1_ISR_USED)
  123. ISR(LPIT_0_CH_1_ISR);
  124. #endif
  125. #if (defined LPIT_ICU_0_CH_2_ISR_USED)
  126. ISR(LPIT_0_CH_2_ISR);
  127. #endif
  128. #if (defined LPIT_ICU_0_CH_3_ISR_USED)
  129. ISR(LPIT_0_CH_3_ISR);
  130. #endif
  131. #if (defined LPIT_ICU_0_ISR_USED)
  132. ISR(LPIT_0_ISR);
  133. #endif
  134. #define ICU_STOP_SEC_CODE
  135. #include "Icu_MemMap.h"
  136. #ifdef __cplusplus
  137. }
  138. #endif
  139. /** @} */
  140. #endif /* LPIT_ICU_IP_IRQ_H */