/*==================================================================================================
*   Project              : RTD AUTOSAR 4.7
*   Platform             : CORTEXM
*   Peripheral           : Emios Siul2 Wkpu LpCmp
*   Dependencies         : none
*
*   Autosar Version      : 4.7.0
*   Autosar Revision     : ASR_REL_4_7_REV_0000
*   Autosar Conf.Variant :
*   SW Version           : 3.0.0
*   Build Version        : S32K3_RTD_3_0_0_D2303_ASR_REL_4_7_REV_0000_20230331
*
*   Copyright 2020 - 2023 NXP Semiconductors
*
*   NXP Confidential. This software is owned or controlled by NXP and may only be
*   used strictly in accordance with the applicable license terms. By expressly
*   accepting such terms or by downloading, installing, activating and/or otherwise
*   using the software, you are agreeing that you have read, and that you agree to
*   comply with and are bound by, such license terms. If you do not agree to be
*   bound by the applicable license terms, then you may not retain, install,
*   activate or otherwise use the software.
==================================================================================================*/ 


/**
 *   @file          Icu_Ipw_MBDT_PBcfg.c
 *   @implements    Icu_Ipw_PBCfg.c_Artifact
 *   @version       3.0.0
 *
 *   @brief   AUTOSAR Icu - contains the data exported by the Icu module
 *   @details Contains the information that will be exported by the module, as requested by Autosar.
 *
 *   @addtogroup ICU_MODULE
 *   @{
 */

#ifdef __cplusplus
extern "C"{
#endif

/*==================================================================================================
*                                         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"
#include "Icu_Ipw_Types.h"
#include "Emios_Icu_Ip.h"
#include "Siul2_Icu_Ip.h"
#include "Wkpu_Ip.h"
#include "Cmp_Ip.h"

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

#define ICU_IPW_MBDT_PBCFG_VENDOR_ID_C                   43
#define ICU_IPW_MBDT_PBCFG_AR_RELEASE_MAJOR_VERSION_C    4
#define ICU_IPW_MBDT_PBCFG_AR_RELEASE_MINOR_VERSION_C    7
#define ICU_IPW_MBDT_PBCFG_AR_RELEASE_REVISION_VERSION_C 0
#define ICU_IPW_MBDT_PBCFG_SW_MAJOR_VERSION_C            3
#define ICU_IPW_MBDT_PBCFG_SW_MINOR_VERSION_C            0
#define ICU_IPW_MBDT_PBCFG_SW_PATCH_VERSION_C            0

/*==================================================================================================
 *                                      FILE VERSION CHECKS
 *================================================================================================*/
/* Check if header file and Std_Types.h file are of the same Autosar version */
#ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
    #if ((ICU_IPW_MBDT_PBCFG_AR_RELEASE_MAJOR_VERSION_C != STD_AR_RELEASE_MAJOR_VERSION) || \
         (ICU_IPW_MBDT_PBCFG_AR_RELEASE_MINOR_VERSION_C != STD_AR_RELEASE_MINOR_VERSION))
    #error "AutoSar Version Numbers of Icu_Ipw_MBDT_PBcfg.c and Std_Types.h are different"
    #endif
#endif

#if (ICU_IPW_MBDT_PBCFG_VENDOR_ID_C != ICU_IPW_TYPES_VENDOR_ID)
    #error "Icu_Ipw_MBDT_PBcfg.c and Icu_Ipw_Types.h have different vendor ids"
#endif

/* Check if  source file and Icu_Ipw_Types.h file are of the same Autosar version */
#if ((ICU_IPW_MBDT_PBCFG_AR_RELEASE_MAJOR_VERSION_C != ICU_IPW_TYPES_AR_RELEASE_MAJOR_VERSION) || \
     (ICU_IPW_MBDT_PBCFG_AR_RELEASE_MINOR_VERSION_C != ICU_IPW_TYPES_AR_RELEASE_MINOR_VERSION) || \
     (ICU_IPW_MBDT_PBCFG_AR_RELEASE_REVISION_VERSION_C != ICU_IPW_TYPES_AR_RELEASE_REVISION_VERSION))
    #error "AutoSar Version Numbers of Icu_Ipw_MBDT_PBcfg.c and Icu_Ipw_Types.h are different"
