1 /* 2 * Copyright 2021-2024 NXP 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef EMIOS_PWM_IP_CFGDEFINES_H 8 #define EMIOS_PWM_IP_CFGDEFINES_H 9 10 /** 11 * @file EMIOS_Pwm_Ip_CfgDefines.h 12 * 13 * @addtogroup emios_pwm_ip EMIOS Pwm IPL 14 * @{ 15 */ 16 17 #ifdef __cplusplus 18 extern "C"{ 19 #endif 20 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 /* Standard Types */ 29 #include "Std_Types.h" 30 31 /*================================================================================================== 32 * SOURCE FILE VERSION INFORMATION 33 ==================================================================================================*/ 34 #define EMIOS_PWM_IP_CFGDEFINES_VENDOR_ID 43 35 #define EMIOS_PWM_IP_CFGDEFINES_MODULE_ID 121 36 #define EMIOS_PWM_IP_CFGDEFINES_AR_RELEASE_MAJOR_VERSION 4 37 #define EMIOS_PWM_IP_CFGDEFINES_AR_RELEASE_MINOR_VERSION 7 38 #define EMIOS_PWM_IP_CFGDEFINES_AR_RELEASE_REVISION_VERSION 0 39 #define EMIOS_PWM_IP_CFGDEFINES_SW_MAJOR_VERSION 2 40 #define EMIOS_PWM_IP_CFGDEFINES_SW_MINOR_VERSION 0 41 #define EMIOS_PWM_IP_CFGDEFINES_SW_PATCH_VERSION 0 42 43 /*================================================================================================== 44 * FILE VERSION CHECKS 45 ==================================================================================================*/ 46 /* Check if header file and Std_Types.h are of the same AUTOSAR version */ 47 #ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK 48 #if ((EMIOS_PWM_IP_CFGDEFINES_AR_RELEASE_MAJOR_VERSION != STD_AR_RELEASE_MAJOR_VERSION) || \ 49 (EMIOS_PWM_IP_CFGDEFINES_AR_RELEASE_MINOR_VERSION != STD_AR_RELEASE_MINOR_VERSION)) 50 #error "AUTOSAR version numbers of EMIOS_Pwm_Ip_CfgDefines.h and Std_Types.h are different." 51 #endif 52 #endif 53 54 /*================================================================================================== 55 * CONSTANTS 56 ==================================================================================================*/ 57 58 /*================================================================================================== 59 * DEFINES AND MACROS 60 ==================================================================================================*/ 61 /** @brief Switch to enable the notifications feature */ 62 #define EMIOS_PWM_IP_NOTIFICATION_SUPPORT (STD_OFF) 63 64 /** @brief Macros to indicate prescaler used*/ 65 #define EMIOS_PWM_IP_PRESCALER_14BIT 66 67 /** @brief Timer width*/ 68 #define EMIOS_PWM_IP_TIMER_WIDTH_24BITS 69 70 /** 71 * @brief Macro to indicate that PWM driver can support call IP layer directly or must be using HLD (Autosar mode). 72 * @note In current implementation, this macro is defined equal to STD_ON if EB tresos 73 * tool is used, because EB tresos only supports Autosar mode. 74 * If CT tool is used, this mean PWM driver can support call IP layer directly or 75 * using HLD layer, so this macro can be equal to STD_ON/STD_OFF 76 */ 77 #define EMIOS_PWM_IP_AUTOSAR_MODE_IS_USED (STD_OFF) 78 79 /*================================================================================================== 80 * ENUMS 81 ==================================================================================================*/ 82 83 /*================================================================================================== 84 * STRUCTURES AND OTHER TYPEDEFS 85 ==================================================================================================*/ 86 87 /*================================================================================================== 88 * GLOBAL VARIABLE DECLARATIONS 89 ==================================================================================================*/ 90 91 /*================================================================================================== 92 * FUNCTION PROTOTYPES 93 ==================================================================================================*/ 94 95 96 #ifdef __cplusplus 97 } 98 #endif 99 100 /** @} */ 101 102 #endif /* EMIOS_PWM_IP_CFGDEFINES_H */ 103 104