1 /*
2  * Copyright 2020-2023 NXP
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef TRGMUX_IP_CFG_H_
8 #define TRGMUX_IP_CFG_H_
9 
10 #ifdef __cplusplus
11 extern "C"
12 {
13 #endif
14 
15 /*==================================================================================================
16 *                                        INCLUDE FILES
17 * 1) system and project includes
18 * 2) needed interfaces from external units
19 * 3) internal and external interfaces from this unit
20 ==================================================================================================*/
21 #include "Trgmux_Ip_Types.h"
22 #include "Trgmux_Ip_Init_PBcfg.h"
23 
24 /*==================================================================================================
25 *                                 SOURCE FILE VERSION INFORMATION
26 ==================================================================================================*/
27 #define TRGMUX_IP_CFG_VENDOR_ID                    43
28 #define TRGMUX_IP_CFG_MODULE_ID                    255
29 #define TRGMUX_IP_CFG_AR_RELEASE_MAJOR_VERSION     4
30 #define TRGMUX_IP_CFG_AR_RELEASE_MINOR_VERSION     7
31 #define TRGMUX_IP_CFG_AR_RELEASE_REVISION_VERSION  0
32 #define TRGMUX_IP_CFG_SW_MAJOR_VERSION             3
33 #define TRGMUX_IP_CFG_SW_MINOR_VERSION             0
34 #define TRGMUX_IP_CFG_SW_PATCH_VERSION             0
35 
36 /*==================================================================================================
37                                       FILE VERSION CHECKS
38 ==================================================================================================*/
39 /* Check if header file and Trgmux_Ip_Types.h file are of the same vendor */
40 #if (TRGMUX_IP_CFG_VENDOR_ID != TRGMUX_IP_TYPES_VENDOR_ID)
41     #error "Trgmux_Ip_Cfg.h and Trgmux_Ip_Types.h have different vendor ids"
42 #endif
43 
44 /* Check if header file and Trgmux_Ip_Types.h file are of the same Autosar version */
45 #if ((TRGMUX_IP_CFG_AR_RELEASE_MAJOR_VERSION != TRGMUX_IP_TYPES_AR_RELEASE_MAJOR_VERSION) || \
46      (TRGMUX_IP_CFG_AR_RELEASE_MINOR_VERSION != TRGMUX_IP_TYPES_AR_RELEASE_MINOR_VERSION) || \
47      (TRGMUX_IP_CFG_AR_RELEASE_REVISION_VERSION != TRGMUX_IP_TYPES_AR_RELEASE_REVISION_VERSION) \
48     )
49     #error "AutoSar Version Numbers of Trgmux_Ip_Cfg.h and Trgmux_Ip_Types.h are different"
50 #endif
51 
52 /* Check if header file and Trgmux_Ip_Types.h file are of the same Software version */
53 #if ((TRGMUX_IP_CFG_SW_MAJOR_VERSION != TRGMUX_IP_TYPES_SW_MAJOR_VERSION) || \
54      (TRGMUX_IP_CFG_SW_MINOR_VERSION != TRGMUX_IP_TYPES_SW_MINOR_VERSION) || \
55      (TRGMUX_IP_CFG_SW_PATCH_VERSION != TRGMUX_IP_TYPES_SW_PATCH_VERSION) \
56     )
57     #error "Software Version Numbers of Trgmux_Ip_Cfg.h and Trgmux_Ip_Types.h are different"
58 #endif
59 /* Check if header file and Trgmux_Ip_Init_PBcfg.h file are of the same vendor */
60 #if (TRGMUX_IP_CFG_VENDOR_ID != TRGMUX_IP_INIT_PBCFG_VENDOR_ID)
61     #error "Trgmux_Ip_Cfg.h and Trgmux_Ip_Init_PBcfg.h have different vendor ids"
62 #endif
63 
64 /* Check if header file and Trgmux_Ip_Init_PBcfg.h file are of the same Autosar version */
65 #if ((TRGMUX_IP_CFG_AR_RELEASE_MAJOR_VERSION != TRGMUX_IP_INIT_PBCFG_AR_RELEASE_MAJOR_VERSION) || \
66      (TRGMUX_IP_CFG_AR_RELEASE_MINOR_VERSION != TRGMUX_IP_INIT_PBCFG_AR_RELEASE_MINOR_VERSION) || \
67      (TRGMUX_IP_CFG_AR_RELEASE_REVISION_VERSION != TRGMUX_IP_INIT_PBCFG_AR_RELEASE_REVISION_VERSION) \
68     )
69     #error "AutoSar Version Numbers of Trgmux_Ip_Cfg.h and Trgmux_Ip_Init_PBcfg.h are different"
70 #endif
71 
72 /* Check if header file and Trgmux_Ip_INIT_PBcfg.h file are of the same Software version */
73 #if ((TRGMUX_IP_CFG_SW_MAJOR_VERSION != TRGMUX_IP_INIT_PBCFG_SW_MAJOR_VERSION) || \
74      (TRGMUX_IP_CFG_SW_MINOR_VERSION != TRGMUX_IP_INIT_PBCFG_SW_MINOR_VERSION) || \
75      (TRGMUX_IP_CFG_SW_PATCH_VERSION != TRGMUX_IP_INIT_PBCFG_SW_PATCH_VERSION) \
76     )
77     #error "Software Version Numbers of Trgmux_Ip_Cfg.h and Trgmux_Ip_Init_PBcfg.h are different"
78 #endif
79 
80 /*==================================================================================================
81 *                                       DEFINES AND MACROS
82 ==================================================================================================*/
83 
84 #define MCL_START_SEC_CONST_8
85 #include "Mcl_MemMap.h"
86 
87 extern const uint8 Trgmux_Ip_InstanceArr[TRGMUX_IP_NOF_INSTANCE];
88 
89 #define MCL_STOP_SEC_CONST_8
90 #include "Mcl_MemMap.h"
91 
92 
93 /* TRGMUX Init Configuration */
94 extern const Trgmux_Ip_InitType Trgmux_Ip_xTrgmuxInitPB;
95 
96 #ifdef __cplusplus
97 }
98 #endif
99 
100 #endif /* TRGMUX_IP_CFG_H_ */
101 
102 /*==================================================================================================
103  *                                        END OF FILE
104 ==================================================================================================*/
105