/**
*   @file       Pwm_EnvCfg.h
*   @version    1.0.0
*
*   @brief      AUTOSAR Pwm - Pwm environment configuration file.
*   @details    Pwm environment configuration header.
*
*   @addtogroup PWM_MODULE
*   @{
*/
/*==================================================================================================
*   Project              : AUTOSAR 4.3 MCAL
*   Platform             : PA
*   Peripheral           : eMios
*   Dependencies         : none
*
*   Autosar Version      : 4.3.1
*   Autosar Revision     : ASR_REL_4_3_REV_0001
*   Autosar Conf.Variant :
*   SW Version           : 1.0.0
*   Build Version        : MPC5777C_MCAL_1_0_0_RTM_ASR_REL_4_3_REV_0001_20190315
*
*   (c) Copyright 2006-2016 Freescale Semiconductor, Inc. 
*       Copyright 2017-2019 NXP
*   All Rights Reserved.
==================================================================================================*/
/*==================================================================================================
==================================================================================================*/

#ifndef PWM_ENV_CFG_H
#define PWM_ENV_CFG_H

#ifdef __cplusplus
extern "C" {
#endif

/**
* @page misra_violations MISRA-C:2012 violations
*
* @section [global]
* Violates MISRA 2012 Required Rule 5.1, External identifiers shall be distinct.
* The used compilers use more than 31 chars for identifiers.
*
* @section [global]
* Violates MISRA 2012 Required Rule 5.2, Identifiers declared in the same scope and name space shall be distinct.
* The used compilers use more than 31 chars for identifiers.
*
* @section [global]
* Violates MISRA 2012 Required Rule 5.4, Macro identifiers shall be distinct.
* The used compilers use more than 31 chars for identifiers.
*
* @section [global]
* Violates MISRA 2012 Required Rule 5.5, Identifiers shall be distinct from macro names.
* The used compilers use more than 31 chars for identifiers.
*
* @section Pwm_EnvCfg_h_REF_1
* Violates MISRA 2012 Advisory Rule 20.1, #include directives should only be preceded by preprocessor directives or comments.
* <MA>_MemMap.h is included after each section define in order to set the current memory section as defined by AUTOSAR.
*
* @section Pwm_EnvCfg_h_REF_2
* Violates 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.
* This violation is not fixed since the inclusion of <MA>_MemMap.h is as per AUTOSAR requirement [SWS_MemMap_00003].
*
* @section Pwm_EnvCfg_h_REF_3
* Violates MISRA 2012 Advisory Rule 2.5, A project should not contain unused macro declarations
* Macros that are in <MDL>.h or <MDL>_Cfg.h… that are needed for the client (and are used only in tests)
*
*/



/*===============================================================================================
*                                         INCLUDE FILES
* 1) system and project includes
* 2) needed interfaces from external units
* 3) internal and external interfaces from this unit
===============================================================================================*/

#include "Std_Types.h"



/*===============================================================================================
*                               SOURCE FILE VERSION INFORMATION
===============================================================================================*/

/**
* @{
* @file         Pwm_EnvCfg.h
*/
#define PWM_CFG_ENV_VENDOR_ID                       43
#define PWM_CFG_ENV_AR_RELEASE_MAJOR_VERSION        4
#define PWM_CFG_ENV_AR_RELEASE_MINOR_VERSION        3
#define PWM_CFG_ENV_AR_RELEASE_REVISION_VERSION     1
#define PWM_CFG_ENV_SW_MAJOR_VERSION                1
#define PWM_CFG_ENV_SW_MINOR_VERSION                0
#define PWM_CFG_ENV_SW_PATCH_VERSION                0
/**@}*/



/*===============================================================================================
*                                      FILE VERSION CHECKS
===============================================================================================*/

#ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
/* Check if header file and Std_Types.h are of the same AUTOSAR version */
#if ((PWM_CFG_ENV_AR_RELEASE_MAJOR_VERSION != STD_AR_RELEASE_MAJOR_VERSION) || \
     (PWM_CFG_ENV_AR_RELEASE_MINOR_VERSION != STD_AR_RELEASE_MINOR_VERSION))
    #error "AUTOSAR version numbers of Pwm_EnvCfg.h and Std_Types.h are different."
#endif
#endif



/*===============================================================================================
*                                           CONSTANTS
===============================================================================================*/




/*===============================================================================================
*                                       DEFINES AND MACROS
===============================================================================================*/

/* External environment the Pwm driver currently supports */
/* @violates @ref Pwm_EnvCfg_h_REF_3 Macros that are in <MDL>.h or that are needed for the client */
#define PWM_ENV_QM                              (STD_OFF)

/* @violates @ref Pwm_EnvCfg_h_REF_3 Macros that are in <MDL>.h or that are needed for the client */
#define PWM_ENV_FTE                             (STD_ON)

/* @violates @ref Pwm_EnvCfg_h_REF_3 Macros that are in <MDL>.h or that are needed for the client */
#define PWM_ENV_GTE                             (STD_OFF)

/* @violates @ref Pwm_EnvCfg_h_REF_3 Macros that are in <MDL>.h or that are needed for the client */
#define PWM_ENV_NTE                             (STD_OFF)

#if (PWM_ENV_FTE == STD_ON)
    /* FTE environment */
    #define PWM_PARAM_CHECK                     (PWM_DEV_ERROR_DETECT)
/* @violates @ref Pwm_EnvCfg_h_REF_3 Macros that are in <MDL>.h or that are needed for the client */
    #define PWM_REGISTER_PROTECTION             (STD_OFF)
    #define PWM_REPORT_UNEXPECTED_ISR           (STD_ON)

    #define PWM_VALIDATE_GLOBAL_CONFIG_CALL     (PWM_DEV_ERROR_DETECT)
    #define PWM_VALIDATE_CHANNEL_CONFIG_CALL    (PWM_DEV_ERROR_DETECT)
#endif



/*===============================================================================================
*                                             ENUMS
===============================================================================================*/




/*===============================================================================================
*                                STRUCTURES AND OTHER TYPEDEFS
===============================================================================================*/




/*===============================================================================================
*                                 GLOBAL VARIABLE DECLARATIONS
===============================================================================================*/




/*===============================================================================================
*                                     FUNCTION PROTOTYPES
===============================================================================================*/

#ifdef __cplusplus
}
#endif

#endif /* PWM_ENV_CFG_H */

/** @} */

