1 /* 2 * Copyright 2022-2023 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 "Std_Types.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 1 38 #define STM_IP_DEFINES_SW_MINOR_VERSION_CFG 0 39 #define STM_IP_DEFINES_SW_PATCH_VERSION_CFG 0 40 41 /*================================================================================================== 42 * FILE VERSION CHECKS 43 ==================================================================================================*/ 44 /* Check if header file and Std_Types.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 Std_Types.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_GPT_IP_MODULE_SINGLE_INTERRUPT (STD_ON) 68 /** 69 * 70 * @brief CRS_FSS_AND_RTU_BASE_ADDR_OF_STM_REGISTERS_CONCATENATED 71 */ 72 #define CRS_FSS_AND_RTU_BASE_ADDR_OF_STM_REGISTERS_CONCATENATED (STD_OFF) 73 74 /** 75 * @brief This define is STD_ON when on the same platform there are interrupts for all channels in one ISR, 76 * but also interrupt for each channel separately 77 * 78 */ 79 #define STM_GPT_IP_MODULE_SINGLE_AND_MULTIPLE_INTERRUPTS (STD_OFF) 80 /** 81 * @brief STM_IP_SET_CLOCK_MODE switch 82 * @details Enable/disable API for Dual Mode support. 83 */ 84 #define STM_IP_SET_CLOCK_MODE (STD_OFF) 85 /** 86 * @{ 87 * @brief IRQ Defines for each channel used 88 */ 89 #define RTU0_STM_0_ISR_USED 90 /** 91 * @{ 92 * @brief IRQ Defines for each channel used 93 */ 94 #define RTU0_STM_1_ISR_USED 95 /** 96 * @{ 97 * @brief IRQ Defines for each channel used 98 */ 99 #define RTU0_STM_2_ISR_USED 100 /** 101 * @{ 102 * @brief IRQ Defines for each channel used 103 */ 104 #define RTU0_STM_3_ISR_USED 105 /** 106 * @{ 107 * @brief IRQ Defines for each channel used 108 */ 109 #define RTU1_STM_0_ISR_USED 110 /** 111 * @{ 112 * @brief IRQ Defines for each channel used 113 */ 114 #define RTU1_STM_1_ISR_USED 115 /** 116 * @{ 117 * @brief IRQ Defines for each channel used 118 */ 119 #define RTU1_STM_2_ISR_USED 120 /** 121 * @{ 122 * @brief IRQ Defines for each channel used 123 */ 124 #define RTU1_STM_3_ISR_USED 125 126 /*================================================================================================== 127 * ENUMS 128 ==================================================================================================*/ 129 130 /*================================================================================================== 131 * STRUCTURES AND OTHER TYPEDEFS 132 ==================================================================================================*/ 133 134 /*================================================================================================== 135 * GLOBAL VARIABLE DECLARATIONS 136 ==================================================================================================*/ 137 138 /*================================================================================================== 139 * FUNCTION PROTOTYPES 140 ==================================================================================================*/ 141 142 #ifdef __cplusplus 143 } 144 #endif 145 146 /** @} */ 147 #endif /* STM_IP_CFG_DEFINES_H */ 148