Flexio_Mcl_Ip_Cfg.h 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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 FLEXIO_MCL_IP_CFG_H_
  25. #define FLEXIO_MCL_IP_CFG_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 all variants header files. */
  37. #include "Flexio_Mcl_Ip_VS_0_PBcfg.h"
  38. #include "Flexio_Mcl_Ip_Cfg_Defines.h"
  39. /*==================================================================================================
  40. * SOURCE FILE VERSION INFORMATION
  41. ==================================================================================================*/
  42. #define FLEXIO_MCL_IP_CFG_VENDOR_ID_H 43
  43. #define FLEXIO_MCL_IP_CFG_MODULE_ID_H 255
  44. #define FLEXIO_MCL_IP_CFG_AR_RELEASE_MAJOR_VERSION_H 4
  45. #define FLEXIO_MCL_IP_CFG_AR_RELEASE_MINOR_VERSION_H 4
  46. #define FLEXIO_MCL_IP_CFG_AR_RELEASE_REVISION_VERSION_H 0
  47. #define FLEXIO_MCL_IP_CFG_SW_MAJOR_VERSION_H 1
  48. #define FLEXIO_MCL_IP_CFG_SW_MINOR_VERSION_H 0
  49. #define FLEXIO_MCL_IP_CFG_SW_PATCH_VERSION_H 0
  50. /*==================================================================================================
  51. * FILE VERSION CHECKS
  52. ==================================================================================================*/
  53. /* Check if header file and Flexio_Mcl_Ip_Cfg_Defines.h file are of the same vendor */
  54. #if (FLEXIO_MCL_IP_CFG_VENDOR_ID_H != FLEXIO_MCL_IP_CFG_DEFINES_VENDOR_ID_H)
  55. #error "Flexio_Mcl_Ip_Cfg.h and Flexio_Mcl_Ip_Cfg_Defines.h have different vendor ids"
  56. #endif
  57. /* Check if header file and Flexio_Mcl_Ip_Cfg_Defines.h file are of the same Autosar version */
  58. #if ((FLEXIO_MCL_IP_CFG_AR_RELEASE_MAJOR_VERSION_H != FLEXIO_MCL_IP_CFG_DEFINES_AR_RELEASE_MAJOR_VERSION_H) || \
  59. (FLEXIO_MCL_IP_CFG_AR_RELEASE_MINOR_VERSION_H != FLEXIO_MCL_IP_CFG_DEFINES_AR_RELEASE_MINOR_VERSION_H) || \
  60. (FLEXIO_MCL_IP_CFG_AR_RELEASE_REVISION_VERSION_H != FLEXIO_MCL_IP_CFG_DEFINES_AR_RELEASE_REVISION_VERSION_H) \
  61. )
  62. #error "AutoSar Version Numbers of Flexio_Mcl_Ip_Cfg.h and Flexio_Mcl_Ip_Cfg_Defines.h are different"
  63. #endif
  64. /* Check if header file and Flexio_Mcl_Ip_Cfg_Defines.h file are of the same Software version */
  65. #if ((FLEXIO_MCL_IP_CFG_SW_MAJOR_VERSION_H != FLEXIO_MCL_IP_CFG_DEFINES_SW_MAJOR_VERSION_H) || \
  66. (FLEXIO_MCL_IP_CFG_SW_MINOR_VERSION_H != FLEXIO_MCL_IP_CFG_DEFINES_SW_MINOR_VERSION_H) || \
  67. (FLEXIO_MCL_IP_CFG_SW_PATCH_VERSION_H != FLEXIO_MCL_IP_CFG_DEFINES_SW_PATCH_VERSION_H) \
  68. )
  69. #error "Software Version Numbers of Flexio_Mcl_Ip_Cfg.h and Flexio_Mcl_Ip_Cfg_Defines.h are different"
  70. #endif
  71. /* Check if header file and Flexio_Mcl_Ip_VS_0_PBcfg.h file are of the same vendor */
  72. #if (FLEXIO_MCL_IP_CFG_VENDOR_ID_H != FLEXIO_MCL_IP_VS_0_PBCFG_VENDOR_ID_H)
  73. #error "Flexio_Mcl_Ip_Cfg.h and Flexio_Mcl_Ip_VS_0_PBcfg.h have different vendor ids"
  74. #endif
  75. /* Check if header file and Flexio_Mcl_Ip_VS_0_PBcfg.h file are of the same Autosar version */
  76. #if ((FLEXIO_MCL_IP_CFG_AR_RELEASE_MAJOR_VERSION_H != FLEXIO_MCL_IP_VS_0_PBCFG_AR_RELEASE_MAJOR_VERSION_H) || \
  77. (FLEXIO_MCL_IP_CFG_AR_RELEASE_MINOR_VERSION_H != FLEXIO_MCL_IP_VS_0_PBCFG_AR_RELEASE_MINOR_VERSION_H) || \
  78. (FLEXIO_MCL_IP_CFG_AR_RELEASE_REVISION_VERSION_H != FLEXIO_MCL_IP_VS_0_PBCFG_AR_RELEASE_REVISION_VERSION_H) \
  79. )
  80. #error "AutoSar Version Numbers of Flexio_Mcl_Ip_Cfg.h and Flexio_Mcl_Ip_VS_0_PBcfg.h are different"
  81. #endif
  82. /* Check if header file and Flexio_Mcl_Ip_VS_0_PBcfg.h file are of the same Software version */
  83. #if ((FLEXIO_MCL_IP_CFG_SW_MAJOR_VERSION_H != FLEXIO_MCL_IP_VS_0_PBCFG_SW_MAJOR_VERSION_H) || \
  84. (FLEXIO_MCL_IP_CFG_SW_MINOR_VERSION_H != FLEXIO_MCL_IP_VS_0_PBCFG_SW_MINOR_VERSION_H) || \
  85. (FLEXIO_MCL_IP_CFG_SW_PATCH_VERSION_H != FLEXIO_MCL_IP_VS_0_PBCFG_SW_PATCH_VERSION_H) \
  86. )
  87. #error "Software Version Numbers of Flexio_Mcl_Ip_Cfg.h and Flexio_Mcl_Ip_VS_0_PBcfg.h are different"
  88. #endif
  89. /*==================================================================================================
  90. * CONSTANTS
  91. ==================================================================================================*/
  92. /*==================================================================================================
  93. * DEFINES AND MACROS
  94. ==================================================================================================*/
  95. /* Logic Channel 0 */
  96. #define MclConf_FlexioMclLogicChannels_FLEXIO_RX ((uint32)CHANNEL_0)
  97. /* Logic Channel 1 */
  98. #define MclConf_FlexioMclLogicChannels_FLEXIO_TX ((uint32)CHANNEL_1)
  99. #define MCL_START_SEC_CONFIG_DATA_UNSPECIFIED
  100. /* @violates @ref Mcl_Dma_h_REF_1 MISRA 2012 Required Directive 4.10, Precautions shall be taken in order to prevent the contents of a header file being included more than once. */
  101. #include "Mcl_MemMap.h"
  102. extern const Flexio_Ip_InstanceConfigType Flexio_Ip_xFlexioInit_VS_0;
  103. #define MCL_STOP_SEC_CONFIG_DATA_UNSPECIFIED
  104. /* @violates @ref Mcl_Dma_h_REF_1 MISRA 2012 Required Directive 4.10, Precautions shall be taken in order to prevent the contents of a header file being included more than once. */
  105. #include "Mcl_MemMap.h"
  106. /*==================================================================================================
  107. * ENUMS
  108. ==================================================================================================*/
  109. /*==================================================================================================
  110. * STRUCTURES AND OTHER TYPEDEFS
  111. ==================================================================================================*/
  112. /*==================================================================================================
  113. * GLOBAL VARIABLE DECLARATIONS
  114. ==================================================================================================*/
  115. /*==================================================================================================
  116. * FUNCTION PROTOTYPES
  117. ==================================================================================================*/
  118. #ifdef __cplusplus
  119. }
  120. #endif
  121. #endif /* FLEXIO_MCL_IP_CFG_H_ */