/**
*    @file    Gpt_eMios_Irq.h
*    @version 1.0.0
* 
*    @brief   AUTOSAR Gpt - eMIOS header file support for GPT driver.
*    @details eMIOS header file, containing the variables and functions that are exported by the IP driver.
*   
*    @addtogroup GPT_MODULE
*    @{
*/
/*==================================================================================================
*    Project               : AUTOSAR 4.3 MCAL
*    Platform              : PA
*    Peripheral            : eMios_Stm_Pit
*    Dependencies          : none
* 
*    Autosar Version       : 4.3.1
*    Autosar Revision      : ASR_REL_4_3_REV_0001
*    Autosar Conf.Variant  : 
*    SWVersion             : 1.0.0
*    BuildVersion          : MPC5777C_MCAL_1_0_0_RTM_ASR_REL_4_3_REV_0001_20190315
* 
*    (c) Copyright 2006-2016 Freescale Semiconductor, Inc. Freescale Semiconductor Inc. & STMicroelectronics
*    All Rights Reserved.
==================================================================================================*/
/*==================================================================================================
==================================================================================================*/

#ifndef GPT_EMIOS_IRQ_H
#define GPT_EMIOS_IRQ_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 GPT_EMIOS_IRQ_H_REF_1
*     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].
*
*/
/*==================================================================================================
*                                          INCLUDE FILES
*  1) system and project includes
*  2) needed interfaces from external units
*  3) internal and external interfaces from this unit
==================================================================================================*/
#include "Gpt_eMios_Types.h"

/*==================================================================================================
*                                SOURCE FILE VERSION INFORMATION
==================================================================================================*/
#define GPT_EMIOS_IRQ_VENDOR_ID                       43
#define GPT_EMIOS_IRQ_AR_RELEASE_MAJOR_VERSION        4
#define GPT_EMIOS_IRQ_AR_RELEASE_MINOR_VERSION        3
#define GPT_EMIOS_IRQ_AR_RELEASE_REVISION_VERSION     1
#define GPT_EMIOS_IRQ_SW_MAJOR_VERSION                1
#define GPT_EMIOS_IRQ_SW_MINOR_VERSION                0
#define GPT_EMIOS_IRQ_SW_PATCH_VERSION                0
/*==================================================================================================
*                                       FILE VERSION CHECKS
==================================================================================================*/
/* Check if Gpt_eMios_Irq.h file and  Gpt_eMios_Types header file are of the same vendor */
#if (GPT_EMIOS_IRQ_VENDOR_ID != GPT_EMIOS_TYPES_VENDOR_ID)
    #error "Gpt_eMios_Irq.h and Gpt_eMios_Types.h have different vendor IDs"
#endif

#if ((GPT_EMIOS_IRQ_AR_RELEASE_MAJOR_VERSION != GPT_EMIOS_TYPES_AR_RELEASE_MAJOR_VERSION) || \
     (GPT_EMIOS_IRQ_AR_RELEASE_MINOR_VERSION != GPT_EMIOS_TYPES_AR_RELEASE_MINOR_VERSION) || \
     (GPT_EMIOS_IRQ_AR_RELEASE_REVISION_VERSION != GPT_EMIOS_TYPES_AR_RELEASE_REVISION_VERSION))
    #error "AutoSar Version Numbers of Gpt_eMios_Irq.h and Gpt_eMios_Types.h are different"
#endif

/*Check if Gpt_eMios_Irq.h file and Gpt_eMios_Types header file are of the same Software version*/
#if ((GPT_EMIOS_IRQ_SW_MAJOR_VERSION != GPT_EMIOS_TYPES_SW_MAJOR_VERSION) || \
     (GPT_EMIOS_IRQ_SW_MINOR_VERSION != GPT_EMIOS_TYPES_SW_MINOR_VERSION) || \
     (GPT_EMIOS_IRQ_SW_PATCH_VERSION != GPT_EMIOS_TYPES_SW_PATCH_VERSION))
#error "Software Version Numbers of Gpt_eMios_Irq.h and Gpt_eMios_Types.h are different"
#endif

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

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

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

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

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

/*==================================================================================================
*                                      FUNCTION PROTOTYPES
==================================================================================================*/
#define GPT_START_SEC_CODE
/** @violates @ref GPT_EMIOS_IRQ_H_REF_1 MISRA 2012 Required Directive 4.10, the contents of a header 
*   file being included more than once.*/
#include "Gpt_MemMap.h"

#if (GPT_EMIOS_USED == STD_ON)
FUNC (void, GPT_CODE) Gpt_eMios_ProcessCommonInterrupt(VAR(uint8, AUTOMATIC) u8HwChannel);
#endif /*GPT_EMIOS_USED == STD_ON*/

#define GPT_STOP_SEC_CODE
/** @violates @ref GPT_EMIOS_IRQ_H_REF_1 MISRA 2012 Required Directive 4.10, the contents of a header 
*   file being included more than once.*/
#include "Gpt_MemMap.h"

#ifdef __cplusplus
}
#endif

#endif  /* GPT_EMIOS_IRQ_H */

/** @} */