#endif

/* Check if source file and Icu_Ipw_Types.h file are of the same Software version */
#if ((ICU_IPW_MBDT_PBCFG_SW_MAJOR_VERSION_C != ICU_IPW_TYPES_SW_MAJOR_VERSION) || \
     (ICU_IPW_MBDT_PBCFG_SW_MINOR_VERSION_C != ICU_IPW_TYPES_SW_MINOR_VERSION) || \
     (ICU_IPW_MBDT_PBCFG_SW_PATCH_VERSION_C != ICU_IPW_TYPES_SW_PATCH_VERSION))
    #error "Software Version Numbers of Icu_Ipw_MBDT_PBcfg.c and Icu_Ipw_Types.h are different"
#endif

#if (ICU_IPW_MBDT_PBCFG_VENDOR_ID_C != EMIOS_ICU_IP_VENDOR_ID)
    #error "Icu_Ipw_MBDT_PBcfg.c and Emios_Icu_Ip.h have different vendor ids"
#endif

/* Check if  source file and Emios_Icu_Ip.h file are of the same Autosar version */
#if ((ICU_IPW_MBDT_PBCFG_AR_RELEASE_MAJOR_VERSION_C != EMIOS_ICU_IP_AR_RELEASE_MAJOR_VERSION) || \
     (ICU_IPW_MBDT_PBCFG_AR_RELEASE_MINOR_VERSION_C != EMIOS_ICU_IP_AR_RELEASE_MINOR_VERSION) || \
     (ICU_IPW_MBDT_PBCFG_AR_RELEASE_REVISION_VERSION_C != EMIOS_ICU_IP_AR_RELEASE_REVISION_VERSION))
    #error "AutoSar Version Numbers of Icu_Ipw_MBDT_PBcfg.c and Emios_Icu_Ip.h are different"
#endif

/* Check if source file and Emios_Icu_Ip.h file are of the same Software version */
#if ((ICU_IPW_MBDT_PBCFG_SW_MAJOR_VERSION_C != EMIOS_ICU_IP_SW_MAJOR_VERSION) || \
     (ICU_IPW_MBDT_PBCFG_SW_MINOR_VERSION_C != EMIOS_ICU_IP_SW_MINOR_VERSION) || \
     (ICU_IPW_MBDT_PBCFG_SW_PATCH_VERSION_C != EMIOS_ICU_IP_SW_PATCH_VERSION))
    #error "Software Version Numbers of Icu_Ipw_MBDT_PBcfg.c and Emios_Icu_Ip.h are different"
#endif

#if (ICU_IPW_MBDT_PBCFG_VENDOR_ID_C != SIUL2_ICU_IP_VENDOR_ID)
    #error "Icu_Ipw_MBDT_PBcfg.c and Siul2_Icu_Ip.h have different vendor ids"
#endif

/* Check if  source file and Siul2_Icu_Ip.h file are of the same Autosar version */
#if ((ICU_IPW_MBDT_PBCFG_AR_RELEASE_MAJOR_VERSION_C != SIUL2_ICU_IP_AR_RELEASE_MAJOR_VERSION) || \
     (ICU_IPW_MBDT_PBCFG_AR_RELEASE_MINOR_VERSION_C != SIUL2_ICU_IP_AR_RELEASE_MINOR_VERSION) || \
     (ICU_IPW_MBDT_PBCFG_AR_RELEASE_REVISION_VERSION_C != SIUL2_ICU_IP_AR_RELEASE_REVISION_VERSION))
    #error "AutoSar Version Numbers of Icu_Ipw_MBDT_PBcfg.c and Siul2_Icu_Ip.h are different"
