1 /* 2 * Copyright 2022 NXP 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef STM_IP_CFG_DEFINES_H 8 #define STM_IP_CFG_DEFINES_H 9 10 /** 11 * @file Stm_Ip_Cfg_Defines.h 12 * 13 * @addtogroup stm_ip Stm IPL 14 * 15 * @{ 16 */ 17 18 #ifdef __cplusplus 19 extern "C"{ 20 #endif 21 22 /*================================================================================================== 23 * INCLUDE FILES 24 * 1) system and project includes 25 * 2) needed interfaces from external units 26 * 3) internal and external interfaces from this unit 27 ==================================================================================================*/ 28 #include "StandardTypes.h" 29 #include "S32Z2_STM.h" 30 /*================================================================================================== 31 * SOURCE FILE VERSION INFORMATION 32 ==================================================================================================*/ 33 #define STM_IP_DEFINES_VENDOR_ID_CFG 43 34 #define STM_IP_DEFINES_AR_RELEASE_MAJOR_VERSION_CFG 4 35 #define STM_IP_DEFINES_AR_RELEASE_MINOR_VERSION_CFG 7 36 #define STM_IP_DEFINES_AR_RELEASE_REVISION_VERSION_CFG 0 37 #define STM_IP_DEFINES_SW_MAJOR_VERSION_CFG 0 38 #define STM_IP_DEFINES_SW_MINOR_VERSION_CFG 9 39 #define STM_IP_DEFINES_SW_PATCH_VERSION_CFG 0 40 41 /*================================================================================================== 42 * FILE VERSION CHECKS 43 ==================================================================================================*/ 44 /* Check if header file and StandardTypes.h file are of the same Autosar version */ 45 #ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK 46 #if ((STM_IP_DEFINES_AR_RELEASE_MAJOR_VERSION_CFG != STD_AR_RELEASE_MAJOR_VERSION) || \ 47 (STM_IP_DEFINES_AR_RELEASE_MINOR_VERSION_CFG != STD_AR_RELEASE_MINOR_VERSION)) 48 #error "AutoSar Version Numbers of Stm_Ip_Cfg_Defines.h and StandardTypes.h are different" 49 #endif 50 #endif 51 /*================================================================================================== 52 * CONSTANTS 53 ==================================================================================================*/ 54 55 /*================================================================================================== 56 * DEFINES AND MACROS 57 ==================================================================================================*/ 58 /** 59 * @brief These defines indicate that at least one channel from each module is used in all configurations. 60 */ 61 #define STM_IP_USED (STD_ON) 62 /** 63 * @brief This define is used to select between interrupt on each channel and source interrupt 64 * on entire module sources hardware implementations. 65 * 66 */ 67 #define STM_IP_MODULE_SINGLE_INTERRUPT (STD_ON) 68 /** 69 * @brief STM_IP_SET_CLOCK_MODE switch 70 * @details Enable/disable API for Dual Mode support. 71 */ 72 #define STM_IP_SET_CLOCK_MODE (STD_OFF) 73 /** 74 * @{ 75 * @brief IRQ Defines for each channel used 76 */ 77 #define RTU0_STM_0_ISR_USED 78 /** 79 * @{ 80 * @brief IRQ Defines for each channel used 81 */ 82 #define RTU0_STM_1_ISR_USED 83 /** 84 * @{ 85 * @brief IRQ Defines for each channel used 86 */ 87 #define RTU0_STM_2_ISR_USED 88 /** 89 * @{ 90 * @brief IRQ Defines for each channel used 91 */ 92 #define RTU0_STM_3_ISR_USED 93 /** 94 * @{ 95 * @brief IRQ Defines for each channel used 96 */ 97 #define RTU1_STM_0_ISR_USED 98 /** 99 * @{ 100 * @brief IRQ Defines for each channel used 101 */ 102 #define RTU1_STM_1_ISR_USED 103 /** 104 * @{ 105 * @brief IRQ Defines for each channel used 106 */ 107 #define RTU1_STM_2_ISR_USED 108 /** 109 * @{ 110 * @brief IRQ Defines for each channel used 111 */ 112 #define RTU1_STM_3_ISR_USED 113 114 /*================================================================================================== 115 * ENUMS 116 ==================================================================================================*/ 117 118 /*================================================================================================== 119 * STRUCTURES AND OTHER TYPEDEFS 120 ==================================================================================================*/ 121 122 /*================================================================================================== 123 * GLOBAL VARIABLE DECLARATIONS 124 ==================================================================================================*/ 125 126 /*================================================================================================== 127 * FUNCTION PROTOTYPES 128 ==================================================================================================*/ 129 130 #ifdef __cplusplus 131 } 132 #endif 133 134 /** @} */ 135 #endif /* STM_IP_CFG_DEFINES_H */ 136