CDD_Mcl_Cfg_Defines.h 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. /*==================================================================================================
  2. * Project : RTD AUTOSAR 4.4
  3. * Platform : CORTEXM
  4. * Peripheral : DMA,CACHE,TRGMUX,FLEXIO
  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 CDD_MCL_CFG_DEFINES_H_
  25. #define CDD_MCL_CFG_DEFINES_H_
  26. #ifdef __cplusplus
  27. extern "C"
  28. {
  29. #endif
  30. /*==================================================================================================
  31. INCLUDE FILES
  32. 1) system and project includes
  33. 2) needed interfaces from external units
  34. 3) internal and external interfaces from this unit
  35. ==================================================================================================*/
  36. #include "Dma_Ip_Cfg_Defines.h"
  37. #include "Cache_Ip_Cfg_Defines.h"
  38. #include "Trgmux_Ip_Cfg_Defines.h"
  39. #include "Flexio_Mcl_Ip_Cfg_Defines.h"
  40. #include "Ftm_Mcl_Ip_Cfg.h"
  41. /*==================================================================================================
  42. SOURCE FILE VERSION INFORMATION
  43. ==================================================================================================*/
  44. #define CDD_MCL_CFG_DEFINES_VENDOR_ID_H 43
  45. #define CDD_MCL_CFG_DEFINES_AR_RELEASE_MAJOR_VERSION_H 4
  46. #define CDD_MCL_CFG_DEFINES_AR_RELEASE_MINOR_VERSION_H 4
  47. #define CDD_MCL_CFG_DEFINES_AR_RELEASE_REVISION_VERSION_H 0
  48. #define CDD_MCL_CFG_DEFINES_SW_MAJOR_VERSION_H 1
  49. #define CDD_MCL_CFG_DEFINES_SW_MINOR_VERSION_H 0
  50. #define CDD_MCL_CFG_DEFINES_SW_PATCH_VERSION_H 0
  51. /*==================================================================================================
  52. FILE VERSION CHECKS
  53. ==================================================================================================*/
  54. /* Check if header file and Dma_Ip_Cfg_Defines.h file are of the same vendor */
  55. #if (CDD_MCL_CFG_DEFINES_VENDOR_ID_H != DMA_IP_CFG_DEFINES_VENDOR_ID_H)
  56. #error "CDD_Mcl_Cfg_Defines.h and Dma_Ip_Cfg_Defines.h have different vendor ids"
  57. #endif
  58. /* Check if header file and Dma_Ip_Cfg_Defines.h file are of the same Autosar version */
  59. #if ((CDD_MCL_CFG_DEFINES_AR_RELEASE_MAJOR_VERSION_H != DMA_IP_CFG_DEFINES_AR_RELEASE_MAJOR_VERSION_H) || \
  60. (CDD_MCL_CFG_DEFINES_AR_RELEASE_MINOR_VERSION_H != DMA_IP_CFG_DEFINES_AR_RELEASE_MINOR_VERSION_H) || \
  61. (CDD_MCL_CFG_DEFINES_AR_RELEASE_REVISION_VERSION_H != DMA_IP_CFG_DEFINES_AR_RELEASE_REVISION_VERSION_H) \
  62. )
  63. #error "AutoSar Version Numbers of CDD_Mcl_Cfg_Defines.h and Dma_Ip_Cfg_Defines.h are different"
  64. #endif
  65. /* Check if header file and Dma_Ip_Cfg_Defines.h file are of the same Software version */
  66. #if ((CDD_MCL_CFG_DEFINES_SW_MAJOR_VERSION_H != DMA_IP_CFG_DEFINES_SW_MAJOR_VERSION_H) || \
  67. (CDD_MCL_CFG_DEFINES_SW_MINOR_VERSION_H != DMA_IP_CFG_DEFINES_SW_MINOR_VERSION_H) || \
  68. (CDD_MCL_CFG_DEFINES_SW_PATCH_VERSION_H != DMA_IP_CFG_DEFINES_SW_PATCH_VERSION_H) \
  69. )
  70. #error "Software Version Numbers of CDD_Mcl_Cfg_Defines.h and Dma_Ip_Cfg_Defines.h are different"
  71. #endif
  72. /* Check if header file and Cache_Ip_Cfg_Defines.h file are of the same vendor */
  73. #if (CDD_MCL_CFG_DEFINES_VENDOR_ID_H != CACHE_IP_CFG_DEFINES_VENDOR_ID_H)
  74. #error "CDD_Mcl_Cfg_Defines.h and Cache_Ip_Cfg_Defines.h have different vendor ids"
  75. #endif
  76. /* Check if header file and Cache_Ip_Cfg_Defines.h file are of the same Autosar version */
  77. #if ((CDD_MCL_CFG_DEFINES_AR_RELEASE_MAJOR_VERSION_H != CACHE_IP_CFG_DEFINES_AR_RELEASE_MAJOR_VERSION_H) || \
  78. (CDD_MCL_CFG_DEFINES_AR_RELEASE_MINOR_VERSION_H != CACHE_IP_CFG_DEFINES_AR_RELEASE_MINOR_VERSION_H) || \
  79. (CDD_MCL_CFG_DEFINES_AR_RELEASE_REVISION_VERSION_H != CACHE_IP_CFG_DEFINES_AR_RELEASE_REVISION_VERSION_H) \
  80. )
  81. #error "AutoSar Version Numbers of CDD_Mcl_Cfg_Defines.h and Cache_Ip_Cfg_Defines.h are different"
  82. #endif
  83. /* Check if header file and Cache_Ip_Cfg_Defines.h file are of the same Software version */
  84. #if ((CDD_MCL_CFG_DEFINES_SW_MAJOR_VERSION_H != CACHE_IP_CFG_DEFINES_SW_MAJOR_VERSION_H) || \
  85. (CDD_MCL_CFG_DEFINES_SW_MINOR_VERSION_H != CACHE_IP_CFG_DEFINES_SW_MINOR_VERSION_H) || \
  86. (CDD_MCL_CFG_DEFINES_SW_PATCH_VERSION_H != CACHE_IP_CFG_DEFINES_SW_PATCH_VERSION_H) \
  87. )
  88. #error "Software Version Numbers of CDD_Mcl_Cfg_Defines.h and Cache_Ip_Cfg_Defines.h are different"
  89. #endif
  90. /* Check if header file and Trgmux_Ip_Cfg_Defines.h file are of the same vendor */
  91. #if (CDD_MCL_CFG_DEFINES_VENDOR_ID_H != TRGMUX_IP_CFG_DEFINES_VENDOR_ID_H)
  92. #error "CDD_Mcl_Cfg_Defines.h and Trgmux_Ip_Cfg_Defines.h have different vendor ids"
  93. #endif
  94. /* Check if header file and Trgmux_Ip_Cfg_Defines.h file are of the same Autosar version */
  95. #if ((CDD_MCL_CFG_DEFINES_AR_RELEASE_MAJOR_VERSION_H != TRGMUX_IP_CFG_DEFINES_AR_RELEASE_MAJOR_VERSION_H) || \
  96. (CDD_MCL_CFG_DEFINES_AR_RELEASE_MINOR_VERSION_H != TRGMUX_IP_CFG_DEFINES_AR_RELEASE_MINOR_VERSION_H) || \
  97. (CDD_MCL_CFG_DEFINES_AR_RELEASE_REVISION_VERSION_H != TRGMUX_IP_CFG_DEFINES_AR_RELEASE_REVISION_VERSION_H) \
  98. )
  99. #error "AutoSar Version Numbers of CDD_Mcl_Cfg_Defines.h and Trgmux_Ip_Cfg_Defines.h are different"
  100. #endif
  101. /* Check if header file and Trgmux_Ip_Cfg_Defines.h file are of the same Software version */
  102. #if ((CDD_MCL_CFG_DEFINES_SW_MAJOR_VERSION_H != TRGMUX_IP_CFG_DEFINES_SW_MAJOR_VERSION_H) || \
  103. (CDD_MCL_CFG_DEFINES_SW_MINOR_VERSION_H != TRGMUX_IP_CFG_DEFINES_SW_MINOR_VERSION_H) || \
  104. (CDD_MCL_CFG_DEFINES_SW_PATCH_VERSION_H != TRGMUX_IP_CFG_DEFINES_SW_PATCH_VERSION_H) \
  105. )
  106. #error "Software Version Numbers of CDD_Mcl_Cfg_Defines.h and Trgmux_Ip_Cfg_Defines.h are different"
  107. #endif
  108. /* Check if header file and Flexio_Mcl_Ip_Cfg_Defines.h file are of the same vendor */
  109. #if (CDD_MCL_CFG_DEFINES_VENDOR_ID_H != FLEXIO_MCL_IP_CFG_DEFINES_VENDOR_ID_H)
  110. #error "CDD_Mcl_Cfg_Defines.h and Flexio_Mcl_Ip_Cfg_Defines.h have different vendor ids"
  111. #endif
  112. /* Check if header file and Flexio_Mcl_Ip_Cfg_Defines.h file are of the same Autosar version */
  113. #if ((CDD_MCL_CFG_DEFINES_AR_RELEASE_MAJOR_VERSION_H != FLEXIO_MCL_IP_CFG_DEFINES_AR_RELEASE_MAJOR_VERSION_H) || \
  114. (CDD_MCL_CFG_DEFINES_AR_RELEASE_MINOR_VERSION_H != FLEXIO_MCL_IP_CFG_DEFINES_AR_RELEASE_MINOR_VERSION_H) || \
  115. (CDD_MCL_CFG_DEFINES_AR_RELEASE_REVISION_VERSION_H != FLEXIO_MCL_IP_CFG_DEFINES_AR_RELEASE_REVISION_VERSION_H) \
  116. )
  117. #error "AutoSar Version Numbers of CDD_Mcl_Cfg_Defines.h and Flexio_Mcl_Ip_Cfg_Defines.h are different"
  118. #endif
  119. /* Check if header file and Flexio_Mcl_Ip_Cfg_Defines.h file are of the same Software version */
  120. #if ((CDD_MCL_CFG_DEFINES_SW_MAJOR_VERSION_H != FLEXIO_MCL_IP_CFG_DEFINES_SW_MAJOR_VERSION_H) || \
  121. (CDD_MCL_CFG_DEFINES_SW_MINOR_VERSION_H != FLEXIO_MCL_IP_CFG_DEFINES_SW_MINOR_VERSION_H) || \
  122. (CDD_MCL_CFG_DEFINES_SW_PATCH_VERSION_H != FLEXIO_MCL_IP_CFG_DEFINES_SW_PATCH_VERSION_H) \
  123. )
  124. #error "Software Version Numbers of CDD_Mcl_Cfg_Defines.h and Flexio_Mcl_Ip_Cfg_Defines.h are different"
  125. #endif
  126. /* Check if header file and Ftm_Mcl_Ip_Cfg.h file are of the same vendor */
  127. #if (CDD_MCL_CFG_DEFINES_VENDOR_ID_H != FTM_MCL_IP_CFG_VENDOR_ID)
  128. #error "CDD_Mcl_Cfg_Defines.h and Ftm_Mcl_Ip_Cfg.h have different vendor ids"
  129. #endif
  130. /* Check if header file and Ftm_Mcl_Ip_Cfg.h file are of the same Autosar version */
  131. #if ((CDD_MCL_CFG_DEFINES_AR_RELEASE_MAJOR_VERSION_H != FTM_MCL_IP_CFG_AR_RELEASE_MAJOR_VERSION) || \
  132. (CDD_MCL_CFG_DEFINES_AR_RELEASE_MINOR_VERSION_H != FTM_MCL_IP_CFG_AR_RELEASE_MINOR_VERSION) || \
  133. (CDD_MCL_CFG_DEFINES_AR_RELEASE_REVISION_VERSION_H != FTM_MCL_IP_CFG_AR_RELEASE_REVISION_VERSION))
  134. #error "AutoSar Version Numbers of CDD_Mcl_Cfg_Defines.h and Ftm_Mcl_Ip_Cfg.h are different"
  135. #endif
  136. /* Check if header file and Ftm_Mcl_Ip_Cfg.h file are of the same Software version */
  137. #if ((CDD_MCL_CFG_DEFINES_SW_MAJOR_VERSION_H != FTM_MCL_IP_CFG_SW_MAJOR_VERSION) || \
  138. (CDD_MCL_CFG_DEFINES_SW_MINOR_VERSION_H != FTM_MCL_IP_CFG_SW_MINOR_VERSION) || \
  139. (CDD_MCL_CFG_DEFINES_SW_PATCH_VERSION_H != FTM_MCL_IP_CFG_SW_PATCH_VERSION))
  140. #error "Software Version Numbers of CDD_Mcl_Cfg_Defines.h and Ftm_Mcl_Ip_Cfg.h are different"
  141. #endif
  142. /*==================================================================================================
  143. DEFINES AND MACROS
  144. ==================================================================================================*/
  145. /*-----------------------------------------------/
  146. / DMA /
  147. /-----------------------------------------------*/
  148. #define MCL_DMA_IS_AVAILABLE DMA_IP_IS_AVAILABLE
  149. /*-----------------------------------------------/
  150. / CACHE /
  151. /-----------------------------------------------*/
  152. #define MCL_CACHE_IS_AVAILABLE CACHE_IP_IS_AVAILABLE
  153. /*-----------------------------------------------/
  154. / TRGMUX /
  155. /-----------------------------------------------*/
  156. #define MCL_TRGMUX_IS_AVAILABLE TRGMUX_IP_IS_AVAILABLE
  157. /*-----------------------------------------------/
  158. / EMIOS /
  159. /-----------------------------------------------*/
  160. #define MCL_EMIOS_IS_AVAILABLE STD_OFF
  161. /*-----------------------------------------------/
  162. / LCU /
  163. /-----------------------------------------------*/
  164. #define MCL_LCU_IS_AVAILABLE STD_OFF
  165. /*-----------------------------------------------/
  166. / FLEXIO /
  167. /-----------------------------------------------*/
  168. #define MCL_FLEXIO_IS_AVAILABLE FLEXIO_IP_IS_AVAILABLE
  169. /*-----------------------------------------------/
  170. / FTM /
  171. /-----------------------------------------------*/
  172. #define MCL_COMMON_TIMEBASE_IS_AVAILABLE FTM_MCL_SELECT_COMMON_TIMEBASE_API
  173. /*-----------------------------------------------/
  174. / MULTICORE /
  175. /-----------------------------------------------*/
  176. #define MCL_MULTICORE_IS_AVAILABLE STD_OFF
  177. /*-----------------------------------------------/
  178. / VERSION INFO API /
  179. /-----------------------------------------------*/
  180. #define MCL_VERSION_INFO_API_IS_AVAILABLE STD_OFF
  181. #ifdef __cplusplus
  182. }
  183. #endif
  184. #endif /* CDD_MCL_CFG_DEFINES_H_ */