Ftm_Gpt_Ip_VS_0_PBcfg.c 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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 Ftm_Gpt_Ip_PBcfg.c
  26. *
  27. * @addtogroup Ftm_Gpt_Ip Ftm_Gpt_Ip 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 "Ftm_Gpt_Ip_VS_0_PBcfg.h"
  41. #include "Gpt_Irq.h"
  42. /*==================================================================================================
  43. * SOURCE FILE VERSION INFORMATION
  44. *================================================================================================*/
  45. #define FTM_GPT_IP_VENDOR_ID_VS_0_PBCFG_C 43
  46. #define FTM_GPT_IP_AR_RELEASE_MAJOR_VERSION_VS_0_PBCFG_C 4
  47. #define FTM_GPT_IP_AR_RELEASE_MINOR_VERSION_VS_0_PBCFG_C 4
  48. #define FTM_GPT_IP_AR_RELEASE_REVISION_VERSION_VS_0_PBCFG_C 0
  49. #define FTM_GPT_IP_SW_MAJOR_VERSION_VS_0_PBCFG_C 1
  50. #define FTM_GPT_IP_SW_MINOR_VERSION_VS_0_PBCFG_C 0
  51. #define FTM_GPT_IP_SW_PATCH_VERSION_VS_0_PBCFG_C 0
  52. /*==================================================================================================
  53. * FILE VERSION CHECKS
  54. *================================================================================================*/
  55. #if (FTM_GPT_IP_VENDOR_ID_VS_0_PBCFG_C != FTM_GPT_IP_VENDOR_ID_VS_0_PBCFG_H)
  56. #error "Ftm_Gpt_Ip_VS_0_PBcfg.c and Ftm_Gpt_Ip_VS_0_PBcfg.h have different vendor ids"
  57. #endif
  58. /* Check if this header file and header file are of the same Autosar version */
  59. #if ((FTM_GPT_IP_AR_RELEASE_MAJOR_VERSION_VS_0_PBCFG_C != FTM_GPT_IP_AR_RELEASE_MAJOR_VERSION_VS_0_PBCFG_H) || \
  60. (FTM_GPT_IP_AR_RELEASE_MINOR_VERSION_VS_0_PBCFG_C != FTM_GPT_IP_AR_RELEASE_MINOR_VERSION_VS_0_PBCFG_H) || \
  61. (FTM_GPT_IP_AR_RELEASE_REVISION_VERSION_VS_0_PBCFG_C != FTM_GPT_IP_AR_RELEASE_REVISION_VERSION_VS_0_PBCFG_H) \
  62. )
  63. #error "AutoSar Version Numbers of Ftm_Gpt_Ip_VS_0_PBcfg.c and Ftm_Gpt_Ip_VS_0_PBcfg.h are different"
  64. #endif
  65. /* Check if this header file and header file are of the same Software version */
  66. #if ((FTM_GPT_IP_SW_MAJOR_VERSION_VS_0_PBCFG_C != FTM_GPT_IP_SW_MAJOR_VERSION_VS_0_PBCFG_H) || \
  67. (FTM_GPT_IP_SW_MINOR_VERSION_VS_0_PBCFG_C != FTM_GPT_IP_SW_MINOR_VERSION_VS_0_PBCFG_H) || \
  68. (FTM_GPT_IP_SW_PATCH_VERSION_VS_0_PBCFG_C != FTM_GPT_IP_SW_PATCH_VERSION_VS_0_PBCFG_H) \
  69. )
  70. #error "Software Version Numbers of Ftm_Gpt_Ip_VS_0_PBcfg.c and Ftm_Gpt_Ip_VS_0_PBcfg.h are different"
  71. #endif
  72. #if (FTM_GPT_IP_VENDOR_ID_VS_0_PBCFG_C != GPT_IRQ_VENDOR_ID)
  73. #error "Ftm_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 ((FTM_GPT_IP_AR_RELEASE_MAJOR_VERSION_VS_0_PBCFG_C != GPT_IRQ_AR_RELEASE_MAJOR_VERSION) || \
  77. (FTM_GPT_IP_AR_RELEASE_MINOR_VERSION_VS_0_PBCFG_C != GPT_IRQ_AR_RELEASE_MINOR_VERSION) || \
  78. (FTM_GPT_IP_AR_RELEASE_REVISION_VERSION_VS_0_PBCFG_C != GPT_IRQ_AR_RELEASE_REVISION_VERSION) \
  79. )
  80. #error "AutoSar Version Numbers of Ftm_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 ((FTM_GPT_IP_SW_MAJOR_VERSION_VS_0_PBCFG_C != GPT_IRQ_SW_MAJOR_VERSION) || \
  84. (FTM_GPT_IP_SW_MINOR_VERSION_VS_0_PBCFG_C != GPT_IRQ_SW_MINOR_VERSION) || \
  85. (FTM_GPT_IP_SW_PATCH_VERSION_VS_0_PBCFG_C != GPT_IRQ_SW_PATCH_VERSION) \
  86. )
  87. #error "Software Version Numbers of Ftm_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. Ftm_Gpt_Ip_InstanceConfigType FTM_0_InitConfig_PB_VS_0 =
  99. {
  100. /** @brief Freeze bit */
  101. (boolean)(FALSE), /**< @brief Freeze Disable */
  102. /** @brief FTM clock source */
  103. FTM_GPT_IP_CLOCK_SOURCE_NONE,
  104. #if (FTM_GPT_IP_SET_CLOCK_MODE == STD_ON)
  105. /** @brief GptFtmAlternatePrescaler Value */
  106. 0U, /*Value PS bit:0 */
  107. #endif
  108. /** @brief GptFtmPrescaler Value */
  109. 0U, /*Value PS bit:0 */
  110. /** @brief GptFtmCountingMode */
  111. FTM_GPT_IP_MODE_UP_TIMER
  112. };
  113. Ftm_Gpt_Ip_ChannelConfigType FTM_0_ChannelConfig_PB_VS_0[1U] =
  114. {
  115. /** @brief GptFtmChannels_0 */
  116. {
  117. /** @brief Ftm Channel Id */
  118. 0U,
  119. /** @brief Ftm callback name */
  120. &Gpt_ProcessCommonInterrupt,
  121. /** @brief Ftm callbackparam */
  122. (uint8)1U
  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
  151. /** @} */