Lptmr_Icu_Ip_Irq.h 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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 LPTMR_ICU_IP_IRQ_H
  25. #define LPTMR_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. * LPTMR module.
  30. * @addtogroup lptmr_icu_ip LPTMR 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 "Lptmr_Icu_Ip_Cfg.h"
  44. #include "Lptmr_Icu_Ip_Types.h"
  45. /*==================================================================================================
  46. * SOURCE FILE VERSION INFORMATION
  47. ==================================================================================================*/
  48. #define LPTMR_ICU_IP_IRQ_VENDOR_ID 43
  49. #define LPTMR_ICU_IP_IRQ_AR_RELEASE_MAJOR_VERSION 4
  50. #define LPTMR_ICU_IP_IRQ_AR_RELEASE_MINOR_VERSION 4
  51. #define LPTMR_ICU_IP_IRQ_AR_RELEASE_REVISION_VERSION 0
  52. #define LPTMR_ICU_IP_IRQ_SW_MAJOR_VERSION 1
  53. #define LPTMR_ICU_IP_IRQ_SW_MINOR_VERSION 0
  54. #define LPTMR_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 ((LPTMR_ICU_IP_IRQ_AR_RELEASE_MAJOR_VERSION != OSIF_AR_RELEASE_MAJOR_VERSION) || \
  61. (LPTMR_ICU_IP_IRQ_AR_RELEASE_MINOR_VERSION != OSIF_AR_RELEASE_MINOR_VERSION))
  62. #error "AutoSar Version Numbers of Lptmr_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 (LPTMR_ICU_IP_IRQ_VENDOR_ID != LPTMR_ICU_IP_CFG_VENDOR_ID)
  67. #error "Lptmr_Icu_Ip_Irq.h and Lptmr_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 ((LPTMR_ICU_IP_IRQ_AR_RELEASE_MAJOR_VERSION != LPTMR_ICU_IP_CFG_AR_RELEASE_MAJOR_VERSION) || \
  71. (LPTMR_ICU_IP_IRQ_AR_RELEASE_MINOR_VERSION != LPTMR_ICU_IP_CFG_AR_RELEASE_MINOR_VERSION) || \
  72. (LPTMR_ICU_IP_IRQ_AR_RELEASE_REVISION_VERSION != LPTMR_ICU_IP_CFG_AR_RELEASE_REVISION_VERSION))
  73. #error "AutoSar Version Numbers of Lptmr_Icu_Ip_Irq.h and Lptmr_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 ((LPTMR_ICU_IP_IRQ_SW_MAJOR_VERSION != LPTMR_ICU_IP_CFG_SW_MAJOR_VERSION) || \
  77. (LPTMR_ICU_IP_IRQ_SW_MINOR_VERSION != LPTMR_ICU_IP_CFG_SW_MINOR_VERSION) || \
  78. (LPTMR_ICU_IP_IRQ_SW_PATCH_VERSION != LPTMR_ICU_IP_CFG_SW_PATCH_VERSION))
  79. #error "Software Version Numbers of Lptmr_Icu_Ip_Irq.h and Lptmr_Icu_Ip_Cfg.h are different"
  80. #endif
  81. /* Check if header file and Lptmr_Icu_Ip_Types.h header file are of the same vendor */
  82. #if (LPTMR_ICU_IP_IRQ_VENDOR_ID != LPTMR_ICU_IP_TYPES_VENDOR_ID)
  83. #error "Lptmr_Icu_Ip_Irq.h and Lptmr_Icu_Ip_Types.h have different vendor IDs"
  84. #endif
  85. /* Check if header file and Lptmr_Icu_Ip_Types.h header file are of the same AutoSar version */
  86. #if ((LPTMR_ICU_IP_IRQ_AR_RELEASE_MAJOR_VERSION != LPTMR_ICU_IP_TYPES_AR_RELEASE_MAJOR_VERSION) || \
  87. (LPTMR_ICU_IP_IRQ_AR_RELEASE_MINOR_VERSION != LPTMR_ICU_IP_TYPES_AR_RELEASE_MINOR_VERSION) || \
  88. (LPTMR_ICU_IP_IRQ_AR_RELEASE_REVISION_VERSION != LPTMR_ICU_IP_TYPES_AR_RELEASE_REVISION_VERSION))
  89. #error "AutoSar Version Numbers of Lptmr_Icu_Ip_Irq.h and LPtmr_Icu_Ip_Types.h are different"
  90. #endif
  91. /* Check if header file and Lptmr_Icu_Ip_Types.h header file file are of the same Software version */
  92. #if ((LPTMR_ICU_IP_IRQ_SW_MAJOR_VERSION != LPTMR_ICU_IP_TYPES_SW_MAJOR_VERSION) || \
  93. (LPTMR_ICU_IP_IRQ_SW_MINOR_VERSION != LPTMR_ICU_IP_TYPES_SW_MINOR_VERSION) || \
  94. (LPTMR_ICU_IP_IRQ_SW_PATCH_VERSION != LPTMR_ICU_IP_TYPES_SW_PATCH_VERSION))
  95. #error "Software Version Numbers of Lptmr_Icu_Ip_Irq.h and Lptmr_Icu_Ip_Types.h are different"
  96. #endif
  97. /*==================================================================================================
  98. * LOCAL CONSTANTS
  99. ==================================================================================================*/
  100. #define ICU_START_SEC_CONST_UNSPECIFIED
  101. #include "Icu_MemMap.h"
  102. /* Table of base addresses for LPTMR instances. */
  103. extern Lptmr_Icu_Ip_BaseType * const s_lptmrBase[LPTMR_ICU_IP_NUM_OF_MODULES];
  104. #define ICU_STOP_SEC_CONST_UNSPECIFIED
  105. #include "Icu_MemMap.h"
  106. /*==================================================================================================
  107. * GLOBAL VARIABLE DECLARATIONS
  108. ==================================================================================================*/
  109. #define ICU_START_SEC_VAR_CLEARED_UNSPECIFIED
  110. #include "Icu_MemMap.h"
  111. extern Lptmr_Icu_Ip_ChStateType Lptmr_Icu_aChConfig[LPTMR_ICU_IP_NUM_OF_MODULES];
  112. #define ICU_STOP_SEC_VAR_CLEARED_UNSPECIFIED
  113. #include "Icu_MemMap.h"
  114. /*==================================================================================================
  115. * FUNCTION PROTOTYPES
  116. ==================================================================================================*/
  117. #define ICU_START_SEC_CODE
  118. #include "Icu_MemMap.h"
  119. /**
  120. * @brief LPTRM_0 Channel 0 independent ISR declarations
  121. */
  122. #if (defined LPTMR_ICU_0_CH_0_ISR_USED)
  123. ISR(LPTMR_0_CH_0_ISR);
  124. #endif
  125. #define ICU_STOP_SEC_CODE
  126. #include "Icu_MemMap.h"
  127. #ifdef __cplusplus
  128. }
  129. #endif
  130. /** @} */
  131. #endif /* LPTMR_ICU_IP_IRQ_H */