1 /* 2 * Copyright 2020-2023 NXP 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 /* Prevention from multiple including the same header */ 7 #ifndef LCU_IP_CFG_H_ 8 #define LCU_IP_CFG_H_ 9 10 11 /******************************************************************************* 12 * Included files 13 ******************************************************************************/ 14 15 #include "Lcu_Ip_Init_PBcfg.h" 16 17 /*================================================================================================== 18 SOURCE FILE VERSION INFORMATION 19 ==================================================================================================*/ 20 #define LCU_IP_CFG_VENDOR_ID 43 21 #define LCU_IP_CFG_AR_RELEASE_MAJOR_VERSION 4 22 #define LCU_IP_CFG_AR_RELEASE_MINOR_VERSION 7 23 #define LCU_IP_CFG_AR_RELEASE_REVISION_VERSION 0 24 #define LCU_IP_CFG_SW_MAJOR_VERSION 3 25 #define LCU_IP_CFG_SW_MINOR_VERSION 0 26 #define LCU_IP_CFG_SW_PATCH_VERSION 0 27 28 /*================================================================================================== 29 FILE VERSION CHECKS 30 ==================================================================================================*/ 31 /* Check if header file and Lcu_Ip_Init_PBcfg.h file are of the same vendor */ 32 #if (LCU_IP_CFG_VENDOR_ID != LCU_IP_INIT_PBCFG_VENDOR_ID) 33 #error "Lcu_Ip_Cfg.h and Lcu_Ip_Init_PBcfg.h have different vendor ids" 34 #endif 35 36 /* Check if header file and Lcu_Ip_Init_PBcfg.h file are of the same Autosar version */ 37 #if ((LCU_IP_CFG_AR_RELEASE_MAJOR_VERSION != LCU_IP_INIT_PBCFG_AR_RELEASE_MAJOR_VERSION) || \ 38 (LCU_IP_CFG_AR_RELEASE_MINOR_VERSION != LCU_IP_INIT_PBCFG_AR_RELEASE_MINOR_VERSION) || \ 39 (LCU_IP_CFG_AR_RELEASE_REVISION_VERSION != LCU_IP_INIT_PBCFG_AR_RELEASE_REVISION_VERSION) \ 40 ) 41 #error "AutoSar Version Numbers of Lcu_Ip_Cfg.h and Lcu_Ip_Init_PBcfg.h are different" 42 #endif 43 44 /* Check if header file and Lcu_Ip_INIT_PBcfg.h file are of the same Software version */ 45 #if ((LCU_IP_CFG_SW_MAJOR_VERSION != LCU_IP_INIT_PBCFG_SW_MAJOR_VERSION) || \ 46 (LCU_IP_CFG_SW_MINOR_VERSION != LCU_IP_INIT_PBCFG_SW_MINOR_VERSION) || \ 47 (LCU_IP_CFG_SW_PATCH_VERSION != LCU_IP_INIT_PBCFG_SW_PATCH_VERSION) \ 48 ) 49 #error "Software Version Numbers of Lcu_Ip_Cfg.h and Lcu_Ip_Init_PBcfg.h are different" 50 #endif 51 52 /*=============================================================================================== 53 DEFINES AND MACROS 54 ===============================================================================================*/ 55 56 /* Number Of Configured Logic Instances */ 57 #define LCU_IP_NOF_CFG_LOGIC_INSTANCES ((uint32)1U) 58 59 /* Logic Instance 0 */ 60 #define LCU_LOGIC_INSTANCE_0 ((uint32)0U) 61 62 63 /* Number Of Configured Logic Inputs */ 64 #define LCU_IP_NOF_CFG_LOGIC_INPUTS ((uint32)4U) 65 66 /* Logic Instance 0 */ 67 #define LCU_LOGIC_INPUT_0 ((uint32)0U) 68 69 /* Logic Instance 1 */ 70 #define LCU_LOGIC_INPUT_1 ((uint32)1U) 71 72 /* Logic Instance 2 */ 73 #define LCU_LOGIC_INPUT_2 ((uint32)2U) 74 75 /* Logic Instance 3 */ 76 #define LCU_LOGIC_INPUT_3 ((uint32)3U) 77 78 79 /* Number Of Configured Logic Outputs */ 80 #define LCU_IP_NOF_CFG_LOGIC_OUTPUTS ((uint32)4U) 81 82 /* Logic Instance 0 */ 83 #define LCU_LOGIC_OUTPUT_0 ((uint32)0U) 84 85 /* Logic Instance 1 */ 86 #define LCU_LOGIC_OUTPUT_1 ((uint32)1U) 87 88 /* Logic Instance 2 */ 89 #define LCU_LOGIC_OUTPUT_2 ((uint32)2U) 90 91 /* Logic Instance 3 */ 92 #define LCU_LOGIC_OUTPUT_3 ((uint32)3U) 93 94 #define MCL_START_SEC_CONFIG_DATA_UNSPECIFIED 95 /* @violates @ref Mcl_Lcu_h_REF_1 MISRA 2012 Required Directive 4.10, Precautions shall be taken in order to prevent the contents of a header file being included more than once. */ 96 #include "Mcl_MemMap.h" 97 extern const Lcu_Ip_InitType Lcu_Ip_xLcuInitPB; 98 /* LCU Input De-Initialization Structure */ 99 extern const Lcu_Ip_LogicInputConfigType Lcu_Ip_xLogicInputResetConfig; 100 101 /* LCU Output De-Initialization Structure */ 102 extern const Lcu_Ip_LogicOutputConfigType Lcu_Ip_xLogicOutputResetConfig; 103 104 #define MCL_STOP_SEC_CONFIG_DATA_UNSPECIFIED 105 /* @violates @ref Mcl_Lcu_h_REF_1 MISRA 2012 Required Directive 4.10, Precautions shall be taken in order to prevent the contents of a header file being included more than once. */ 106 #include "Mcl_MemMap.h" 107 108 #define MCL_START_SEC_CODE 109 /* @violates @ref Mcl_Lcu_h_REF_1 MISRA 2012 Required Directive 4.10, Precautions shall be taken in order to prevent the contents of a header file being included more than once. */ 110 #include "Mcl_MemMap.h" 111 112 void Lcu0_Ip_IRQHandler(void); 113 114 void Lcu1_Ip_IRQHandler(void); 115 116 #define MCL_STOP_SEC_CODE 117 /* @violates @ref Mcl_Lcu_h_REF_1 MISRA 2012 Required Directive 4.10, Precautions shall be taken in order to prevent the contents of a header file being included more than once. */ 118 #include "Mcl_MemMap.h" 119 120 #endif /* #ifndef LCU_IP_CFG_H_ */ 121 122 /*================================================================================================== 123 * END OF FILE 124 ==================================================================================================*/ 125