Flexio_Mcl_Ip_Cfg_Defines.h 9.3 KB

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