1 /* 2 * Copyright 2023 NXP 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef WKPU_IP_CFG_H 8 #define WKPU_IP_CFG_H 9 10 /** 11 * @file Wkpu_Ip_Cfg.h 12 * @version 3.0.0 13 * 14 * @brief AUTOSAR Icu - contains the data exported by the Icu module 15 * @details Contains the information that will be exported by the module, as requested by Autosar. 16 * 17 * @addtogroup wkpu_icu_ip WKPU IPL 18 * @{ 19 */ 20 21 #ifdef __cplusplus 22 extern "C"{ 23 #endif 24 25 /*================================================================================================== 26 * INCLUDE FILES 27 * 1) system and project includes 28 * 2) needed interfaces from external units 29 * 3) internal and external interfaces from this unit 30 *================================================================================================*/ 31 #include "Std_Types.h" 32 #include "Wkpu_Ip_SA_Init_PBcfg.h" 33 /*================================================================================================== 34 * SOURCE FILE VERSION INFORMATION 35 *================================================================================================*/ 36 37 #define WKPU_IP_CFG_VENDOR_ID 43 38 #define WKPU_IP_CFG_AR_RELEASE_MAJOR_VERSION 4 39 #define WKPU_IP_CFG_AR_RELEASE_MINOR_VERSION 7 40 #define WKPU_IP_CFG_AR_RELEASE_REVISION_VERSION 0 41 #define WKPU_IP_CFG_SW_MAJOR_VERSION 3 42 #define WKPU_IP_CFG_SW_MINOR_VERSION 0 43 #define WKPU_IP_CFG_SW_PATCH_VERSION 0 44 45 /*================================================================================================== 46 * FILE VERSION CHECKS 47 *================================================================================================*/ 48 /* Check if header file and Std_Types.h file are of the same Autosar version */ 49 #ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK 50 #if ((WKPU_IP_CFG_AR_RELEASE_MAJOR_VERSION != STD_AR_RELEASE_MAJOR_VERSION) || \ 51 (WKPU_IP_CFG_AR_RELEASE_MINOR_VERSION != STD_AR_RELEASE_MINOR_VERSION)) 52 #error "AutoSar Version Numbers of Wkpu_Ip_Cfg.h and Std_Types.h are different" 53 #endif 54 #endif 55 56 #if (WKPU_IP_CFG_VENDOR_ID != WKPU_IP_SA_INIT_PBCFG_VENDOR_ID) 57 #error "Wkpu_Ip_Cfg.h and Wkpu_Ip_SA_INIT_PBcfg.h have different vendor ids" 58 #endif 59 60 /* Check if header file and Wkpu_Ip_SA_Init_PBcfg.h file are of the same Autosar version */ 61 #if ((WKPU_IP_CFG_AR_RELEASE_MAJOR_VERSION != WKPU_IP_SA_INIT_PBCFG_AR_RELEASE_MAJOR_VERSION) || \ 62 (WKPU_IP_CFG_AR_RELEASE_MINOR_VERSION != WKPU_IP_SA_INIT_PBCFG_AR_RELEASE_MINOR_VERSION) || \ 63 (WKPU_IP_CFG_AR_RELEASE_REVISION_VERSION != WKPU_IP_SA_INIT_PBCFG_AR_RELEASE_REVISION_VERSION)) 64 #error "AutoSar Version Numbers of Wkpu_Ip_Cfg.h and Wkpu_Ip_SA_Init_PBcfg.h are different" 65 #endif 66 67 /* Check if header file and Wkpu_Ip_SA_Init_PBcfg.h file are of the same Software version */ 68 #if ((WKPU_IP_CFG_SW_MAJOR_VERSION != WKPU_IP_SA_INIT_PBCFG_SW_MAJOR_VERSION) || \ 69 (WKPU_IP_CFG_SW_MINOR_VERSION != WKPU_IP_SA_INIT_PBCFG_SW_MINOR_VERSION) || \ 70 (WKPU_IP_CFG_SW_PATCH_VERSION != WKPU_IP_SA_INIT_PBCFG_SW_PATCH_VERSION)) 71 #error "Software Version Numbers of Wkpu_Ip_Cfg.h and Wkpu_Ip_SA_Init_PBcfg.h are different" 72 #endif 73 /*================================================================================================== 74 DEFINES AND MACROS 75 ==================================================================================================*/ 76 #if (STD_ON == WKPU_IP_USED) 77 #define WKPU_IP_DEV_ERROR_DETECT (STD_OFF) 78 #define WKPU_IP_SET_MODE_API (STD_ON) 79 #define WKPU_IP_64_CH_USED (STD_ON) 80 #define WKPU_ICU_SINGLE_INTERRUPT (STD_ON) 81 82 /* Macro used to export generated configuration. */ 83 #define WKPU_CONFIG_EXT \ 84 WKPU_CONFIG_SA_INIT_PB \ 85 86 #endif /* WKPU_IP_USED */ 87 88 #ifdef __cplusplus 89 } 90 #endif 91 92 /** @} */ 93 94 #endif /* WKPU_IP_CFG_TYPES_H */ 95