1 /* 2 * Copyright 2022-2023 NXP 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 /** 8 * @file Mru_Ip_Cfg.c 9 * @version 1.0.0 10 * 11 * @brief AUTOSAR Platform - Pre-Compile configuration file code template. 12 * @details Code template for Pre-Compile configuration file generation. 13 * 14 * @addtogroup MRU_IP_DRIVER_CONFIGURATION Mru Ip Driver Configuration 15 * @{ 16 */ 17 18 #ifdef __cplusplus 19 extern "C" 20 { 21 #endif 22 23 24 /*================================================================================================== 25 INCLUDE FILES 26 1) system and project includes 27 2) needed interfaces from external units 28 3) internal and external interfaces from this unit 29 ==================================================================================================*/ 30 #include "Mru_Ip.h" 31 32 /*================================================================================================== 33 * SOURCE FILE VERSION INFORMATION 34 ==================================================================================================*/ 35 36 #define CDD_PLATFORM_MRU_IP_MODULE_ID_CFG_C 255 37 #define CDD_PLATFORM_MRU_IP_VENDOR_ID_CFG_C 43 38 #define CDD_PLATFORM_MRU_IP_AR_RELEASE_MAJOR_VERSION_CFG_C 4 39 #define CDD_PLATFORM_MRU_IP_AR_RELEASE_MINOR_VERSION_CFG_C 7 40 #define CDD_PLATFORM_MRU_IP_AR_RELEASE_REVISION_VERSION_CFG_C 0 41 #define CDD_PLATFORM_MRU_IP_SW_MAJOR_VERSION_CFG_C 1 42 #define CDD_PLATFORM_MRU_IP_SW_MINOR_VERSION_CFG_C 0 43 #define CDD_PLATFORM_MRU_IP_SW_PATCH_VERSION_CFG_C 0 44 45 /*================================================================================================== 46 * FILE VERSION CHECKS 47 ==================================================================================================*/ 48 /* Check if Mru_Ip.h and Mru_Ip_Cfg.c are of the same vendor */ 49 #if (CDD_PLATFORM_MRU_IP_VENDOR_ID != CDD_PLATFORM_MRU_IP_VENDOR_ID_CFG_C) 50 #error "Mru_Ip.h and Mru_Ip_Cfg.c have different vendor ids" 51 #endif 52 /* Check if Mru_Ip.h file and Mru_Ip_Cfg.c file are of the same Autosar version */ 53 #if ((CDD_PLATFORM_MRU_IP_AR_RELEASE_MAJOR_VERSION != CDD_PLATFORM_MRU_IP_AR_RELEASE_MAJOR_VERSION_CFG_C) || \ 54 (CDD_PLATFORM_MRU_IP_AR_RELEASE_MINOR_VERSION != CDD_PLATFORM_MRU_IP_AR_RELEASE_MINOR_VERSION_CFG_C) || \ 55 (CDD_PLATFORM_MRU_IP_AR_RELEASE_REVISION_VERSION != CDD_PLATFORM_MRU_IP_AR_RELEASE_REVISION_VERSION_CFG_C)) 56 #error "AutoSar Version Numbers of Mru_Ip.h and Mru_Ip_Cfg.c are different" 57 #endif 58 #if ((CDD_PLATFORM_MRU_IP_SW_MAJOR_VERSION != CDD_PLATFORM_MRU_IP_SW_MAJOR_VERSION_CFG_C) || \ 59 (CDD_PLATFORM_MRU_IP_SW_MINOR_VERSION != CDD_PLATFORM_MRU_IP_SW_MINOR_VERSION_CFG_C) || \ 60 (CDD_PLATFORM_MRU_IP_SW_PATCH_VERSION != CDD_PLATFORM_MRU_IP_SW_PATCH_VERSION_CFG_C)) 61 #error "Software Version Numbers of Mru_Ip.h and Mru_Ip_Cfg.c are different" 62 #endif 63 /*================================================================================================== 64 * LOCAL MACROS 65 ==================================================================================================*/ 66 67 /*================================================================================================== 68 LOCAL TYPEDEFS (STRUCTURES, UNIONS, ENUMS) 69 ==================================================================================================*/ 70 71 72 /*================================================================================================== 73 LOCAL CONSTANTS 74 ==================================================================================================*/ 75 76 77 /*================================================================================================== 78 LOCAL VARIABLES 79 ==================================================================================================*/ 80 81 82 /*================================================================================================== 83 GLOBAL CONSTANTS 84 ==================================================================================================*/ 85 86 87 /*================================================================================================== 88 GLOBAL VARIABLES 89 ==================================================================================================*/ 90 #define PLATFORM_START_SEC_CONST_UNSPECIFIED 91 #include "Platform_MemMap.h" 92 RTU_MRU_Type* const Mru_Ip_apxRTU_Bases[RTU_MRU_INSTANCE_COUNT] = IP_RTU_MRU_BASE_PTRS; 93 #define PLATFORM_STOP_SEC_CONST_UNSPECIFIED 94 #include "Platform_MemMap.h" 95 /*================================================================================================== 96 LOCAL FUNCTION PROTOTYPES 97 ==================================================================================================*/ 98 99 100 /*================================================================================================== 101 LOCAL FUNCTIONS 102 ==================================================================================================*/ 103 104 105 /*================================================================================================== 106 GLOBAL FUNCTIONS 107 ==================================================================================================*/ 108 109 #ifdef __cplusplus 110 } 111 #endif 112 113 /** @} */ 114