Can_Ipw_Cfg.h 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. /*==================================================================================================
  2. * Project : RTD AUTOSAR 4.4
  3. * Platform : CORTEXM
  4. * Peripheral : FLEXCAN
  5. * Dependencies :
  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 CAN_IPW_CFG_H
  25. #define CAN_IPW_CFG_H
  26. /**
  27. * @file Can_Ipw_Cfg.h
  28. * @version 1.0.0
  29. *
  30. * @brief AUTOSAR Can - module interface
  31. * @details Configuration settings generated by user settings.
  32. *
  33. * @addtogroup CAN_DRIVER
  34. * @{
  35. */
  36. #ifdef __cplusplus
  37. extern "C"{
  38. #endif
  39. /*==================================================================================================
  40. INCLUDE FILES
  41. 1) system and project includes
  42. 2) needed interfaces from external units
  43. 3) internal and external interfaces from this unit
  44. ==================================================================================================*/
  45. #include "StandardTypes.h"
  46. #include "Can_Ipw_VS_0_PBcfg.h"
  47. #include "FlexCAN_Ip_Cfg.h"
  48. /*==================================================================================================
  49. * SOURCE FILE VERSION INFORMATION
  50. ==================================================================================================*/
  51. #define CAN_IPW_CFG_VENDOR_ID 43
  52. #define CAN_IPW_CFG_AR_RELEASE_MAJOR_VERSION 4
  53. #define CAN_IPW_CFG_AR_RELEASE_MINOR_VERSION 4
  54. #define CAN_IPW_CFG_AR_RELEASE_REVISION_VERSION 0
  55. #define CAN_IPW_CFG_SW_MAJOR_VERSION 1
  56. #define CAN_IPW_CFG_SW_MINOR_VERSION 0
  57. #define CAN_IPW_CFG_SW_PATCH_VERSION 0
  58. /*==================================================================================================
  59. * FILE VERSION CHECKS
  60. ==================================================================================================*/
  61. /* Checks against FlexCAN_Ip_Cfg.h */
  62. #if (CAN_IPW_CFG_VENDOR_ID != FLEXCAN_IP_CFG_VENDOR_ID_H)
  63. #error "Can_Ipw_Cfg.h and FlexCAN_Ip_Cfg.h have different vendor ids"
  64. #endif
  65. #if ((CAN_IPW_CFG_AR_RELEASE_MAJOR_VERSION != FLEXCAN_IP_CFG_AR_RELEASE_MAJOR_VERSION_H) || \
  66. (CAN_IPW_CFG_AR_RELEASE_MINOR_VERSION != FLEXCAN_IP_CFG_AR_RELEASE_MINOR_VERSION_H) || \
  67. (CAN_IPW_CFG_AR_RELEASE_REVISION_VERSION != FLEXCAN_IP_CFG_AR_RELEASE_REVISION_VERSION_H) \
  68. )
  69. #error "AUTOSAR Version Numbers of Can_Ipw_Cfg.h and FlexCAN_Ip_Cfg.h are different"
  70. #endif
  71. #if ((CAN_IPW_CFG_SW_MAJOR_VERSION != FLEXCAN_IP_CFG_SW_MAJOR_VERSION_H) || \
  72. (CAN_IPW_CFG_SW_MINOR_VERSION != FLEXCAN_IP_CFG_SW_MINOR_VERSION_H) || \
  73. (CAN_IPW_CFG_SW_PATCH_VERSION != FLEXCAN_IP_CFG_SW_PATCH_VERSION_H) \
  74. )
  75. #error "Software Version Numbers of Can_Ipw_Cfg.h and FlexCAN_Ip_Cfg.h are different"
  76. #endif
  77. /* Checks against Can_Ipw_VS_0_PBcfg.h */
  78. #if (CAN_IPW_CFG_VENDOR_ID != CAN_VENDOR_ID_VS_0_IPW_PBCFG_H)
  79. #error "Can_Ipw_Cfg.h and Can_Ipw_VS_0_PBcfg.h have different vendor ids"
  80. #endif
  81. #if ((CAN_IPW_CFG_AR_RELEASE_MAJOR_VERSION != CAN_AR_RELEASE_MAJOR_VERSION_VS_0_IPW_PBCFG_H) || \
  82. (CAN_IPW_CFG_AR_RELEASE_MINOR_VERSION != CAN_AR_RELEASE_MINOR_VERSION_VS_0_IPW_PBCFG_H) || \
  83. (CAN_IPW_CFG_AR_RELEASE_REVISION_VERSION != CAN_AR_RELEASE_REVISION_VERSION_VS_0_IPW_PBCFG_H) \
  84. )
  85. #error "AUTOSAR Version Numbers of Can_Ipw_Cfg.h and Can_Ipw_VS_0_PBcfg.h are different"
  86. #endif
  87. #if ((CAN_IPW_CFG_SW_MAJOR_VERSION != CAN_SW_MAJOR_VERSION_VS_0_IPW_PBCFG_H) || \
  88. (CAN_IPW_CFG_SW_MINOR_VERSION != CAN_SW_MINOR_VERSION_VS_0_IPW_PBCFG_H) || \
  89. (CAN_IPW_CFG_SW_PATCH_VERSION != CAN_SW_PATCH_VERSION_VS_0_IPW_PBCFG_H) \
  90. )
  91. #error "Software Version Numbers of Can_Ipw_Cfg.h and Can_Ipw_VS_0_PBcfg.h are different"
  92. #endif
  93. #ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
  94. /* Checks against StandardTypes.h */
  95. #if ((CAN_IPW_CFG_AR_RELEASE_MAJOR_VERSION != STD_AR_RELEASE_MAJOR_VERSION) || \
  96. (CAN_IPW_CFG_AR_RELEASE_MINOR_VERSION != STD_AR_RELEASE_MINOR_VERSION) \
  97. )
  98. #error "AUTOSAR Version Numbers of Can_Ipw_Cfg.h and StandardTypes.h are different"
  99. #endif
  100. #endif
  101. /*==================================================================================================
  102. * DEFINES AND MACROS
  103. ==================================================================================================*/
  104. #define CAN_USE_FLEXCAN_IP STD_ON
  105. #define CAN_MB_INTERRUPT_SUPPORT FLEXCAN_IP_MB_INTERRUPT_SUPPORT
  106. #define CAN_ERROR_INTERRUPT_SUPPORT FLEXCAN_IP_ERROR_INTERRUPT_SUPPORT
  107. #define CAN_BUSOFF_INTERRUPT_SUPPORT FLEXCAN_IP_BUSOFF_INTERRUPT_SUPPORT
  108. #define CAN_FEATURE_HAS_DMA_ENABLE FLEXCAN_IP_FEATURE_HAS_DMA_ENABLE
  109. #define CAN_FEATURE_HAS_PRETENDED_NETWORKING FLEXCAN_IP_FEATURE_HAS_PRETENDED_NETWORKING
  110. #define CAN_FEATURE_HAS_ENHANCED_RX_FIFO FLEXCAN_IP_FEATURE_HAS_ENHANCED_RX_FIFO
  111. #define CAN_MB_ENHANCED_RXFIFO FLEXCAN_IP_MB_ENHANCED_RXFIFO
  112. #define CAN_FEATURE_HAS_FD FLEXCAN_IP_FEATURE_HAS_FD
  113. #define CAN_IPW_EXT \
  114. CAN_IPW_CONFIG_VS_0_PB
  115. #define CAN_IPW_ICOM_RXMESSAGE_EXT \
  116. CAN_IPW_ICOM_RXMESSAGE_CONFIG_VS_0_PB
  117. /*==================================================================================================
  118. * ENUMS
  119. ==================================================================================================*/
  120. /*==================================================================================================
  121. * STRUCTURES AND OTHER TYPEDEFS
  122. ==================================================================================================*/
  123. /*==================================================================================================
  124. * GLOBAL VARIABLE DECLARATIONS
  125. ==================================================================================================*/
  126. /*==================================================================================================
  127. GLOBAL CONSTANTS
  128. ==================================================================================================*/
  129. /*==================================================================================================
  130. * FUNCTION PROTOTYPES
  131. ==================================================================================================*/
  132. #ifdef __cplusplus
  133. }
  134. #endif
  135. /** @} */
  136. #endif /* CAN_IPW_CFG_H */