1 /* 2 * Copyright 2023 NXP 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef ADC_SAR_IP_CFG_H 8 #define ADC_SAR_IP_CFG_H 9 10 /** 11 * @file 12 * 13 * @addtogroup adc_sar_ip_config Adc Sar IPL Configuration 14 * @{ 15 */ 16 17 #ifdef __cplusplus 18 extern "C"{ 19 #endif 20 21 /*================================================================================================== 22 * INCLUDE FILES 23 * 1) system and project includes 24 * 2) needed interfaces from external units 25 * 3) internal and external interfaces from this unit 26 ==================================================================================================*/ 27 #include "Adc_Sar_Ip_Types.h" 28 #include "Adc_Sar_Ip_Init_PBcfg.h" 29 30 /*================================================================================================== 31 * SOURCE FILE VERSION INFORMATION 32 ==================================================================================================*/ 33 34 #define ADC_SAR_IP_VENDOR_ID_CFG 43 35 #define ADC_SAR_IP_AR_RELEASE_MAJOR_VERSION_CFG 4 36 #define ADC_SAR_IP_AR_RELEASE_MINOR_VERSION_CFG 7 37 #define ADC_SAR_IP_AR_RELEASE_REVISION_VERSION_CFG 0 38 #define ADC_SAR_IP_SW_MAJOR_VERSION_CFG 3 39 #define ADC_SAR_IP_SW_MINOR_VERSION_CFG 0 40 #define ADC_SAR_IP_SW_PATCH_VERSION_CFG 0 41 42 /*================================================================================================== 43 * FILE VERSION CHECKS 44 ==================================================================================================*/ 45 /* Check if Adc_Sar_Ip_Cfg.h file and Adc_Sar_Ip_Types.h file are of the same vendor */ 46 #if (ADC_SAR_IP_VENDOR_ID_CFG != ADC_SAR_IP_VENDOR_ID_TYPES) 47 #error "Adc_Sar_Ip_Cfg.h and Adc_Sar_Ip_Types.h have different vendor ids" 48 #endif 49 50 /* Check if Adc_Sar_Ip_Cfg.h file and Adc_Sar_Ip_Types.h file are of the same Autosar version */ 51 #if ((ADC_SAR_IP_AR_RELEASE_MAJOR_VERSION_CFG != ADC_SAR_IP_AR_RELEASE_MAJOR_VERSION_TYPES) || \ 52 (ADC_SAR_IP_AR_RELEASE_MINOR_VERSION_CFG != ADC_SAR_IP_AR_RELEASE_MINOR_VERSION_TYPES) || \ 53 (ADC_SAR_IP_AR_RELEASE_REVISION_VERSION_CFG != ADC_SAR_IP_AR_RELEASE_REVISION_VERSION_TYPES) \ 54 ) 55 #error "AutoSar Version Numbers of Adc_Sar_Ip_Cfg.h and Adc_Sar_Ip_Types.h are different" 56 #endif 57 58 /* Check if Adc_Sar_Ip_Cfg.h file and Adc_Sar_Ip_Types.h file are of the same Software version */ 59 #if ((ADC_SAR_IP_SW_MAJOR_VERSION_CFG != ADC_SAR_IP_SW_MAJOR_VERSION_TYPES) || \ 60 (ADC_SAR_IP_SW_MINOR_VERSION_CFG != ADC_SAR_IP_SW_MINOR_VERSION_TYPES) || \ 61 (ADC_SAR_IP_SW_PATCH_VERSION_CFG != ADC_SAR_IP_SW_PATCH_VERSION_TYPES) \ 62 ) 63 #error "Software Version Numbers of Adc_Sar_Ip_Cfg.h and Adc_Sar_Ip_Types.h are different" 64 #endif 65 66 /* Check if Adc_Sar_Ip_Cfg.h file and Adc_Sar_Ip_Init_PBcfg.h file are of the same vendor */ 67 #if (ADC_SAR_IP_VENDOR_ID_CFG != ADC_SAR_IP_VENDOR_ID_INIT_PBCFG) 68 #error "Adc_Sar_Ip_Cfg.h and Adc_Sar_Ip_Init_PBcfg.h have different vendor ids" 69 #endif 70 71 /* Check if Adc_Sar_Ip_Cfg.h file and Adc_Sar_Ip_Init_PBcfg.h file are of the same Autosar version */ 72 #if ((ADC_SAR_IP_AR_RELEASE_MAJOR_VERSION_CFG != ADC_SAR_IP_AR_RELEASE_MAJOR_VERSION_INIT_PBCFG) || \ 73 (ADC_SAR_IP_AR_RELEASE_MINOR_VERSION_CFG != ADC_SAR_IP_AR_RELEASE_MINOR_VERSION_INIT_PBCFG) || \ 74 (ADC_SAR_IP_AR_RELEASE_REVISION_VERSION_CFG != ADC_SAR_IP_AR_RELEASE_REVISION_VERSION_INIT_PBCFG) \ 75 ) 76 #error "AutoSar Version Numbers of Adc_Sar_Ip_Cfg.h and Adc_Sar_Ip_Init_PBcfg.h are different" 77 #endif 78 79 /* Check if Adc_Sar_Ip_Cfg.h file and Adc_Sar_Ip_Init_PBcfg.h file are of the same Software version */ 80 #if ((ADC_SAR_IP_SW_MAJOR_VERSION_CFG != ADC_SAR_IP_SW_MAJOR_VERSION_INIT_PBCFG) || \ 81 (ADC_SAR_IP_SW_MINOR_VERSION_CFG != ADC_SAR_IP_SW_MINOR_VERSION_INIT_PBCFG) || \ 82 (ADC_SAR_IP_SW_PATCH_VERSION_CFG != ADC_SAR_IP_SW_PATCH_VERSION_INIT_PBCFG) \ 83 ) 84 #error "Software Version Numbers of Adc_Sar_Ip_Cfg.h and Adc_Sar_Ip_Init_PBcfg.h are different" 85 #endif 86 87 /*================================================================================================== 88 * CONSTANTS 89 ==================================================================================================*/ 90 91 /*================================================================================================== 92 * DEFINES AND MACROS 93 ==================================================================================================*/ 94 95 /*================================================================================================== 96 * ENUMS 97 ==================================================================================================*/ 98 99 /*================================================================================================== 100 * STRUCTURES AND OTHER TYPEDEFS 101 ==================================================================================================*/ 102 103 /*================================================================================================== 104 * GLOBAL VARIABLE DECLARATIONS 105 ==================================================================================================*/ 106 107 /*================================================================================================== 108 * LOCAL CONSTANTS 109 ==================================================================================================*/ 110 111 /*================================================================================================== 112 * FUNCTION PROTOTYPES 113 ==================================================================================================*/ 114 115 #ifdef __cplusplus 116 } 117 #endif 118 119 /** @} */ 120 121 #endif /* ADC_SAR_IP_CFG_H */ 122