#endif

/* Check if source file and Siul2_Icu_Ip.h file are of the same Software version */
#if ((ICU_IPW_MBDT_PBCFG_SW_MAJOR_VERSION_C != SIUL2_ICU_IP_SW_MAJOR_VERSION) || \
     (ICU_IPW_MBDT_PBCFG_SW_MINOR_VERSION_C != SIUL2_ICU_IP_SW_MINOR_VERSION) || \
     (ICU_IPW_MBDT_PBCFG_SW_PATCH_VERSION_C != SIUL2_ICU_IP_SW_PATCH_VERSION))
    #error "Software Version Numbers of Icu_Ipw_MBDT_PBcfg.c and Siul2_Icu_Ip.h are different"
#endif

#if (ICU_IPW_MBDT_PBCFG_VENDOR_ID_C != WKPU_IP_VENDOR_ID)
    #error "Icu_Ipw_MBDT_PBcfg.c and Wkpu_Ip.h have different vendor ids"
#endif

/* Check if  source file and Wkpu_Ip.h file are of the same Autosar version */
#if ((ICU_IPW_MBDT_PBCFG_AR_RELEASE_MAJOR_VERSION_C != WKPU_IP_AR_RELEASE_MAJOR_VERSION) || \
     (ICU_IPW_MBDT_PBCFG_AR_RELEASE_MINOR_VERSION_C != WKPU_IP_AR_RELEASE_MINOR_VERSION) || \
     (ICU_IPW_MBDT_PBCFG_AR_RELEASE_REVISION_VERSION_C != WKPU_IP_AR_RELEASE_REVISION_VERSION))
    #error "AutoSar Version Numbers of Icu_Ipw_MBDT_PBcfg.c and Wkpu_Ip.h are different"
#endif

/* Check if source file and Wkpu_Ip.h file are of the same Software version */
#if ((ICU_IPW_MBDT_PBCFG_SW_MAJOR_VERSION_C != WKPU_IP_SW_MAJOR_VERSION) || \
     (ICU_IPW_MBDT_PBCFG_SW_MINOR_VERSION_C != WKPU_IP_SW_MINOR_VERSION) || \
     (ICU_IPW_MBDT_PBCFG_SW_PATCH_VERSION_C != WKPU_IP_SW_PATCH_VERSION))
    #error "Software Version Numbers of Icu_Ipw_MBDT_PBcfg.c and Wkpu_Ip.h are different"
#endif

#if (ICU_IPW_MBDT_PBCFG_VENDOR_ID_C != CMP_IP_VENDOR_ID)
    #error "Icu_Ipw_MBDT_PBcfg.c and Cmp_Ip.h have different vendor ids"
#endif

/* Check if  source file and Cmp_Ip.h file are of the same Autosar version */
#if ((ICU_IPW_MBDT_PBCFG_AR_RELEASE_MAJOR_VERSION_C != CMP_IP_AR_RELEASE_MAJOR_VERSION) || \
     (ICU_IPW_MBDT_PBCFG_AR_RELEASE_MINOR_VERSION_C != CMP_IP_AR_RELEASE_MINOR_VERSION) || \
     (ICU_IPW_MBDT_PBCFG_AR_RELEASE_REVISION_VERSION_C != CMP_IP_AR_RELEASE_REVISION_VERSION))
    #error "AutoSar Version Numbers of Icu_Ipw_MBDT_PBcfg.c and Cmp_Ip.h are different"
#endif

/* Check if source file and Cmp_Ip.h file are of the same Software version */
#if ((ICU_IPW_MBDT_PBCFG_SW_MAJOR_VERSION_C != CMP_IP_SW_MAJOR_VERSION) || \
     (ICU_IPW_MBDT_PBCFG_SW_MINOR_VERSION_C != CMP_IP_SW_MINOR_VERSION) || \
     (ICU_IPW_MBDT_PBCFG_SW_PATCH_VERSION_C != CMP_IP_SW_PATCH_VERSION))
    #error "Software Version Numbers of Icu_Ipw_MBDT_PBcfg.c and Cmp_Ip.h are different"
