Pdb_Adc_Ip_VS_0_PBcfg.c 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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. /**
  25. * @file
  26. *
  27. * @addtogroup pdb_adc_ip_config Pdb Adc IPL Configuration
  28. * @{
  29. */
  30. #ifdef __cplusplus
  31. extern "C"{
  32. #endif
  33. /*==================================================================================================
  34. * INCLUDE FILES
  35. * 1) system and project includes
  36. * 2) needed interfaces from external units
  37. * 3) internal and external interfaces from this unit
  38. ==================================================================================================*/
  39. #include "Pdb_Adc_Ip_VS_0_PBcfg.h"
  40. /*==================================================================================================
  41. * SOURCE FILE VERSION INFORMATION
  42. ==================================================================================================*/
  43. #define PDB_ADC_IP_VENDOR_ID_VS_0_PBCFG_C 43
  44. #define PDB_ADC_IP_AR_RELEASE_MAJOR_VERSION_VS_0_PBCFG_C 4
  45. #define PDB_ADC_IP_AR_RELEASE_MINOR_VERSION_VS_0_PBCFG_C 4
  46. #define PDB_ADC_IP_AR_RELEASE_REVISION_VERSION_VS_0_PBCFG_C 0
  47. #define PDB_ADC_IP_SW_MAJOR_VERSION_VS_0_PBCFG_C 1
  48. #define PDB_ADC_IP_SW_MINOR_VERSION_VS_0_PBCFG_C 0
  49. #define PDB_ADC_IP_SW_PATCH_VERSION_VS_0_PBCFG_C 0
  50. /*==================================================================================================
  51. * FILE VERSION CHECKS
  52. ==================================================================================================*/
  53. /* Check if Pdb_Adc_Ip_VS_0_PBcfg.c file and Pdb_Adc_Ip_VS_0_PBcfg.h file are of the same vendor */
  54. #if (PDB_ADC_IP_VENDOR_ID_VS_0_PBCFG_C != PDB_ADC_IP_VENDOR_ID_VS_0_PBCFG_H)
  55. #error "Pdb_Adc_Ip_VS_0_PBcfg.c and Pdb_Adc_Ip_VS_0_PBcfg.h have different vendor ids"
  56. #endif
  57. /* Check if Pdb_Adc_Ip_VS_0_PBcfg.c file and Pdb_Adc_Ip_VS_0_PBcfg.h file are of the same Autosar version */
  58. #if ((PDB_ADC_IP_AR_RELEASE_MAJOR_VERSION_VS_0_PBCFG_C != PDB_ADC_IP_AR_RELEASE_MAJOR_VERSION_VS_0_PBCFG_H) || \
  59. (PDB_ADC_IP_AR_RELEASE_MINOR_VERSION_VS_0_PBCFG_C != PDB_ADC_IP_AR_RELEASE_MINOR_VERSION_VS_0_PBCFG_H) || \
  60. (PDB_ADC_IP_AR_RELEASE_REVISION_VERSION_VS_0_PBCFG_C != PDB_ADC_IP_AR_RELEASE_REVISION_VERSION_VS_0_PBCFG_H) \
  61. )
  62. #error "AutoSar Version Numbers of Pdb_Adc_Ip_VS_0_PBcfg.c and Pdb_Adc_Ip_VS_0_PBcfg.h are different"
  63. #endif
  64. /* Check if Pdb_Adc_Ip_VS_0_PBcfg.c file and Pdb_Adc_Ip_VS_0_PBcfg.h file are of the same Software version */
  65. #if ((PDB_ADC_IP_SW_MAJOR_VERSION_VS_0_PBCFG_C != PDB_ADC_IP_SW_MAJOR_VERSION_VS_0_PBCFG_H) || \
  66. (PDB_ADC_IP_SW_MINOR_VERSION_VS_0_PBCFG_C != PDB_ADC_IP_SW_MINOR_VERSION_VS_0_PBCFG_H) || \
  67. (PDB_ADC_IP_SW_PATCH_VERSION_VS_0_PBCFG_C != PDB_ADC_IP_SW_PATCH_VERSION_VS_0_PBCFG_H) \
  68. )
  69. #error "Software Version Numbers of Pdb_Adc_Ip_VS_0_PBcfg.c and Pdb_Adc_Ip_VS_0_PBcfg.h are different"
  70. #endif
  71. /*==================================================================================================
  72. * LOCAL TYPEDEFS (STRUCTURES, UNIONS, ENUMS)
  73. ==================================================================================================*/
  74. /*==================================================================================================
  75. * LOCAL MACROS
  76. ==================================================================================================*/
  77. /*==================================================================================================
  78. * LOCAL CONSTANTS
  79. ==================================================================================================*/
  80. /*==================================================================================================
  81. * LOCAL VARIABLES
  82. ==================================================================================================*/
  83. /*==================================================================================================
  84. * GLOBAL CONSTANTS
  85. ==================================================================================================*/
  86. /*==================================================================================================
  87. * GLOBAL VARIABLES
  88. ==================================================================================================*/
  89. #define ADC_START_SEC_CONFIG_DATA_UNSPECIFIED
  90. #include "Adc_MemMap.h"
  91. /**
  92. * @brief PDB Ip Config for Hardware Unit ADC1 for configuration variant VS_0.
  93. */
  94. const Pdb_Adc_Ip_ConfigType PdbAdcIpConfig_0_VS_0 =
  95. {
  96. PDB_ADC_IP_LOAD_VAL_IMMEDIATELY, /* LoadValueMode */
  97. (Pdb_Adc_Ip_ClkPrescalerDivType) 0U, /* PrescalerDiv */
  98. (Pdb_Adc_Ip_ClkPrescalerMultFactType) 0U, /* ClkPreMultFactor */
  99. PDB_ADC_IP_SOFTWARE_TRIGGER, /* TriggerSource */
  100. (boolean)FALSE, /* ContinuousModeEnable */
  101. (boolean)FALSE, /* DmaEnable */
  102. 65535U, /* ModValue */
  103. #if (STD_ON == FEATURE_PDB_HAS_INSTANCE_BACKTOBACK)
  104. (boolean)FALSE, /* InstanceBackToBackEnable */
  105. #endif /* (STD_ON == FEATURE_PDB_HAS_INSTANCE_BACKTOBACK) */
  106. #if (STD_ON == FEATURE_PDB_HAS_INTERCHANNEL_BACKTOBACK)
  107. (boolean)FALSE, /* InterChannelBackToBackEnable */
  108. #endif /* (STD_ON == FEATURE_PDB_HAS_INTERCHANNEL_BACKTOBACK) */
  109. 0u, /* NumChans */
  110. NULL_PTR, /* ChanConfigs */
  111. NULL_PTR /* SeqErrNotification */
  112. };
  113. #define ADC_STOP_SEC_CONFIG_DATA_UNSPECIFIED
  114. #include "Adc_MemMap.h"
  115. /*==================================================================================================
  116. * LOCAL FUNCTION PROTOTYPES
  117. ==================================================================================================*/
  118. /*==================================================================================================
  119. * LOCAL FUNCTIONS
  120. ==================================================================================================*/
  121. /*==================================================================================================
  122. * GLOBAL FUNCTIONS
  123. ==================================================================================================*/
  124. #ifdef __cplusplus
  125. }
  126. #endif
  127. /** @} */