LPit_Gpt_Ip_VS_0_PBcfg.c 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. /*==================================================================================================
  2. * Project : RTD AUTOSAR 4.4
  3. * Platform : CORTEXM
  4. * Peripheral : Ftm_Srtc_Lptmr_LPit
  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 LPit_Gpt_Ip_PBcfg.c
  26. *
  27. * @addtogroup lpit_ip LPit IPL
  28. *
  29. * @{
  30. */
  31. #ifdef __cplusplus
  32. extern "C"{
  33. #endif
  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 "LPit_Gpt_Ip_VS_0_PBcfg.h"
  41. #include "Gpt_Irq.h"
  42. /*==================================================================================================
  43. * SOURCE FILE VERSION INFORMATION
  44. *================================================================================================*/
  45. #define LPIT_GPT_IP_VENDOR_ID_VS_0_PBCFG_C 43
  46. #define LPIT_GPT_IP_AR_RELEASE_MAJOR_VERSION_VS_0_PBCFG_C 4
  47. #define LPIT_GPT_IP_AR_RELEASE_MINOR_VERSION_VS_0_PBCFG_C 4
  48. #define LPIT_GPT_IP_AR_RELEASE_REVISION_VERSION_VS_0_PBCFG_C 0
  49. #define LPIT_GPT_IP_SW_MAJOR_VERSION_VS_0_PBCFG_C 1
  50. #define LPIT_GPT_IP_SW_MINOR_VERSION_VS_0_PBCFG_C 0
  51. #define LPIT_GPT_IP_SW_PATCH_VERSION_VS_0_PBCFG_C 0
  52. /*==================================================================================================
  53. * FILE VERSION CHECKS
  54. *================================================================================================*/
  55. #if (LPIT_GPT_IP_VENDOR_ID_VS_0_PBCFG_C != LPIT_GPT_IP_VENDOR_ID_VS_0_PBCFG_H)
  56. #error "LPit_Gpt_Ip_VS_0_PBcfg.c and LPit_Gpt_Ip_Types.h have different vendor ids"
  57. #endif
  58. /* Check if this header file and header file are of the same Autosar version */
  59. #if ((LPIT_GPT_IP_AR_RELEASE_MAJOR_VERSION_VS_0_PBCFG_C != LPIT_GPT_IP_AR_RELEASE_MAJOR_VERSION_VS_0_PBCFG_H) || \
  60. (LPIT_GPT_IP_AR_RELEASE_MINOR_VERSION_VS_0_PBCFG_C != LPIT_GPT_IP_AR_RELEASE_MINOR_VERSION_VS_0_PBCFG_H) || \
  61. (LPIT_GPT_IP_AR_RELEASE_REVISION_VERSION_VS_0_PBCFG_C != LPIT_GPT_IP_AR_RELEASE_REVISION_VERSION_VS_0_PBCFG_H) \
  62. )
  63. #error "AutoSar Version Numbers of LPit_Gpt_Ip_VS_0_PBcfg.c and LPit_Gpt_Ip_Types.h are different"
  64. #endif
  65. /* Check if this header file and header file are of the same Software version */
  66. #if ((LPIT_GPT_IP_SW_MAJOR_VERSION_VS_0_PBCFG_C != LPIT_GPT_IP_SW_MAJOR_VERSION_VS_0_PBCFG_H) || \
  67. (LPIT_GPT_IP_SW_MINOR_VERSION_VS_0_PBCFG_C != LPIT_GPT_IP_SW_MINOR_VERSION_VS_0_PBCFG_H) || \
  68. (LPIT_GPT_IP_SW_PATCH_VERSION_VS_0_PBCFG_C != LPIT_GPT_IP_SW_PATCH_VERSION_VS_0_PBCFG_H) \
  69. )
  70. #error "Software Version Numbers of LPit_Gpt_Ip_VS_0_PBcfg.c and LPit_Gpt_Ip_Types.h are different"
  71. #endif
  72. #if (LPIT_GPT_IP_VENDOR_ID_VS_0_PBCFG_C != GPT_IRQ_VENDOR_ID)
  73. #error "LPit_Gpt_Ip_VS_0_PBcfg.c and Gpt_Irq.h have different vendor ids"
  74. #endif
  75. /* Check if this header file and header file are of the same Autosar version */
  76. #if ((LPIT_GPT_IP_AR_RELEASE_MAJOR_VERSION_VS_0_PBCFG_C != GPT_IRQ_AR_RELEASE_MAJOR_VERSION) || \
  77. (LPIT_GPT_IP_AR_RELEASE_MINOR_VERSION_VS_0_PBCFG_C != GPT_IRQ_AR_RELEASE_MINOR_VERSION) || \
  78. (LPIT_GPT_IP_AR_RELEASE_REVISION_VERSION_VS_0_PBCFG_C != GPT_IRQ_AR_RELEASE_REVISION_VERSION) \
  79. )
  80. #error "AutoSar Version Numbers of LPit_Gpt_Ip_VS_0_PBcfg.c and Gpt_Irq.h are different"
  81. #endif
  82. /* Check if this header file and header file are of the same Software version */
  83. #if ((LPIT_GPT_IP_SW_MAJOR_VERSION_VS_0_PBCFG_C != GPT_IRQ_SW_MAJOR_VERSION) || \
  84. (LPIT_GPT_IP_SW_MINOR_VERSION_VS_0_PBCFG_C != GPT_IRQ_SW_MINOR_VERSION) || \
  85. (LPIT_GPT_IP_SW_PATCH_VERSION_VS_0_PBCFG_C != GPT_IRQ_SW_PATCH_VERSION) \
  86. )
  87. #error "Software Version Numbers of LPit_Gpt_Ip_VS_0_PBcfg.c and Gpt_Irq.h are different"
  88. #endif
  89. /*================================================================================================*/
  90. /*==================================================================================================
  91. * GLOBAL VARIABLES
  92. *================================================================================================*/
  93. /*==================================================================================================
  94. * GLOBAL CONSTANTS
  95. *================================================================================================*/
  96. #define GPT_START_SEC_CONFIG_DATA_UNSPECIFIED
  97. #include "Gpt_MemMap.h"
  98. const Lpit_Gpt_Ip_InstanceConfigType LPIT_0_InitConfig_PB_VS_0 =
  99. {
  100. /** @brief DOZE Mode Enable Bit */
  101. (boolean)FALSE,
  102. /** @brief LPIT Debug Mode */
  103. (boolean)FALSE
  104. };
  105. const Lpit_Gpt_Ip_ChannelConfigType LPIT_0_ChannelConfig_PB_VS_0[1U] =
  106. {
  107. /** @brief GptLpitChannels_0 */
  108. {
  109. /** @brief Lpit Channel Id */
  110. 0U,
  111. /** @brief LPIT callback name */
  112. &Gpt_ProcessCommonInterrupt,
  113. /** @brief LPIT callback param */
  114. (uint8)0U,
  115. #if (LPIT_GPT_IP_ENABLE_EXT_TRIGGERS == STD_ON)
  116. /* LPIT External/Internal Trigger Configuration */
  117. (uint32)0U | \
  118. (uint32)((uint32)1U << LPIT_TMR_TCTRL_TRG_SRC_SHIFT) | \
  119. (uint32)((uint32)1U << LPIT_TMR_TCTRL_TROT_SHIFT) | \
  120. (uint32)((uint32)1U << LPIT_TMR_TCTRL_TSOI_SHIFT) | \
  121. (uint32)((uint32)1U << LPIT_TMR_TCTRL_TSOT_SHIFT)
  122. #endif
  123. }
  124. };
  125. #define GPT_STOP_SEC_CONFIG_DATA_UNSPECIFIED
  126. #include "Gpt_MemMap.h"
  127. /*==================================================================================================
  128. * GLOBAL FUNCTIONS
  129. *================================================================================================*/
  130. /*==================================================================================================
  131. * LOCAL VARIABLES
  132. *================================================================================================*/
  133. /*==================================================================================================
  134. * LOCAL TYPEDEFS (STRUCTURES, UNIONS, ENUMS)
  135. *================================================================================================*/
  136. /*==================================================================================================
  137. * LOCAL MACROS
  138. *================================================================================================*/
  139. /*==================================================================================================
  140. * LOCAL CONSTANTS
  141. *================================================================================================*/
  142. /*==================================================================================================
  143. * LOCAL FUNCTIONS
  144. *================================================================================================*/
  145. /*==================================================================================================
  146. * LOCAL FUNCTION PROTOTYPES
  147. *================================================================================================*/
  148. #ifdef __cplusplus
  149. }
  150. #endif /* LPIT_GPT_IP_PBCFG_C*/
  151. /** @} */