Adc_Ip_CfgDefines.h 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. /*==================================================================================================
  2. * Project : RTD AUTOSAR 4.4
  3. * Platform : CORTEXM
  4. * Peripheral : ADC
  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 ADC_IP_CFGDEFINES_H
  25. #define ADC_IP_CFGDEFINES_H
  26. /**
  27. * @file
  28. *
  29. * @addtogroup adc_ip_config Adc IPL Configuration
  30. * @{
  31. */
  32. #ifdef __cplusplus
  33. extern "C"{
  34. #endif
  35. /*==================================================================================================
  36. * INCLUDE FILES
  37. * 1) system and project includes
  38. * 2) needed interfaces from external units
  39. * 3) internal and external interfaces from this unit
  40. ==================================================================================================*/
  41. /* Important Note: The header warapper file depends on header platform and can not be used independently.
  42. * Do not change #include order in this file */
  43. #include "S32K146_ADC.h"
  44. #include "S32K146_SIM.h"
  45. #include "Adc_Ip_HeaderWrapper_S32K14x_Extended.h"
  46. #include "OsIf.h"
  47. /*==================================================================================================
  48. * SOURCE FILE VERSION INFORMATION
  49. ==================================================================================================*/
  50. #define ADC_IP_VENDOR_ID_CFGDEFINES_H 43
  51. #define ADC_IP_AR_RELEASE_MAJOR_VERSION_CFGDEFINES_H 4
  52. #define ADC_IP_AR_RELEASE_MINOR_VERSION_CFGDEFINES_H 4
  53. #define ADC_IP_AR_RELEASE_REVISION_VERSION_CFGDEFINES_H 0
  54. #define ADC_IP_SW_MAJOR_VERSION_CFGDEFINES_H 1
  55. #define ADC_IP_SW_MINOR_VERSION_CFGDEFINES_H 0
  56. #define ADC_IP_SW_PATCH_VERSION_CFGDEFINES_H 0
  57. /*==================================================================================================
  58. * FILE VERSION CHECKS
  59. ==================================================================================================*/
  60. /* Check if Adc_Ip_CfgDefines.h file and Adc_Ip_HeaderWrapper_S32K14x_Extended.h file are of the same vendor */
  61. #if (ADC_IP_VENDOR_ID_CFGDEFINES_H != ADC_IP_VENDOR_ID_HEADERWRAPPER_S32K14X_EXTENDED_H)
  62. #error "Adc_Ip_CfgDefines.h and Adc_Ip_HeaderWrapper_S32K14x_Extended.h have different vendor ids"
  63. #endif
  64. /* Check if Adc_Ip_CfgDefines.h file and Adc_Ip_HeaderWrapper_S32K14x_Extended.h file are of the same Autosar version */
  65. #if ((ADC_IP_AR_RELEASE_MAJOR_VERSION_CFGDEFINES_H != ADC_IP_AR_RELEASE_MAJOR_VERSION_HEADERWRAPPER_S32K14X_EXTENDED_H) || \
  66. (ADC_IP_AR_RELEASE_MINOR_VERSION_CFGDEFINES_H != ADC_IP_AR_RELEASE_MINOR_VERSION_HEADERWRAPPER_S32K14X_EXTENDED_H) || \
  67. (ADC_IP_AR_RELEASE_REVISION_VERSION_CFGDEFINES_H != ADC_IP_AR_RELEASE_REVISION_VERSION_HEADERWRAPPER_S32K14X_EXTENDED_H) \
  68. )
  69. #error "AutoSar Version Numbers of Adc_Ip_CfgDefines.h and Adc_Ip_HeaderWrapper_S32K14x_Extended.h are different"
  70. #endif
  71. /* Check if Adc_Ip_CfgDefines.h file and Adc_Ip_HeaderWrapper_S32K14x_Extended.h file are of the same Software version */
  72. #if ((ADC_IP_SW_MAJOR_VERSION_CFGDEFINES_H != ADC_IP_SW_MAJOR_VERSION_HEADERWRAPPER_S32K14X_EXTENDED_H) || \
  73. (ADC_IP_SW_MINOR_VERSION_CFGDEFINES_H != ADC_IP_SW_MINOR_VERSION_HEADERWRAPPER_S32K14X_EXTENDED_H) || \
  74. (ADC_IP_SW_PATCH_VERSION_CFGDEFINES_H != ADC_IP_SW_PATCH_VERSION_HEADERWRAPPER_S32K14X_EXTENDED_H) \
  75. )
  76. #error "Software Version Numbers of Adc_Ip_CfgDefines.h and Adc_Ip_HeaderWrapper_S32K14x_Extended.h are different"
  77. #endif
  78. #ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
  79. /* Check AutoSar version */
  80. #if ((ADC_IP_AR_RELEASE_MAJOR_VERSION_CFGDEFINES_H != OSIF_AR_RELEASE_MAJOR_VERSION) || \
  81. (ADC_IP_AR_RELEASE_MINOR_VERSION_CFGDEFINES_H != OSIF_AR_RELEASE_MINOR_VERSION) \
  82. )
  83. #error "AutoSar Version Numbers of Adc_Ip_CfgDefines.h and OsIf.h are different"
  84. #endif
  85. #endif /* DISABLE_MCAL_INTERMODULE_ASR_CHECK */
  86. /*==================================================================================================
  87. * LOCAL TYPEDEFS (STRUCTURES, UNIONS, ENUMS)
  88. ==================================================================================================*/
  89. /*==================================================================================================
  90. * LOCAL MACROS
  91. ==================================================================================================*/
  92. #define ADC_IP_DEV_ERROR_DETECT (STD_OFF)
  93. #define ADC_IP_TIMEOUT_TYPE (OSIF_COUNTER_DUMMY)
  94. #define ADC_IP_TIMEOUT_VAL (100000UL)
  95. #define ADC_IP_ENABLE_USER_MODE_SUPPORT (STD_OFF)
  96. #define ADC_IP_SUPPLY_MONITORING_ENABLED (STD_OFF)
  97. #define ADC_IP_ENABLE_SIM_SOURCE_SELECTION (STD_OFF)
  98. /*! @brief ADC default Sample Time from RM */
  99. #define ADC_IP_DEFAULT_SAMPLE_TIME (0x0CU)
  100. /*! @brief ADC default User Gain from RM */
  101. #define ADC_IP_DEFAULT_USER_GAIN (0x04U)
  102. /*! @brief ADC Max external channel ID */
  103. #define FEATURE_ADC_MAX_EXT_CHAN_ID (15U)
  104. /*! @brief ADC has external channels */
  105. #define FEATURE_ADC_HAS_CHANNEL_2 (1U)
  106. #define FEATURE_ADC_HAS_CHANNEL_8 (1U)
  107. #define FEATURE_ADC_HAS_CHANNEL_9 (1U)
  108. /*==================================================================================================
  109. * LOCAL CONSTANTS
  110. ==================================================================================================*/
  111. /*==================================================================================================
  112. * LOCAL VARIABLES
  113. ==================================================================================================*/
  114. /*==================================================================================================
  115. * GLOBAL CONSTANTS
  116. ==================================================================================================*/
  117. /*==================================================================================================
  118. * GLOBAL VARIABLES
  119. ==================================================================================================*/
  120. /*==================================================================================================
  121. * LOCAL FUNCTION PROTOTYPES
  122. ==================================================================================================*/
  123. /*==================================================================================================
  124. * LOCAL FUNCTIONS
  125. ==================================================================================================*/
  126. /*==================================================================================================
  127. * GLOBAL FUNCTIONS
  128. ==================================================================================================*/
  129. #ifdef __cplusplus
  130. }
  131. #endif
  132. /** @} */
  133. #endif /* ADC_IP_CFGDEFINES_H */