1 /* 2 * Copyright 2020-2023 NXP 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef POWER_IP_AEC_H 8 #define POWER_IP_AEC_H 9 10 /** 11 * @file Power_Ip_AEC.h 12 * @version 3.0.0 13 * 14 * @brief POWER IP driver header file. 15 * @details POWER IP driver header file. 16 * 17 * @addtogroup POWER_DRIVER Power Ip Driver 18 * @{ 19 */ 20 21 #ifdef __cplusplus 22 extern "C"{ 23 #endif 24 25 26 27 /*================================================================================================== 28 INCLUDE FILES 29 1) system and project includes 30 2) needed interfaces from external units 31 3) internal and external interfaces from this unit 32 ==================================================================================================*/ 33 #include "Power_Ip.h" 34 #include "Power_Ip_AEC_Types.h" 35 #include "StandardTypes.h" 36 #include "Mcal.h" 37 38 /*================================================================================================== 39 SOURCE FILE VERSION INFORMATION 40 ==================================================================================================*/ 41 #define POWER_IP_AEC_VENDOR_ID 43 42 #define POWER_IP_AEC_AR_RELEASE_MAJOR_VERSION 4 43 #define POWER_IP_AEC_AR_RELEASE_MINOR_VERSION 7 44 #define POWER_IP_AEC_AR_RELEASE_REVISION_VERSION 0 45 #define POWER_IP_AEC_SW_MAJOR_VERSION 3 46 #define POWER_IP_AEC_SW_MINOR_VERSION 0 47 #define POWER_IP_AEC_SW_PATCH_VERSION 0 48 49 /*================================================================================================== 50 FILE VERSION CHECKS 51 ==================================================================================================*/ 52 /* Check if Power_Ip_AEC.h file and Power_Ip.h file are of the same vendor */ 53 #if (POWER_IP_AEC_VENDOR_ID != POWER_IP_VENDOR_ID) 54 #error "Power_Ip_AEC.h and Power_Ip.h have different vendor ids" 55 #endif 56 57 /* Check if Power_Ip_AEC.h file and Power_Ip.h file are of the same Autosar version */ 58 #if ((POWER_IP_AEC_AR_RELEASE_MAJOR_VERSION != POWER_IP_AR_RELEASE_MAJOR_VERSION) || \ 59 (POWER_IP_AEC_AR_RELEASE_MINOR_VERSION != POWER_IP_AR_RELEASE_MINOR_VERSION) || \ 60 (POWER_IP_AEC_AR_RELEASE_REVISION_VERSION != POWER_IP_AR_RELEASE_REVISION_VERSION) \ 61 ) 62 #error "AutoSar Version Numbers of Power_Ip_AEC.h and Power_Ip.h are different" 63 #endif 64 65 /* Check if Power_Ip_AEC.h file and Power_Ip.h file are of the same Software version */ 66 #if ((POWER_IP_AEC_SW_MAJOR_VERSION != POWER_IP_SW_MAJOR_VERSION) || \ 67 (POWER_IP_AEC_SW_MINOR_VERSION != POWER_IP_SW_MINOR_VERSION) || \ 68 (POWER_IP_AEC_SW_PATCH_VERSION != POWER_IP_SW_PATCH_VERSION) \ 69 ) 70 #error "Software Version Numbers of Power_Ip_AEC.h and Power_Ip.h are different" 71 #endif 72 73 /* Check if Power_Ip_AEC.h file and Power_Ip_AEC_Types.h file are of the same vendor */ 74 #if (POWER_IP_AEC_VENDOR_ID != POWER_IP_AEC_TYPES_VENDOR_ID) 75 #error "Power_Ip_AEC.h and Power_Ip_AEC_Types.h have different vendor ids" 76 #endif 77 78 /* Check if Power_Ip_AEC.h file and Power_Ip_AEC_Types.h file are of the same Autosar version */ 79 #if ((POWER_IP_AEC_AR_RELEASE_MAJOR_VERSION != POWER_IP_AEC_TYPES_AR_RELEASE_MAJOR_VERSION) || \ 80 (POWER_IP_AEC_AR_RELEASE_MINOR_VERSION != POWER_IP_AEC_TYPES_AR_RELEASE_MINOR_VERSION) || \ 81 (POWER_IP_AEC_AR_RELEASE_REVISION_VERSION != POWER_IP_AEC_TYPES_AR_RELEASE_REVISION_VERSION) \ 82 ) 83 #error "AutoSar Version Numbers of Power_Ip_AEC.h and Power_Ip_AEC_Types.h are different" 84 #endif 85 86 /* Check if Power_Ip_AEC.h file and Power_Ip_AEC_Types.h file are of the same Software version */ 87 #if ((POWER_IP_AEC_SW_MAJOR_VERSION != POWER_IP_AEC_TYPES_SW_MAJOR_VERSION) || \ 88 (POWER_IP_AEC_SW_MINOR_VERSION != POWER_IP_AEC_TYPES_SW_MINOR_VERSION) || \ 89 (POWER_IP_AEC_SW_PATCH_VERSION != POWER_IP_AEC_TYPES_SW_PATCH_VERSION) \ 90 ) 91 #error "Software Version Numbers of Power_Ip_AEC.h and Power_Ip_AEC_Types.h are different" 92 #endif 93 94 #ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK 95 /* Check if Power_Ip_AEC.h file and StandardTypes.h file are of the same Autosar version */ 96 #if ((POWER_IP_AEC_AR_RELEASE_MAJOR_VERSION != STD_AR_RELEASE_MAJOR_VERSION) || \ 97 (POWER_IP_AEC_AR_RELEASE_MINOR_VERSION != STD_AR_RELEASE_MINOR_VERSION)) 98 #error "AutoSar Version Numbers of Power_Ip_AEC.h and StandardTypes.h are different" 99 #endif 100 101 /* Check if Power_Ip_AEC.h file and Mcal.h file are of the same Autosar version */ 102 #if ((POWER_IP_AEC_AR_RELEASE_MAJOR_VERSION != MCAL_AR_RELEASE_MAJOR_VERSION) || \ 103 (POWER_IP_AEC_AR_RELEASE_MINOR_VERSION != MCAL_AR_RELEASE_MINOR_VERSION)) 104 #error "AutoSar Version Numbers of Power_Ip_AEC.h and Mcal.h are different" 105 #endif 106 #endif 107 108 /*================================================================================================== 109 * CONSTANTS 110 ==================================================================================================*/ 111 112 113 /*================================================================================================== 114 DEFINES AND MACROS 115 ==================================================================================================*/ 116 117 /*================================================================================================== 118 * ENUMS 119 ==================================================================================================*/ 120 121 122 /*================================================================================================== 123 * STRUCTURES AND OTHER TYPEDEFS 124 ==================================================================================================*/ 125 126 127 128 /*================================================================================================== 129 * GLOBAL VARIABLE DECLARATIONS 130 ==================================================================================================*/ 131 132 133 /*================================================================================================== 134 * FUNCTION PROTOTYPES 135 ==================================================================================================*/ 136 #define MCU_START_SEC_CODE 137 #include "Mcu_MemMap.h" 138 139 #if (defined(POWER_IP_AECRESETCONFIG_API) && (STD_ON == POWER_IP_AECRESETCONFIG_API)) 140 void Power_Ip_AEC_Reset_Config(const Power_Ip_AEC_ConfigType * ConfigPtr); 141 #endif 142 143 144 #define MCU_STOP_SEC_CODE 145 #include "Mcu_MemMap.h" 146 147 148 #ifdef __cplusplus 149 } 150 #endif 151 152 /** @} */ 153 #endif /* POWER_IP_AEC_H */ 154 155 156