Flexio_Mcl_Ip_Cfg_Defines.h 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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_DEFINES_H_
  25. #define FLEXIO_MCL_IP_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 "StandardTypes.h"
  37. #include "BasicTypes.h"
  38. #include "Flexio_Uart_Ip_CfgDefines.h"
  39. #if defined(UART_CHANNEL_0_USED) || defined(UART_CHANNEL_1_USED) || defined(UART_CHANNEL_2_USED) || defined(UART_CHANNEL_3_USED)|| defined(UART_CHANNEL_4_USED) || defined(UART_CHANNEL_5_USED) || defined(UART_CHANNEL_6_USED) || defined(UART_CHANNEL_7_USED)
  40. #define USE_UART_MODULE
  41. #endif
  42. /*==================================================================================================
  43. * SOURCE FILE VERSION INFORMATION
  44. ==================================================================================================*/
  45. #define FLEXIO_MCL_IP_CFG_DEFINES_VENDOR_ID_H 43
  46. #define FLEXIO_MCL_IP_CFG_DEFINES_MODULE_ID_H 255
  47. #define FLEXIO_MCL_IP_CFG_DEFINES_AR_RELEASE_MAJOR_VERSION_H 4
  48. #define FLEXIO_MCL_IP_CFG_DEFINES_AR_RELEASE_MINOR_VERSION_H 4
  49. #define FLEXIO_MCL_IP_CFG_DEFINES_AR_RELEASE_REVISION_VERSION_H 0
  50. #define FLEXIO_MCL_IP_CFG_DEFINES_SW_MAJOR_VERSION_H 1
  51. #define FLEXIO_MCL_IP_CFG_DEFINES_SW_MINOR_VERSION_H 0
  52. #define FLEXIO_MCL_IP_CFG_DEFINES_SW_PATCH_VERSION_H 0
  53. /*==================================================================================================
  54. * FILE VERSION CHECKS
  55. ==================================================================================================*/
  56. #ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
  57. /* Check if header file and StandardTypes header file are of the same Autosar version */
  58. #if ((FLEXIO_MCL_IP_CFG_DEFINES_AR_RELEASE_MAJOR_VERSION_H != STD_AR_RELEASE_MAJOR_VERSION) || \
  59. (FLEXIO_MCL_IP_CFG_DEFINES_AR_RELEASE_MINOR_VERSION_H != STD_AR_RELEASE_MINOR_VERSION))
  60. #error "AutoSar Version Numbers of Flexio_Mcl_Ip_Cfg_Defines.h and StandardTypes.h are different"
  61. #endif
  62. #ifdef USE_I2C_MODULE
  63. /* Check if header file and Flexio_I2c_Ip_CfgDefines header file are of the same Autosar version */
  64. #if ((FLEXIO_MCL_IP_CFG_DEFINES_AR_RELEASE_MAJOR_VERSION_H != FLEXIO_I2C_IP_CFGDEFINES_AR_RELEASE_MAJOR_VERSION) || \
  65. (FLEXIO_MCL_IP_CFG_DEFINES_AR_RELEASE_MINOR_VERSION_H != FLEXIO_I2C_IP_CFGDEFINES_AR_RELEASE_MINOR_VERSION))
  66. #error "AutoSar Version Numbers of Flexio_Mcl_Ip_Cfg_Defines.h and Flexio_I2c_Ip_CfgDefines.h are different"
  67. #endif
  68. #endif /* USE_I2C_MODULE */
  69. #ifdef USE_SPI_MODULE
  70. /* Check if header file and Flexio_Spi_Ip_CfgDefines header file are of the same Autosar version */
  71. #if ((FLEXIO_MCL_IP_CFG_DEFINES_AR_RELEASE_MAJOR_VERSION_H != FLEXIO_SPI_IP_CFG_DEFINES_AR_RELEASE_MAJOR_VERSION_H) || \
  72. (FLEXIO_MCL_IP_CFG_DEFINES_AR_RELEASE_MINOR_VERSION_H != FLEXIO_SPI_IP_CFG_DEFINES_AR_RELEASE_MINOR_VERSION_H))
  73. #error "AutoSar Version Numbers of Flexio_Mcl_Ip_Cfg_Defines.h and Flexio_Spi_Ip_CfgDefines.h are different"
  74. #endif
  75. #endif /* USE_SPI_MODULE */
  76. #ifdef USE_UART_MODULE
  77. /* Check if header file and Flexio_Uart_Ip_CfgDefines header file are of the same Autosar version */
  78. #if ((FLEXIO_MCL_IP_CFG_DEFINES_AR_RELEASE_MAJOR_VERSION_H != FLEXIO_UART_IP_CFG_DEFINES_AR_RELEASE_MAJOR_VERSION) || \
  79. (FLEXIO_MCL_IP_CFG_DEFINES_AR_RELEASE_MINOR_VERSION_H != FLEXIO_UART_IP_CFG_DEFINES_AR_RELEASE_MINOR_VERSION))
  80. #error "AutoSar Version Numbers of Flexio_Mcl_Ip_Cfg_Defines.h and Flexio_Uart_Ip_CfgDefines.h are different"
  81. #endif
  82. #endif /* USE_UART_MODULE */
  83. #ifdef USE_PWM_MODULE
  84. /* Check if header file and Flexio_Pwm_Ip_CfgDefines header file are of the same Autosar version */
  85. #if ((FLEXIO_MCL_IP_CFG_DEFINES_AR_RELEASE_MAJOR_VERSION_H != FLEXIO_PWM_IP_CFGDEFINES_AR_RELEASE_MAJOR_VERSION) || \
  86. (FLEXIO_MCL_IP_CFG_DEFINES_AR_RELEASE_MINOR_VERSION_H != FLEXIO_PWM_IP_CFGDEFINES_AR_RELEASE_MINOR_VERSION))
  87. #error "AutoSar Version Numbers of Flexio_Mcl_Ip_Cfg_Defines.h and Flexio_Pwm_Ip_CfgDefines.h are different"
  88. #endif
  89. #endif /* USE_PWM_MODULE */
  90. #ifdef USE_LIN_MODULE
  91. /* Check if header file and Flexio_Lin_Ip_CfgDefines header file are of the same Autosar version */
  92. #if ((FLEXIO_MCL_IP_CFG_DEFINES_AR_RELEASE_MAJOR_VERSION_H != FLEXIO_LIN_IP_CFG_DEFINES_AR_RELEASE_MAJOR_VERSION) || \
  93. (FLEXIO_MCL_IP_CFG_DEFINES_AR_RELEASE_MINOR_VERSION_H != FLEXIO_LIN_IP_CFG_DEFINES_AR_RELEASE_MINOR_VERSION))
  94. #error "AutoSar Version Numbers of Flexio_Mcl_Ip_Cfg_Defines.h and Flexio_Lin_Ip_CfgDefines.h are different"
  95. #endif
  96. #endif /* USE_LIN_MODULE */
  97. #endif /* DISABLE_MCAL_INTERMODULE_ASR_CHECK */
  98. /*==================================================================================================
  99. * CONSTANTS
  100. ==================================================================================================*/
  101. /*==================================================================================================
  102. * DEFINES AND MACROS
  103. ==================================================================================================*/
  104. /* Enable/Disable Flexio support from MCL. */
  105. #define FLEXIO_IP_IS_AVAILABLE STD_ON
  106. #define FLEXIO_MCL_IP_DEV_ERROR_DETECT STD_OFF
  107. #define FLEXIO_MCL_IP_TIMERSDEN_IS_AVAILABLE STD_OFF
  108. #define FLEXIO_MCL_IP_PIN_STS_IS_AVAILABLE STD_OFF
  109. /*-----------------------------------------------/
  110. / FLEXIO HARDWARE INSTANCES /
  111. /-----------------------------------------------*/
  112. #define FLEXIO_0 ((uint8)(0U))
  113. /*-----------------------------------------------/
  114. / FLEXIO HARDWARE CHANNELS /
  115. /-----------------------------------------------*/
  116. #define CHANNEL_0 ((uint8)(0U))
  117. #define CHANNEL_1 ((uint8)(1U))
  118. #define CHANNEL_2 ((uint8)(2U))
  119. #define CHANNEL_3 ((uint8)(3U))
  120. /*-----------------------------------------------/
  121. / FLEXIO PINS /
  122. /-----------------------------------------------*/
  123. #define PIN_0 ((uint8)(0U))
  124. #define PIN_1 ((uint8)(1U))
  125. #define PIN_2 ((uint8)(2U))
  126. #define PIN_3 ((uint8)(3U))
  127. #define PIN_4 ((uint8)(4U))
  128. #define PIN_5 ((uint8)(5U))
  129. #define PIN_6 ((uint8)(6U))
  130. #define PIN_7 ((uint8)(7U))
  131. /*==================================================================================================
  132. * ENUMS
  133. ==================================================================================================*/
  134. /*==================================================================================================
  135. * STRUCTURES AND OTHER TYPEDEFS
  136. ==================================================================================================*/
  137. /*==================================================================================================
  138. * GLOBAL VARIABLE DECLARATIONS
  139. ==================================================================================================*/
  140. /*==================================================================================================
  141. * FUNCTION PROTOTYPES
  142. ==================================================================================================*/
  143. #ifdef __cplusplus
  144. }
  145. #endif
  146. #endif /* FLEXIO_MCL_IP_CFG_DEFINES_H_ */