1 /* 2 * Copyright 2023 NXP 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef POWER_IP_CFG_H 8 #define POWER_IP_CFG_H 9 10 /** 11 * @file Power_Ip_Cfg.h 12 * @version 3.0.0 13 * 14 * @brief AUTOSAR Mcu - Post-Build(PB) configuration file code template. 15 * @details Code template for Post-Build(PB) configuration file generation. 16 * 17 * @addtogroup POWER_DRIVER_CONFIGURATION Power Ip Driver 18 * @{ 19 */ 20 21 #ifdef __cplusplus 22 extern "C"{ 23 #endif 24 25 26 /*================================================================================================== 27 INCLUDE FILES 28 1) system and project includes 29 2) needed interfaces from external units 30 3) internal and external interfaces from this unit 31 ==================================================================================================*/ 32 #include "Power_Ip_Init_PBcfg.h" 33 34 35 36 /*================================================================================================== 37 * SOURCE FILE VERSION INFORMATION 38 ==================================================================================================*/ 39 #define POWER_IP_CFG_VENDOR_ID 43 40 #define POWER_IP_CFG_AR_RELEASE_MAJOR_VERSION 4 41 #define POWER_IP_CFG_AR_RELEASE_MINOR_VERSION 7 42 #define POWER_IP_CFG_AR_RELEASE_REVISION_VERSION 0 43 #define POWER_IP_CFG_SW_MAJOR_VERSION 3 44 #define POWER_IP_CFG_SW_MINOR_VERSION 0 45 #define POWER_IP_CFG_SW_PATCH_VERSION 0 46 47 /*================================================================================================== 48 * FILE VERSION CHECKS 49 ==================================================================================================*/ 50 /* Check if Power_Ip_Cfg.h file and Power_Ip_Init_PBcfg.h file are of the same vendor */ 51 #if (POWER_IP_CFG_VENDOR_ID != POWER_IP_PBCFG_VENDOR_ID) 52 #error "Power_Ip_Cfg.h and Power_Ip_Init_PBcfg.h have different vendor ids" 53 #endif 54 55 /* Check if Power_Ip_Cfg.h file and Power_Ip_Init_PBcfg.h file are of the same Autosar version */ 56 #if ((POWER_IP_CFG_AR_RELEASE_MAJOR_VERSION != POWER_IP_PBCFG_AR_RELEASE_MAJOR_VERSION) || \ 57 (POWER_IP_CFG_AR_RELEASE_MINOR_VERSION != POWER_IP_PBCFG_AR_RELEASE_MINOR_VERSION) || \ 58 (POWER_IP_CFG_AR_RELEASE_REVISION_VERSION != POWER_IP_PBCFG_AR_RELEASE_REVISION_VERSION) \ 59 ) 60 #error "AutoSar Version Numbers of Power_Ip_Cfg.h and Power_Ip_Init_PBcfg.h are different" 61 #endif 62 63 /* Check if Power_Ip_Cfg.h file and Power_Ip_Init_PBcfg.h file are of the same Software version */ 64 #if ((POWER_IP_CFG_SW_MAJOR_VERSION != POWER_IP_PBCFG_SW_MAJOR_VERSION) || \ 65 (POWER_IP_CFG_SW_MINOR_VERSION != POWER_IP_PBCFG_SW_MINOR_VERSION) || \ 66 (POWER_IP_CFG_SW_PATCH_VERSION != POWER_IP_PBCFG_SW_PATCH_VERSION) \ 67 ) 68 #error "Software Version Numbers of Power_Ip_Cfg.h and Power_Ip_Init_PBcfg.h are different" 69 #endif 70 71 /*================================================================================================== 72 DEFINES AND MACROS 73 ==================================================================================================*/ 74 #define POWER_IP_DEV_ERROR_DETECT (STD_OFF) 75 76 #define POWER_IP_TIMEOUT_TYPE (OSIF_COUNTER_DUMMY) 77 78 #define POWER_IP_TIMEOUT_VALUE_US (50000U) 79 80 81 /** 82 * @brief Support for User mode. 83 * If this parameter has been configured to 'TRUE' the Power can be executed from both supervisor and user mode. 84 */ 85 #define POWER_IP_ENABLE_USER_MODE_SUPPORT (STD_OFF) 86 87 /** Check the driver user mode is enabled only when the MCAL_ENABLE_USER_MODE_SUPPORT is enabled */ 88 #ifndef MCAL_ENABLE_USER_MODE_SUPPORT 89 #if (STD_ON == POWER_IP_ENABLE_USER_MODE_SUPPORT) 90 #error MCAL_ENABLE_USER_MODE_SUPPORT is not enabled. For running Power in user mode the MCAL_ENABLE_USER_MODE_SUPPORT needs to be defined. 91 #endif /* (STD_ON == POWER_IP_ENABLE_USER_MODE_SUPPORT) */ 92 #endif /* ifndef MCAL_ENABLE_USER_MODE_SUPPORT */ 93 94 95 96 97 /*================================================================================================== 98 ENUMS 99 ==================================================================================================*/ 100 101 102 /*================================================================================================== 103 STRUCTURES AND OTHER TYPEDEFS 104 ==================================================================================================*/ 105 106 /*================================================================================================== 107 * FUNCTION PROTOTYPES 108 ==================================================================================================*/ 109 #define MCU_START_SEC_CODE 110 #include "Mcu_MemMap.h" 111 112 113 114 #define MCU_STOP_SEC_CODE 115 #include "Mcu_MemMap.h" 116 117 #ifdef __cplusplus 118 } 119 #endif 120 121 /** @} */ 122 #endif /* #ifndef POWER_IP_CFG_H */ 123