Icu_Ipw_VS_0_PBcfg.c 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  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. /**
  25. * @file Icu_Ipw_VS_0_PBcfg.c
  26. * @version 1.0.0
  27. *
  28. * @brief AUTOSAR Icu - contains the data exported by the Icu module
  29. * @details Contains the information that will be exported by the module, as requested by Autosar.
  30. *
  31. * @addtogroup icu_ipw
  32. * @{
  33. */
  34. #ifdef __cplusplus
  35. extern "C"{
  36. #endif
  37. /*==================================================================================================
  38. * INCLUDE FILES
  39. * 1) system and project includes
  40. * 2) needed interfaces from external units
  41. * 3) internal and external interfaces from this unit
  42. *================================================================================================*/
  43. #include "StandardTypes.h"
  44. #include "Icu_Ipw_Types.h"
  45. #include "Ftm_Icu_Ip.h"
  46. #include "Lpit_Icu_Ip.h"
  47. #include "Lptmr_Icu_Ip.h"
  48. #include "Port_Ci_Icu_Ip.h"
  49. #include "Cmp_Ip.h"
  50. /*==================================================================================================
  51. * SOURCE FILE VERSION INFORMATION
  52. *================================================================================================*/
  53. #define ICU_IPW_VS_0_PBCFG_VENDOR_ID_C 43
  54. #define ICU_IPW_VS_0_PBCFG_AR_RELEASE_MAJOR_VERSION_C 4
  55. #define ICU_IPW_VS_0_PBCFG_AR_RELEASE_MINOR_VERSION_C 4
  56. #define ICU_IPW_VS_0_PBCFG_AR_RELEASE_REVISION_VERSION_C 0
  57. #define ICU_IPW_VS_0_PBCFG_SW_MAJOR_VERSION_C 1
  58. #define ICU_IPW_VS_0_PBCFG_SW_MINOR_VERSION_C 0
  59. #define ICU_IPW_VS_0_PBCFG_SW_PATCH_VERSION_C 0
  60. /*==================================================================================================
  61. * FILE VERSION CHECKS
  62. *================================================================================================*/
  63. #ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
  64. /* Check if header file and StandardTypes.h file are of the same Autosar version */
  65. #if ((ICU_IPW_VS_0_PBCFG_AR_RELEASE_MAJOR_VERSION_C != STD_AR_RELEASE_MAJOR_VERSION) || \
  66. (ICU_IPW_VS_0_PBCFG_AR_RELEASE_MINOR_VERSION_C != STD_AR_RELEASE_MINOR_VERSION))
  67. #error "AutoSar Version Numbers of Icu_Ipw_VS_0_PBCfg.c and StandardTypes.h are different"
  68. #endif
  69. #endif
  70. /* Check if source file and ICU header file are of the same vendor */
  71. #if (ICU_IPW_VS_0_PBCFG_VENDOR_ID_C != ICU_IPW_TYPES_VENDOR_ID)
  72. #error "Icu_Ipw_VS_0_PBCfg.c and Icu_Ipw_Types.h have different vendor IDs"
  73. #endif
  74. /* Check if source file and ICU header file are of the same AutoSar version */
  75. #if ((ICU_IPW_VS_0_PBCFG_AR_RELEASE_MAJOR_VERSION_C != ICU_IPW_TYPES_AR_RELEASE_MAJOR_VERSION) || \
  76. (ICU_IPW_VS_0_PBCFG_AR_RELEASE_MINOR_VERSION_C != ICU_IPW_TYPES_AR_RELEASE_MINOR_VERSION) || \
  77. (ICU_IPW_VS_0_PBCFG_AR_RELEASE_REVISION_VERSION_C != ICU_IPW_TYPES_AR_RELEASE_REVISION_VERSION))
  78. #error "AutoSar Version Numbers of Icu_Ipw_VS_0_PBCfg.c and Icu_Ipw_Types.h are different"
  79. #endif
  80. /* Check if source file and ICU header file are of the same Software version */
  81. #if ((ICU_IPW_VS_0_PBCFG_SW_MAJOR_VERSION_C != ICU_IPW_TYPES_SW_MAJOR_VERSION) || \
  82. (ICU_IPW_VS_0_PBCFG_SW_MINOR_VERSION_C != ICU_IPW_TYPES_SW_MINOR_VERSION) || \
  83. (ICU_IPW_VS_0_PBCFG_SW_PATCH_VERSION_C != ICU_IPW_TYPES_SW_PATCH_VERSION))
  84. #error "Software Version Numbers of Icu_Ipw_VS_0_PBCfg.c and Icu_Ipw_Types.h are different"
  85. #endif
  86. /* Check if source file and ICU header file are of the same vendor */
  87. #if (ICU_IPW_VS_0_PBCFG_VENDOR_ID_C != LPTMR_ICU_IP_VENDOR_ID)
  88. #error "Icu_Ipw_VS_0_PBCfg.c and Lptmr_Icu_Ip.h have different vendor IDs"
  89. #endif
  90. /* Check if source file and ICU header file are of the same AutoSar version */
  91. #if ((ICU_IPW_VS_0_PBCFG_AR_RELEASE_MAJOR_VERSION_C != LPTMR_ICU_IP_AR_RELEASE_MAJOR_VERSION) || \
  92. (ICU_IPW_VS_0_PBCFG_AR_RELEASE_MINOR_VERSION_C != LPTMR_ICU_IP_AR_RELEASE_MINOR_VERSION) || \
  93. (ICU_IPW_VS_0_PBCFG_AR_RELEASE_REVISION_VERSION_C != LPTMR_ICU_IP_AR_RELEASE_REVISION_VERSION))
  94. #error "AutoSar Version Numbers of Icu_Ipw_VS_0_PBCfg.c and Lptmr_Icu_Ip.h are different"
  95. #endif
  96. /* Check if source file and ICU header file are of the same Software version */
  97. #if ((ICU_IPW_VS_0_PBCFG_SW_MAJOR_VERSION_C != LPTMR_ICU_IP_SW_MAJOR_VERSION) || \
  98. (ICU_IPW_VS_0_PBCFG_SW_MINOR_VERSION_C != LPTMR_ICU_IP_SW_MINOR_VERSION) || \
  99. (ICU_IPW_VS_0_PBCFG_SW_PATCH_VERSION_C != LPTMR_ICU_IP_SW_PATCH_VERSION))
  100. #error "Software Version Numbers of Icu_Ipw_VS_0_PBCfg.c and Lptmr_Icu_Ip.h are different"
  101. #endif
  102. #if (ICU_IPW_VS_0_PBCFG_VENDOR_ID_C != LPIT_ICU_IP_VENDOR_ID)
  103. #error "Icu_Ipw_VS_0_PBCfg.c and Lpit_Icu_Ip.h have different vendor ids"
  104. #endif
  105. /* Check if source file and Lpit_Icu_Ip.h file are of the same Autosar version */
  106. #if ((ICU_IPW_VS_0_PBCFG_AR_RELEASE_MAJOR_VERSION_C != LPIT_ICU_IP_AR_RELEASE_MAJOR_VERSION) || \
  107. (ICU_IPW_VS_0_PBCFG_AR_RELEASE_MINOR_VERSION_C != LPIT_ICU_IP_AR_RELEASE_MINOR_VERSION) || \
  108. (ICU_IPW_VS_0_PBCFG_AR_RELEASE_REVISION_VERSION_C != LPIT_ICU_IP_AR_RELEASE_REVISION_VERSION))
  109. #error "AutoSar Version Numbers of Icu_Ipw_VS_0_PBCfg.c and Lpit_Icu_Ip.h are different"
  110. #endif
  111. /* Check if source file and Lpit_Icu_Ip.h file are of the same Software version */
  112. #if ((ICU_IPW_VS_0_PBCFG_SW_MAJOR_VERSION_C != LPIT_ICU_IP_SW_MAJOR_VERSION) || \
  113. (ICU_IPW_VS_0_PBCFG_SW_MINOR_VERSION_C != LPIT_ICU_IP_SW_MINOR_VERSION) || \
  114. (ICU_IPW_VS_0_PBCFG_SW_PATCH_VERSION_C != LPIT_ICU_IP_SW_PATCH_VERSION))
  115. #error "Software Version Numbers of Icu_Ipw_VS_0_PBCfg.c and Lpit_Icu_Ip.h are different"
  116. #endif
  117. #if (ICU_IPW_VS_0_PBCFG_VENDOR_ID_C != FTM_ICU_IP_VENDOR_ID)
  118. #error "Icu_Ipw_VS_0_PBCfg.c and Ftm_Icu_Ip.h have different vendor ids"
  119. #endif
  120. /* Check if source file and Ftm_Icu_Ip.h file are of the same Autosar version */
  121. #if ((ICU_IPW_VS_0_PBCFG_AR_RELEASE_MAJOR_VERSION_C != FTM_ICU_IP_AR_RELEASE_MAJOR_VERSION) || \
  122. (ICU_IPW_VS_0_PBCFG_AR_RELEASE_MINOR_VERSION_C != FTM_ICU_IP_AR_RELEASE_MINOR_VERSION) || \
  123. (ICU_IPW_VS_0_PBCFG_AR_RELEASE_REVISION_VERSION_C != FTM_ICU_IP_AR_RELEASE_REVISION_VERSION))
  124. #error "AutoSar Version Numbers of Icu_Ipw_VS_0_PBCfg.c and Ftm_Icu_Ip.h are different"
  125. #endif
  126. /* Check if source file and Ftm_Icu_Ip.h file are of the same Software version */
  127. #if ((ICU_IPW_VS_0_PBCFG_SW_MAJOR_VERSION_C != FTM_ICU_IP_SW_MAJOR_VERSION) || \
  128. (ICU_IPW_VS_0_PBCFG_SW_MINOR_VERSION_C != FTM_ICU_IP_SW_MINOR_VERSION) || \
  129. (ICU_IPW_VS_0_PBCFG_SW_PATCH_VERSION_C != FTM_ICU_IP_SW_PATCH_VERSION))
  130. #error "Software Version Numbers of Icu_Ipw_VS_0_PBCfg.c and Ftm_Icu_Ip.h are different"
  131. #endif
  132. #if (ICU_IPW_VS_0_PBCFG_VENDOR_ID_C != PORT_CI_ICU_IP_VENDOR_ID)
  133. #error "Icu_Ipw_VS_0_PBCfg.c and Port_Ci_Icu_Ip.h have different vendor ids"
  134. #endif
  135. /* Check if source file and Port_Ci_Icu_Ip.h file are of the same Autosar version */
  136. #if ((ICU_IPW_VS_0_PBCFG_AR_RELEASE_MAJOR_VERSION_C != PORT_CI_ICU_IP_AR_RELEASE_MAJOR_VERSION) || \
  137. (ICU_IPW_VS_0_PBCFG_AR_RELEASE_MINOR_VERSION_C != PORT_CI_ICU_IP_AR_RELEASE_MINOR_VERSION) || \
  138. (ICU_IPW_VS_0_PBCFG_AR_RELEASE_REVISION_VERSION_C != PORT_CI_ICU_IP_AR_RELEASE_REVISION_VERSION))
  139. #error "AutoSar Version Numbers of Icu_Ipw_VS_0_PBCfg.c and Port_Ci_Icu_Ip.h are different"
  140. #endif
  141. /* Check if source file and Port_Ci_Icu_Ip.h file are of the same Software version */
  142. #if ((ICU_IPW_VS_0_PBCFG_SW_MAJOR_VERSION_C != PORT_CI_ICU_IP_SW_MAJOR_VERSION) || \
  143. (ICU_IPW_VS_0_PBCFG_SW_MINOR_VERSION_C != PORT_CI_ICU_IP_SW_MINOR_VERSION) || \
  144. (ICU_IPW_VS_0_PBCFG_SW_PATCH_VERSION_C != PORT_CI_ICU_IP_SW_PATCH_VERSION))
  145. #error "Software Version Numbers of Icu_Ipw_VS_0_PBCfg.c and Port_Ci_Icu_Ip.h are different"
  146. #endif
  147. /* Check if source file and Cmp_Ip.h file are of the same Autosar version */
  148. #if ((ICU_IPW_VS_0_PBCFG_AR_RELEASE_MAJOR_VERSION_C != CMP_IP_AR_RELEASE_MAJOR_VERSION) || \
  149. (ICU_IPW_VS_0_PBCFG_AR_RELEASE_MINOR_VERSION_C != CMP_IP_AR_RELEASE_MINOR_VERSION) || \
  150. (ICU_IPW_VS_0_PBCFG_AR_RELEASE_REVISION_VERSION_C != CMP_IP_AR_RELEASE_REVISION_VERSION))
  151. #error "AutoSar Version Numbers of Icu_Ipw_VS_0_PBCfg.c and Cmp_Ip.h are different"
  152. #endif
  153. /* Check if source file and Cmp_Ip.h file are of the same Software version */
  154. #if ((ICU_IPW_VS_0_PBCFG_SW_MAJOR_VERSION_C != CMP_IP_SW_MAJOR_VERSION) || \
  155. (ICU_IPW_VS_0_PBCFG_SW_MINOR_VERSION_C != CMP_IP_SW_MINOR_VERSION) || \
  156. (ICU_IPW_VS_0_PBCFG_SW_PATCH_VERSION_C != CMP_IP_SW_PATCH_VERSION))
  157. #error "Software Version Numbers of Icu_Ipw_VS_0_PBCfg.c and Cmp_Ip.h are different"
  158. #endif
  159. /*==================================================================================================
  160. * LOCAL TYPEDEFS (STRUCTURES, UNIONS, ENUMS)
  161. *================================================================================================*/
  162. /*==================================================================================================
  163. * LOCAL MACROS
  164. *================================================================================================*/
  165. /*==================================================================================================
  166. * LOCAL CONSTANTS
  167. *================================================================================================*/
  168. /*==================================================================================================
  169. * LOCAL VARIABLES
  170. *================================================================================================*/
  171. /*==================================================================================================
  172. * GLOBAL CONSTANTS
  173. *================================================================================================*/
  174. /*==================================================================================================
  175. * GLOBAL VARIABLES
  176. *================================================================================================*/
  177. #define ICU_START_SEC_CONFIG_DATA_UNSPECIFIED
  178. #include "Icu_MemMap.h"
  179. /**
  180. * @brief This index relates the Hardware channels with the respective ICU channel. *
  181. * When an normal interrupt is asserted this index is used to locate the corresponding ICU channel
  182. */
  183. /** @brief ICU channels IP related configuration array */
  184. const Icu_Ipw_ChannelConfigType Icu_Ipw_IpChannelConfig_PB_VS_0[1U] =
  185. {
  186. /** @brief IcuChannel_0 */
  187. {
  188. /** @brief IP type of this channel */
  189. ICU_PORT_CI_MODULE,
  190. /** @brief Instance number */
  191. (uint8)0,
  192. /** @brief Ftm IP channel pointer */
  193. NULL_PTR,
  194. /** @brief LPIT IP channel pointer */
  195. NULL_PTR,
  196. /** @brief LPTMR IP channel pointer */
  197. NULL_PTR,
  198. /** @brief Port Ci IP channel pointer */
  199. &Port_Ci_Icu_Ip_0_ChannelConfig_PB_VS_0[0U],
  200. /** @brief Cmp IP channel pointer */
  201. NULL_PTR,
  202. /** @brief Index in the configuration table of the Port Ci channels */
  203. (uint8)0
  204. }
  205. };
  206. const Icu_Ipw_IpConfigType Icu_Ipw_IpConfig_PB_VS_0[1U] =
  207. {
  208. {
  209. /** @brief IP type */
  210. ICU_PORT_CI_MODULE,
  211. /** @brief IP instance number */
  212. 0U,
  213. /** @brief pointer to Ftm Ci HW configuration of instance */
  214. NULL_PTR,
  215. /** @brief pointer to Lpit HW configuration of instance */
  216. NULL_PTR,
  217. /** @brief pointer to Lptmr HW configuration of instance */
  218. NULL_PTR,
  219. /** @brief pointer to Port Ci HW configuration of instance */
  220. &Port_Ci_Icu_Ip_0_Config_PB_VS_0,
  221. /** @brief pointer to Cmp HW configuration of instance */
  222. NULL_PTR
  223. }
  224. };
  225. #define ICU_STOP_SEC_CONFIG_DATA_UNSPECIFIED
  226. #include "Icu_MemMap.h"
  227. /*==================================================================================================
  228. * LOCAL FUNCTION PROTOTYPES
  229. *================================================================================================*/
  230. /*==================================================================================================
  231. * LOCAL FUNCTIONS
  232. *================================================================================================*/
  233. /*==================================================================================================
  234. * GLOBAL FUNCTIONS
  235. *================================================================================================*/
  236. #ifdef __cplusplus
  237. }
  238. #endif
  239. /** @} */