CDD_Mcl_Cfg.h 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  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_H_
  25. #define CDD_MCL_CFG_H_
  26. #ifdef __cplusplus
  27. extern "C"{
  28. #endif
  29. /**
  30. * @page misra_violations MISRA-C:2012 violations
  31. **/
  32. /*==================================================================================================
  33. INCLUDE FILES
  34. 1) system and project includes
  35. 2) needed interfaces from external units
  36. 3) internal and external interfaces from this unit
  37. ==================================================================================================*/
  38. #include "Mcl_Types.h"
  39. #include "Mcal.h"
  40. #include "Dma_Ip_Cfg.h"
  41. #include "Trgmux_Ip_Cfg.h"
  42. #include "Flexio_Mcl_Ip_Cfg.h"
  43. #include "CDD_Mcl_VS_0_PBcfg.h"
  44. /*==================================================================================================
  45. SOURCE FILE VERSION INFORMATION
  46. ==================================================================================================*/
  47. #define CDD_MCL_CFG_VENDOR_ID_H 43
  48. #define CDD_MCL_CFG_AR_RELEASE_MAJOR_VERSION_H 4
  49. #define CDD_MCL_CFG_AR_RELEASE_MINOR_VERSION_H 4
  50. #define CDD_MCL_CFG_AR_RELEASE_REVISION_VERSION_H 0
  51. #define CDD_MCL_CFG_SW_MAJOR_VERSION_H 1
  52. #define CDD_MCL_CFG_SW_MINOR_VERSION_H 0
  53. #define CDD_MCL_CFG_SW_PATCH_VERSION_H 0
  54. /*==================================================================================================
  55. FILE VERSION CHECKS
  56. ==================================================================================================*/
  57. #ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
  58. /* Check if header file and Mcal header file are of the same Autosar version */
  59. #if ((CDD_MCL_CFG_AR_RELEASE_MAJOR_VERSION_H != MCAL_AR_RELEASE_MAJOR_VERSION) || \
  60. (CDD_MCL_CFG_AR_RELEASE_MINOR_VERSION_H != MCAL_AR_RELEASE_MINOR_VERSION))
  61. #error "AutoSar Version Numbers of CDD_Mcl_Cfg.h and Mcal.h are different"
  62. #endif
  63. #endif
  64. /* Check if header file and Mcl_Types.h file are of the same vendor */
  65. #if (CDD_MCL_CFG_VENDOR_ID_H != MCL_TYPES_VENDOR_ID_H)
  66. #error "CDD_Mcl_Cfg.h and Mcl_Types.h have different vendor ids"
  67. #endif
  68. /* Check if header file and Mcl_Types.h file are of the same Autosar version */
  69. #if ((CDD_MCL_CFG_AR_RELEASE_MAJOR_VERSION_H != MCL_TYPES_AR_RELEASE_MAJOR_VERSION_H) || \
  70. (CDD_MCL_CFG_AR_RELEASE_MINOR_VERSION_H != MCL_TYPES_AR_RELEASE_MINOR_VERSION_H) || \
  71. (CDD_MCL_CFG_AR_RELEASE_REVISION_VERSION_H != MCL_TYPES_AR_RELEASE_REVISION_VERSION_H) \
  72. )
  73. #error "AutoSar Version Numbers of CDD_Mcl_Cfg.h and Mcl_Types.h are different"
  74. #endif
  75. /* Check if header file and Mcl_Types.h file are of the same Software version */
  76. #if ((CDD_MCL_CFG_SW_MAJOR_VERSION_H != MCL_TYPES_SW_MAJOR_VERSION_H) || \
  77. (CDD_MCL_CFG_SW_MINOR_VERSION_H != MCL_TYPES_SW_MINOR_VERSION_H) || \
  78. (CDD_MCL_CFG_SW_PATCH_VERSION_H != MCL_TYPES_SW_PATCH_VERSION_H) \
  79. )
  80. #error "Software Version Numbers of CDD_Mcl_Cfg.h and Mcl_Types.h are different"
  81. #endif
  82. /* Check if header file and Dma_Ip_Cfg.h file are of the same vendor */
  83. #if (CDD_MCL_CFG_VENDOR_ID_H != DMA_IP_CFG_VENDOR_ID_H)
  84. #error "CDD_Mcl_Cfg.h and Dma_Ip_Cfg.h have different vendor ids"
  85. #endif
  86. /* Check if header file and Dma_Ip_Cfg.h file are of the same Autosar version */
  87. #if ((CDD_MCL_CFG_AR_RELEASE_MAJOR_VERSION_H != DMA_IP_CFG_AR_RELEASE_MAJOR_VERSION_H) || \
  88. (CDD_MCL_CFG_AR_RELEASE_MINOR_VERSION_H != DMA_IP_CFG_AR_RELEASE_MINOR_VERSION_H) || \
  89. (CDD_MCL_CFG_AR_RELEASE_REVISION_VERSION_H != DMA_IP_CFG_AR_RELEASE_REVISION_VERSION_H) \
  90. )
  91. #error "AutoSar Version Numbers of CDD_Mcl_Cfg.h and Dma_Ip_Cfg.h are different"
  92. #endif
  93. /* Check if header file and Dma_Ip_Cfg.h file are of the same Software version */
  94. #if ((CDD_MCL_CFG_SW_MAJOR_VERSION_H != DMA_IP_CFG_SW_MAJOR_VERSION_H) || \
  95. (CDD_MCL_CFG_SW_MINOR_VERSION_H != DMA_IP_CFG_SW_MINOR_VERSION_H) || \
  96. (CDD_MCL_CFG_SW_PATCH_VERSION_H != DMA_IP_CFG_SW_PATCH_VERSION_H) \
  97. )
  98. #error "Software Version Numbers of CDD_Mcl_Cfg.h and Dma_Ip_Cfg.h are different"
  99. #endif
  100. /* Check if header file and Trgmux_Ip_Cfg.h file are of the same vendor */
  101. #if (CDD_MCL_CFG_VENDOR_ID_H != TRGMUX_IP_CFG_VENDOR_ID_H)
  102. #error "CDD_Mcl_Cfg.h and Trgmux_Ip_Cfg.h have different vendor ids"
  103. #endif
  104. /* Check if header file and Trgmux_Ip_Cfg.h file are of the same Autosar version */
  105. #if ((CDD_MCL_CFG_AR_RELEASE_MAJOR_VERSION_H != TRGMUX_IP_CFG_AR_RELEASE_MAJOR_VERSION_H) || \
  106. (CDD_MCL_CFG_AR_RELEASE_MINOR_VERSION_H != TRGMUX_IP_CFG_AR_RELEASE_MINOR_VERSION_H) || \
  107. (CDD_MCL_CFG_AR_RELEASE_REVISION_VERSION_H != TRGMUX_IP_CFG_AR_RELEASE_REVISION_VERSION_H) \
  108. )
  109. #error "AutoSar Version Numbers of CDD_Mcl_Cfg.h and Trgmux_Ip_Cfg.h are different"
  110. #endif
  111. /* Check if header file and Trgmux_Ip_Cfg.h file are of the same Software version */
  112. #if ((CDD_MCL_CFG_SW_MAJOR_VERSION_H != TRGMUX_IP_CFG_SW_MAJOR_VERSION_H) || \
  113. (CDD_MCL_CFG_SW_MINOR_VERSION_H != TRGMUX_IP_CFG_SW_MINOR_VERSION_H) || \
  114. (CDD_MCL_CFG_SW_PATCH_VERSION_H != TRGMUX_IP_CFG_SW_PATCH_VERSION_H) \
  115. )
  116. #error "Software Version Numbers of CDD_Mcl_Cfg.h and Trgmux_Ip_Cfg.h are different"
  117. #endif
  118. /* Check if header file and Flexio_Mcl_Ip_Cfg.h file are of the same vendor */
  119. #if (CDD_MCL_CFG_VENDOR_ID_H != FLEXIO_MCL_IP_CFG_VENDOR_ID_H)
  120. #error "CDD_Mcl_Cfg.h and Flexio_Mcl_Ip_Cfg.h have different vendor ids"
  121. #endif
  122. /* Check if header file and Flexio_Mcl_Ip_Cfg.h file are of the same Autosar version */
  123. #if ((CDD_MCL_CFG_AR_RELEASE_MAJOR_VERSION_H != FLEXIO_MCL_IP_CFG_AR_RELEASE_MAJOR_VERSION_H) || \
  124. (CDD_MCL_CFG_AR_RELEASE_MINOR_VERSION_H != FLEXIO_MCL_IP_CFG_AR_RELEASE_MINOR_VERSION_H) || \
  125. (CDD_MCL_CFG_AR_RELEASE_REVISION_VERSION_H != FLEXIO_MCL_IP_CFG_AR_RELEASE_REVISION_VERSION_H) \
  126. )
  127. #error "AutoSar Version Numbers of CDD_Mcl_Cfg.h and Flexio_Mcl_Ip_Cfg.h are different"
  128. #endif
  129. /* Check if header file and Flexio_Mcl_Ip_Cfg.h file are of the same Software version */
  130. #if ((CDD_MCL_CFG_SW_MAJOR_VERSION_H != FLEXIO_MCL_IP_CFG_SW_MAJOR_VERSION_H) || \
  131. (CDD_MCL_CFG_SW_MINOR_VERSION_H != FLEXIO_MCL_IP_CFG_SW_MINOR_VERSION_H) || \
  132. (CDD_MCL_CFG_SW_PATCH_VERSION_H != FLEXIO_MCL_IP_CFG_SW_PATCH_VERSION_H) \
  133. )
  134. #error "Software Version Numbers of CDD_Mcl_Cfg.h and Flexio_Mcl_Ip_Cfg.h are different"
  135. #endif
  136. /* Check if header file and CDD_Mcl_VS_0_PBcfg.h file are of the same vendor */
  137. #if (CDD_MCL_CFG_VENDOR_ID_H != CDD_MCL_VS_0_PBCFG_VENDOR_ID_H)
  138. #error "CDD_Mcl_Cfg.h and CDD_Mcl_VS_0_PBcfg.h have different vendor ids"
  139. #endif
  140. /* Check if header file and CDD_Mcl_VS_0_PBcfg.h file are of the same Autosar version */
  141. #if ((CDD_MCL_CFG_AR_RELEASE_MAJOR_VERSION_H != CDD_MCL_VS_0_PBCFG_AR_RELEASE_MAJOR_VERSION_H) || \
  142. (CDD_MCL_CFG_AR_RELEASE_MINOR_VERSION_H != CDD_MCL_VS_0_PBCFG_AR_RELEASE_MINOR_VERSION_H) || \
  143. (CDD_MCL_CFG_AR_RELEASE_REVISION_VERSION_H != CDD_MCL_VS_0_PBCFG_AR_RELEASE_REVISION_VERSION_H) \
  144. )
  145. #error "AutoSar Version Numbers of CDD_Mcl_Cfg.h and CDD_Mcl_VS_0_PBcfg.h are different"
  146. #endif
  147. /* Check if header file and CDD_Mcl_VS_0_PBcfg.h file are of the same Software version */
  148. #if ((CDD_MCL_CFG_SW_MAJOR_VERSION_H != CDD_MCL_VS_0_PBCFG_SW_MAJOR_VERSION_H) || \
  149. (CDD_MCL_CFG_SW_MINOR_VERSION_H != CDD_MCL_VS_0_PBCFG_SW_MINOR_VERSION_H) || \
  150. (CDD_MCL_CFG_SW_PATCH_VERSION_H != CDD_MCL_VS_0_PBCFG_SW_PATCH_VERSION_H) \
  151. )
  152. #error "Software Version Numbers of CDD_Mcl_Cfg.h and CDD_Mcl_VS_0_PBcfg.h are different"
  153. #endif
  154. /*==================================================================================================
  155. CONSTANTS
  156. ==================================================================================================*/
  157. /*==================================================================================================
  158. DEFINES AND MACROS
  159. ==================================================================================================*/
  160. /*-----------------------------------------------/
  161. / DEM & DET /
  162. /-----------------------------------------------*/
  163. #define MCL_DEM_IS_AVAILABLE STD_OFF
  164. #define MCL_DET_IS_AVAILABLE STD_OFF
  165. /*-----------------------------------------------/
  166. / DMA /
  167. /-----------------------------------------------*/
  168. #define MCL_DMA_CRC_IS_AVAILABLE DMA_IP_DMACRC_IS_AVAILABLE
  169. #define MCL_DMA_MASTER_ID_REPLICATION_IS_AVAILABLE DMA_IP_MASTER_ID_REPLICATION_IS_AVAILABLE
  170. #define MCL_DMA_BUFFERED_WRITES_IS_AVAILABLE DMA_IP_BUFFERED_WRITES_IS_AVAILABLE
  171. #define MCL_DMA_STORE_DST_ADDR_IS_AVAILABLE DMA_IP_STORE_DST_ADDR_IS_AVAILABLE
  172. #define MCL_DMA_END_OF_PACKET_SIGNAL_IS_AVAILABLE DMA_IP_END_OF_PACKET_SIGNAL_IS_AVAILABLE
  173. #define MCL_DMA_PREEMPTION_IS_AVAILABLE DMA_IP_PREEMPTION_IS_AVAILABLE
  174. #define MCL_DMA_DISABLE_PREEMPT_IS_AVAILABLE DMA_IP_DISABLE_PREEMPT_IS_AVAILABLE
  175. /*-----------------------------------------------/
  176. / CACHE /
  177. /-----------------------------------------------*/
  178. /*-----------------------------------------------/
  179. / TRGMUX /
  180. /-----------------------------------------------*/
  181. /*-----------------------------------------------/
  182. / EMIOS /
  183. /-----------------------------------------------*/
  184. /*-----------------------------------------------/
  185. / USERMODE /
  186. /-----------------------------------------------*/
  187. #define MCL_USER_MODE_SUPPORT_IS_AVAILABLE STD_OFF
  188. #ifndef MCAL_ENABLE_USER_MODE_SUPPORT
  189. #if (STD_ON == MCL_USER_MODE_SUPPORT_IS_AVAILABLE)
  190. #error MCAL_ENABLE_USER_MODE_SUPPORT is not enabled. For running Mcl in user mode, the MCAL_ENABLE_USER_MODE_SUPPORT needs to be defined
  191. #endif /* (STD_ON == MCL_USER_MODE_SUPPORT_IS_AVAILABLE) */
  192. #endif /* ifndef MCAL_ENABLE_USER_MODE_SUPPORT */
  193. /*-----------------------------------------------/
  194. / PRECOMPILE /
  195. /-----------------------------------------------*/
  196. /* Mcl Pre Compile Switch */
  197. #define MCL_PRECOMPILE_SUPPORT STD_ON
  198. /*==================================================================================================
  199. ENUMS
  200. ==================================================================================================*/
  201. /*==================================================================================================
  202. STRUCTURES AND OTHER TYPEDEFS
  203. ==================================================================================================*/
  204. #if (MCL_DEM_IS_AVAILABLE == STD_ON)
  205. /**
  206. * @brief DEM error reporting configuration.
  207. * @details This structure contains information DEM error reporting
  208. */
  209. typedef struct
  210. {
  211. Mcal_DemErrorType Mcl_E_TimeoutFailureCfg;
  212. }Mcl_DemConfigType;
  213. #endif /* #if (MCL_DEM_IS_AVAILABLE == STD_ON) */
  214. /*==================================================================================================
  215. * GLOBAL VARIABLE DECLARATIONS
  216. ==================================================================================================*/
  217. /*==================================================================================================
  218. FUNCTION PROTOTYPES
  219. ==================================================================================================*/
  220. #ifdef __cplusplus
  221. }
  222. #endif
  223. #endif /* CDD_MCL_CFG_H_ */
  224. /*==================================================================================================
  225. * END OF FILE
  226. ==================================================================================================*/