Gpt_Ipw_VS_0_PBcfg.c 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  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 Gpt_Ipw_PBcfg.c
  26. *
  27. * @internal
  28. * @addtogroup gpt gpt_ipw
  29. *
  30. * @{
  31. */
  32. /*==================================================================================================
  33. * GENERATION MACRO DEFINTION
  34. *================================================================================================*/
  35. /*Gpt_Ipw_PluginMacros.m*/
  36. /** @} */
  37. #ifdef __cplusplus
  38. extern "C"{
  39. #endif
  40. /*==================================================================================================
  41. * INCLUDE FILES
  42. * 1) system and project includes
  43. * 2) needed interfaces from external units
  44. * 3) internal and external interfaces from this unit
  45. *================================================================================================*/
  46. #include "Gpt_Ipw_VS_0_PBcfg.h"
  47. #include "SRtc_Ip_VS_0_PBcfg.h"
  48. #include "Ftm_Gpt_Ip_VS_0_PBcfg.h"
  49. #include "Lptmr_Gpt_Ip_VS_0_PBcfg.h"
  50. #include "LPit_Gpt_Ip_VS_0_PBcfg.h"
  51. /*==================================================================================================
  52. * SOURCE FILE VERSION INFORMATION
  53. *================================================================================================*/
  54. #define GPT_IPW_VENDOR_ID_VS_0_PBCFG_C 43
  55. #define GPT_IPW_AR_RELEASE_MAJOR_VERSION_VS_0_PBCFG_C 4
  56. #define GPT_IPW_AR_RELEASE_MINOR_VERSION_VS_0_PBCFG_C 4
  57. #define GPT_IPW_AR_RELEASE_REVISION_VERSION_VS_0_PBCFG_C 0
  58. #define GPT_IPW_SW_MAJOR_VERSION_VS_0_PBCFG_C 1
  59. #define GPT_IPW_SW_MINOR_VERSION_VS_0_PBCFG_C 0
  60. #define GPT_IPW_SW_PATCH_VERSION_VS_0_PBCFG_C 0
  61. /*==================================================================================================
  62. * FILE VERSION CHECKS
  63. *================================================================================================*/
  64. #if (GPT_IPW_VENDOR_ID_VS_0_PBCFG_H != GPT_IPW_VENDOR_ID_VS_0_PBCFG_C)
  65. #error "Gpt_Ipw_VS_0_PBcfg.h and Gpt_Ipw_VS_0_PBcfg.c have different vendor ids"
  66. #endif
  67. /* Check if the header files are of the same Autosar version */
  68. #if ((GPT_IPW_AR_RELEASE_MAJOR_VERSION_VS_0_PBCFG_H != GPT_IPW_AR_RELEASE_MAJOR_VERSION_VS_0_PBCFG_C) || \
  69. (GPT_IPW_AR_RELEASE_MINOR_VERSION_VS_0_PBCFG_H != GPT_IPW_AR_RELEASE_MINOR_VERSION_VS_0_PBCFG_C) || \
  70. (GPT_IPW_AR_RELEASE_REVISION_VERSION_VS_0_PBCFG_H != GPT_IPW_AR_RELEASE_REVISION_VERSION_VS_0_PBCFG_C) \
  71. )
  72. #error "AutoSar Version Numbers of Gpt_Ipw_VS_0_PBcfg.h and Gpt_Ipw_VS_0_PBcfg.c are different"
  73. #endif
  74. /* Check if the header files are of the same Software version */
  75. #if ((GPT_IPW_SW_MAJOR_VERSION_VS_0_PBCFG_H != GPT_IPW_SW_MAJOR_VERSION_VS_0_PBCFG_C) || \
  76. (GPT_IPW_SW_MINOR_VERSION_VS_0_PBCFG_H != GPT_IPW_SW_MINOR_VERSION_VS_0_PBCFG_C) || \
  77. (GPT_IPW_SW_PATCH_VERSION_VS_0_PBCFG_H != GPT_IPW_SW_PATCH_VERSION_VS_0_PBCFG_C) \
  78. )
  79. #error "Software Version Numbers of Gpt_Ipw_VS_0_PBcfg.h and Gpt_Ipw_VS_0_PBcfg.c are different"
  80. #endif
  81. #if (GPT_IPW_VENDOR_ID_VS_0_PBCFG_C != LPIT_GPT_IP_VENDOR_ID_VS_0_PBCFG_H)
  82. #error "Gpt_Ipw_VS_0_PBcfg.c and LPit_Gpt_Ip_VS_0_PBcfg.h have different vendor ids"
  83. #endif
  84. /* Check if the header files are of the same Autosar version */
  85. #if ((GPT_IPW_AR_RELEASE_MAJOR_VERSION_VS_0_PBCFG_C != LPIT_GPT_IP_AR_RELEASE_MAJOR_VERSION_VS_0_PBCFG_H) || \
  86. (GPT_IPW_AR_RELEASE_MINOR_VERSION_VS_0_PBCFG_C != LPIT_GPT_IP_AR_RELEASE_MINOR_VERSION_VS_0_PBCFG_H) || \
  87. (GPT_IPW_AR_RELEASE_REVISION_VERSION_VS_0_PBCFG_C != LPIT_GPT_IP_AR_RELEASE_REVISION_VERSION_VS_0_PBCFG_H) \
  88. )
  89. #error "AutoSar Version Numbers of Gpt_Ipw_VS_0_PBcfg.c and LPit_Gpt_Ip_VS_0_PBcfg.h are different"
  90. #endif
  91. /* Check if the header files are of the same Software version */
  92. #if ((GPT_IPW_SW_MAJOR_VERSION_VS_0_PBCFG_C != LPIT_GPT_IP_SW_MAJOR_VERSION_VS_0_PBCFG_H) || \
  93. (GPT_IPW_SW_MINOR_VERSION_VS_0_PBCFG_C != LPIT_GPT_IP_SW_MINOR_VERSION_VS_0_PBCFG_H) || \
  94. (GPT_IPW_SW_PATCH_VERSION_VS_0_PBCFG_C != LPIT_GPT_IP_SW_PATCH_VERSION_VS_0_PBCFG_H) \
  95. )
  96. #error "Software Version Numbers of Gpt_Ipw_VS_0_PBcfg.c and LPit_Gpt_Ip_VS_0_PBcfg.h are different"
  97. #endif
  98. #if (GPT_IPW_VENDOR_ID_VS_0_PBCFG_C != LPTMR_GPT_IP_VENDOR_ID_VS_0_PBCFG_H)
  99. #error "Gpt_Ipw_VS_0_PBcfg.c and Lptmr_Gpt_Ip_VS_0_PBcfg.h have different vendor ids"
  100. #endif
  101. /* Check if the header files are of the same Autosar version */
  102. #if ((GPT_IPW_AR_RELEASE_MAJOR_VERSION_VS_0_PBCFG_C != LPTMR_GPT_IP_AR_RELEASE_MAJOR_VERSION_VS_0_PBCFG_H) || \
  103. (GPT_IPW_AR_RELEASE_MINOR_VERSION_VS_0_PBCFG_C != LPTMR_GPT_IP_AR_RELEASE_MINOR_VERSION_VS_0_PBCFG_H) || \
  104. (GPT_IPW_AR_RELEASE_REVISION_VERSION_VS_0_PBCFG_C != LPTMR_GPT_IP_AR_RELEASE_REVISION_VERSION_VS_0_PBCFG_H) \
  105. )
  106. #error "AutoSar Version Numbers of Gpt_Ipw_VS_0_PBcfg.c and Lptmr_Gpt_Ip_VS_0_PBcfg.h are different"
  107. #endif
  108. /* Check if the header files are of the same Software version */
  109. #if ((GPT_IPW_SW_MAJOR_VERSION_VS_0_PBCFG_C != LPTMR_GPT_IP_SW_MAJOR_VERSION_VS_0_PBCFG_H) || \
  110. (GPT_IPW_SW_MINOR_VERSION_VS_0_PBCFG_C != LPTMR_GPT_IP_SW_MINOR_VERSION_VS_0_PBCFG_H) || \
  111. (GPT_IPW_SW_PATCH_VERSION_VS_0_PBCFG_C != LPTMR_GPT_IP_SW_PATCH_VERSION_VS_0_PBCFG_H) \
  112. )
  113. #error "Software Version Numbers of Gpt_Ipw_VS_0_PBcfg.c and Lptmr_Gpt_Ip_VS_0_PBcfg.h are different"
  114. #endif
  115. #if (GPT_IPW_VENDOR_ID_VS_0_PBCFG_C != SRTC_IP_VENDOR_ID_VS_0_PBCFG_H)
  116. #error "Gpt_Ipw_VS_0_PBcfg.c and SRtc_Ip_VS_0_PBcfg.h have different vendor ids"
  117. #endif
  118. /* Check if the header files are of the same Autosar version */
  119. #if ((GPT_IPW_AR_RELEASE_MAJOR_VERSION_VS_0_PBCFG_C != SRTC_IP_AR_RELEASE_MAJOR_VERSION_VS_0_PBCFG_H) || \
  120. (GPT_IPW_AR_RELEASE_MINOR_VERSION_VS_0_PBCFG_C != SRTC_IP_AR_RELEASE_MINOR_VERSION_VS_0_PBCFG_H) || \
  121. (GPT_IPW_AR_RELEASE_REVISION_VERSION_VS_0_PBCFG_C != SRTC_IP_AR_RELEASE_REVISION_VERSION_VS_0_PBCFG_H) \
  122. )
  123. #error "AutoSar Version Numbers of Gpt_Ipw_VS_0_PBcfg.c and SRtc_Ip_VS_0_PBcfg.h are different"
  124. #endif
  125. /* Check if the header files are of the same Software version */
  126. #if ((GPT_IPW_SW_MAJOR_VERSION_VS_0_PBCFG_C != SRTC_IP_SW_MAJOR_VERSION_VS_0_PBCFG_H) || \
  127. (GPT_IPW_SW_MINOR_VERSION_VS_0_PBCFG_C != SRTC_IP_SW_MINOR_VERSION_VS_0_PBCFG_H) || \
  128. (GPT_IPW_SW_PATCH_VERSION_VS_0_PBCFG_C != SRTC_IP_SW_PATCH_VERSION_VS_0_PBCFG_H) \
  129. )
  130. #error "Software Version Numbers of Gpt_Ipw_VS_0_PBcfg.c and SRtc_Ip_VS_0_PBcfg.h are different"
  131. #endif
  132. #if (GPT_IPW_VENDOR_ID_VS_0_PBCFG_C != FTM_GPT_IP_VENDOR_ID_VS_0_PBCFG_H)
  133. #error "Gpt_Ipw_VS_0_PBcfg.c and Ftm_Gpt_Ip_VS_0_PBcfg.h have different vendor ids"
  134. #endif
  135. /* Check if the header files are of the same Autosar version */
  136. #if ((GPT_IPW_AR_RELEASE_MAJOR_VERSION_VS_0_PBCFG_C != FTM_GPT_IP_AR_RELEASE_MAJOR_VERSION_VS_0_PBCFG_H) || \
  137. (GPT_IPW_AR_RELEASE_MINOR_VERSION_VS_0_PBCFG_C != FTM_GPT_IP_AR_RELEASE_MINOR_VERSION_VS_0_PBCFG_H) || \
  138. (GPT_IPW_AR_RELEASE_REVISION_VERSION_VS_0_PBCFG_C != FTM_GPT_IP_AR_RELEASE_REVISION_VERSION_VS_0_PBCFG_H) \
  139. )
  140. #error "AutoSar Version Numbers of Gpt_Ipw_VS_0_PBcfg.c and Ftm_Gpt_Ip_VS_0_PBcfg.h are different"
  141. #endif
  142. /* Check if the header files are of the same Software version */
  143. #if ((GPT_IPW_SW_MAJOR_VERSION_VS_0_PBCFG_C != FTM_GPT_IP_SW_MAJOR_VERSION_VS_0_PBCFG_H) || \
  144. (GPT_IPW_SW_MINOR_VERSION_VS_0_PBCFG_C != FTM_GPT_IP_SW_MINOR_VERSION_VS_0_PBCFG_H) || \
  145. (GPT_IPW_SW_PATCH_VERSION_VS_0_PBCFG_C != FTM_GPT_IP_SW_PATCH_VERSION_VS_0_PBCFG_H) \
  146. )
  147. #error "Software Version Numbers of Gpt_Ipw_VS_0_PBcfg.c and Ftm_Gpt_Ip_VS_0_PBcfg.h are different"
  148. #endif
  149. /*==================================================================================================
  150. * LOCAL TYPEDEFS (STRUCTURES, UNIONS, ENUMS)
  151. *================================================================================================*/
  152. /*==================================================================================================
  153. * LOCAL MACROS
  154. *================================================================================================*/
  155. /*==================================================================================================
  156. * LOCAL CONSTANTS
  157. *================================================================================================*/
  158. /*==================================================================================================
  159. * LOCAL VARIABLES
  160. *================================================================================================*/
  161. /*==================================================================================================
  162. * GLOBAL CONSTANTS
  163. *================================================================================================*/
  164. /*==================================================================================================
  165. * GLOBAL VARIABLES
  166. *================================================================================================*/
  167. #define GPT_START_SEC_CONFIG_DATA_UNSPECIFIED
  168. #include "Gpt_MemMap.h"
  169. Gpt_Ipw_HwInstanceConfigType Gpt_Ipw_HwInstanceConfig_PB_VS_0[2U]=
  170. {
  171. {
  172. /** @brief IP type */
  173. GPT_FTM_MODULE,
  174. /** @brief IP instance */
  175. 0U,
  176. /** @brief IP instance pointer */
  177. {
  178. &FTM_0_InitConfig_PB_VS_0,
  179. NULL_PTR
  180. }
  181. }
  182. ,
  183. {
  184. /** @brief IP type */
  185. GPT_LPIT_MODULE,
  186. /** @brief IP instance */
  187. 0U,
  188. /** @brief IP instance pointer */
  189. {
  190. NULL_PTR,
  191. &LPIT_0_InitConfig_PB_VS_0
  192. }
  193. }
  194. };
  195. /*channels*/
  196. /**
  197. * @brief Gpt channels IP related configuration array
  198. */
  199. Gpt_Ipw_HwChannelConfigType Gpt_Ipw_ChannelConfig_PB_VS_0[2U] =
  200. {
  201. /** @brief GptChannelConfiguration_0 */
  202. {
  203. /** @brief IP type */
  204. GPT_LPIT_MODULE,
  205. /** @brief IP instance */
  206. 0U,
  207. /** @brief IP channel */
  208. 0U,
  209. /** @brief IP channel pointer */
  210. {
  211. NULL_PTR,
  212. NULL_PTR,
  213. NULL_PTR,
  214. &LPIT_0_ChannelConfig_PB_VS_0[0U]
  215. }
  216. }
  217. ,
  218. /** @brief GptChannelConfiguration_1 */
  219. {
  220. /** @brief IP type */
  221. GPT_FTM_MODULE,
  222. /** @brief IP instance */
  223. 0U,
  224. /** @brief IP channel */
  225. 0U,
  226. /** @brief IP instance config pointer */
  227. {
  228. &FTM_0_ChannelConfig_PB_VS_0[0U],
  229. NULL_PTR,
  230. NULL_PTR,
  231. NULL_PTR
  232. }
  233. }
  234. };
  235. #define GPT_STOP_SEC_CONFIG_DATA_UNSPECIFIED
  236. #include "Gpt_MemMap.h"
  237. /*==================================================================================================
  238. * LOCAL FUNCTION PROTOTYPES
  239. *================================================================================================*/
  240. /*==================================================================================================
  241. * LOCAL FUNCTIONS
  242. *================================================================================================*/
  243. /*==================================================================================================
  244. * GLOBAL FUNCTIONS
  245. *================================================================================================*/
  246. #ifdef __cplusplus
  247. }
  248. #endif/*GPT_IPW_PBCFG_C*/
  249. /** @} */