#endif
/*==================================================================================================
 *                          LOCAL TYPEDEFS (STRUCTURES, UNIONS, ENUMS)
 *================================================================================================*/

/*==================================================================================================
 *                                       LOCAL MACROS
 *================================================================================================*/

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

/*==================================================================================================
 *                                       LOCAL VARIABLES
 *================================================================================================*/

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

/*==================================================================================================
 *                                       GLOBAL VARIABLES
 *================================================================================================*/

#define ICU_START_SEC_CONFIG_DATA_UNSPECIFIED
#include "Icu_MemMap.h"

/*
*   @brief This index relates the Hardware channels with the respective ICU channel. *
*   When an normal interrupt is asserted this index is used to locate the corresponding ICU channel
*/

/** 
 * @brief   Icu channels IP related configuration array
 */
const Icu_Ipw_ChannelConfigType Icu_Ipw_IpChannelConfig_PB_MBDT[1U] =
{

    {
        /** @brief IP type of this channel */
        ICU_SIUL2_MODULE,
        /** @brief Instance number */
        0U,
    #if (STD_ON == EMIOS_ICU_IP_USED)
        /** @brief Emios IP channel pointer */
        NULL_PTR,
    #endif  /* EMIOS_ICU_IP_USED */
    #if (STD_ON == WKPU_IP_USED)
        /** @brief Wkpu IP channel pointer */
        NULL_PTR,
    #if (defined(ICU_WKPU_NMI_API_USED))
        /** @brief Wkpu NMI pointer */
        NULL_PTR,
    #endif
    #endif  /* WKPU_IP_USED */
    #if (STD_ON == SIUL2_ICU_IP_USED)
        /** @brief Siul2 IP channel pointer */
        &Siul2_Icu_Ip_0_ChannelConfig_PB_MBDT[0U],
    #endif  /* SIUL2_ICU_IP_USED */
    #if (STD_ON == CMP_IP_USED)
        /** @brief LpCmp IP channel pointer */
        NULL_PTR,
    #endif  /* CMP_IP_USED */
        /** @brief Index in the configuration table of the channels */
        0U
    }
};

/** 
 * @brief   Icu instances related configuration array
 */

const Icu_Ipw_IpConfigType Icu_Ipw_IpConfig_PB_MBDT[1U] ={
    {
        /** @brief IP type */
        ICU_SIUL2_MODULE,
    #if (STD_ON == EMIOS_ICU_IP_USED)
        /** @brief pointer to Emios HW configuration of instance */
        NULL_PTR,
    #endif  /* EMIOS_ICU_IP_USED */
    #if (STD_ON == WKPU_IP_USED)
        /** @brief pointer to Wkpu HW configuration of instance */
        NULL_PTR,
    #endif  /* WKPU_IP_USED */
    #if (STD_ON == SIUL2_ICU_IP_USED)
        /** @brief pointer to Siul2 HW configuration of instance */
        &Siul2_Icu_Ip_0_Config_PB_MBDT,
    #endif  /* SIUL2_ICU_IP_USED */
    #if (STD_ON == CMP_IP_USED)
        /** @brief pointer to LpCmp HW configuration of instance */
        NULL_PTR,
    #endif  /* CMP_IP_USED */
        /** @brief IP instance number */
        0U
    }
};

#define ICU_STOP_SEC_CONFIG_DATA_UNSPECIFIED
#include "Icu_MemMap.h"
/*==================================================================================================
 *                                   LOCAL FUNCTION PROTOTYPES
 *================================================================================================*/


/*==================================================================================================
 *                                       LOCAL FUNCTIONS
 *================================================================================================*/


#ifdef __cplusplus
}
#endif
/** @} */

