/*==================================================================================================
*   Project              : RTD AUTOSAR 4.4
*   Platform             : CORTEXM
*   Peripheral           : DMA,CACHE,TRGMUX,LCU,EMIOS,FLEXIO
*   Dependencies         : none
*
*   Autosar Version      : 4.4.0
*   Autosar Revision     : ASR_REL_4_4_REV_0000
*   Autosar Conf.Variant :
*   SW Version           : 0.9.0
*   Build Version        : S32K3_RTD_0_9_0__ASR_REL_4_4_REV_0000_20210326
*
*   (c) Copyright 2020 - 2021 NXP Semiconductors
*   All Rights Reserved.
*
*   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.
==================================================================================================*/

#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 "Emios_Mcl_Ip_BOARD_INITPERIPHERALS_PBcfg.h"
/*==================================================================================================
*                                       FILE VERSION CHECKS
==================================================================================================*/

/*==================================================================================================
*                           LOCAL TYPEDEFS (STRUCTURES, UNIONS, ENUMS)
==================================================================================================*/

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

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

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

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

/*==================================================================================================
*                                        GLOBAL VARIABLES
==================================================================================================*/
#define MCL_START_SEC_CONFIG_DATA_UNSPECIFIED
#include "Mcl_MemMap.h"

/**
* @brief   Configuration for EMIOS counter bus
* @details This structure should contains data about the EMIOS common
*          part configured using Mcl driver
* @implements Emios_Ip_MasterBusConfigType
*/
const Emios_Ip_MasterBusConfigType Emios_Mcl_Ip_0_MasterBusConfig_BOARD_INITPERIPHERALS[1U] =
{
    {
        /** @brief EMIOS hardware channel used. */
        (uint8)23,
        /** @brief Master bus mode for use. */
        EMIOS_IP_MCB_UP_COUNTER,
        /** @brief  Default period */
        (uint32) 16000U,
        /** @brief  Offset at start. */
        (uint32) 0U,
        /** @brief  Prescaler value */
        (uint8) 0U,
        /** @brief  Alternate prescaler value */
        (uint8) 0U,
        /** @brief  Interrupt Enable/Disable */
        TRUE,
        /** @brief  Channel Allow Debug Mode */
        TRUE
    }
};

const Emios_Ip_MasterBusConfigType Emios_Mcl_Ip_1_MasterBusConfig_BOARD_INITPERIPHERALS[1U] =
{
    {
        /** @brief EMIOS hardware channel used. */
        (uint8)23,
        /** @brief Master bus mode for use. */
        EMIOS_IP_MCB_UP_COUNTER,
        /** @brief  Default period */
        (uint32) 16000U,
        /** @brief  Offset at start. */
        (uint32) 0U,
        /** @brief  Prescaler value */
        (uint8) 0U,
        /** @brief  Alternate prescaler value */
        (uint8) 0U,
        /** @brief  Interrupt Enable/Disable */
        TRUE,
        /** @brief  Channel Allow Debug Mode */
        TRUE
    }
};

const Emios_Ip_MasterBusConfigType Emios_Mcl_Ip_2_MasterBusConfig_BOARD_INITPERIPHERALS[1U] =
{
    {
        /** @brief EMIOS hardware channel used. */
        (uint8)23,
        /** @brief Master bus mode for use. */
        EMIOS_IP_MCB_UP_COUNTER,
        /** @brief  Default period */
        (uint32) 16000U,
        /** @brief  Offset at start. */
        (uint32) 0U,
        /** @brief  Prescaler value */
        (uint8) 0U,
        /** @brief  Alternate prescaler value */
        (uint8) 0U,
        /** @brief  Interrupt Enable/Disable */
        TRUE,
        /** @brief  Channel Allow Debug Mode */
        TRUE
    }
};


/**
* @brief   Configuration for EMIOS IP instance
* @details This structure should contains data about the EMIOS common
*          part configurated using Mcl driver
* @implements Emios_Ip_GlobalConfigType
*/
const Emios_Ip_GlobalConfigType Emios_Ip_0_GlobalConfig_BOARD_INITPERIPHERALS =
{
    /** @brief  Allow Debug Mode */
    TRUE,
    /** @brief  Clock Divider Value */
    (uint8) 0U,
    /** @brief  Enable Global Time Base */
    TRUE
};

const Emios_Ip_GlobalConfigType Emios_Ip_1_GlobalConfig_BOARD_INITPERIPHERALS =
{
    /** @brief  Allow Debug Mode */
    TRUE,
    /** @brief  Clock Divider Value */
    (uint8) 0U,
    /** @brief  Enable Global Time Base */
    TRUE
};

const Emios_Ip_GlobalConfigType Emios_Ip_2_GlobalConfig_BOARD_INITPERIPHERALS =
{
    /** @brief  Allow Debug Mode */
    TRUE,
    /** @brief  Clock Divider Value */
    (uint8) 0U,
    /** @brief  Enable Global Time Base */
    TRUE
};

/** 
* @brief   Configuration for EMIOS initialization.
* @details This structure contains data about one instance of EMIOS.
*/
const Emios_Mcl_Ip_ConfigType Emios_Mcl_Ip_0_Config_BOARD_INITPERIPHERALS =
{
    /** @brief Number of master buses used by this EMIOS IP. */
    (uint8)1,
    /** @brief EMIOS instance configuration. */
    &Emios_Ip_0_GlobalConfig_BOARD_INITPERIPHERALS,
    /** @brief EMIOS master buses configuration. */
    &Emios_Mcl_Ip_0_MasterBusConfig_BOARD_INITPERIPHERALS
};

const Emios_Mcl_Ip_ConfigType Emios_Mcl_Ip_1_Config_BOARD_INITPERIPHERALS =
{
    /** @brief Number of master buses used by this EMIOS IP. */
    (uint8)1,
    /** @brief EMIOS instance configuration. */
    &Emios_Ip_1_GlobalConfig_BOARD_INITPERIPHERALS,
    /** @brief EMIOS master buses configuration. */
    &Emios_Mcl_Ip_1_MasterBusConfig_BOARD_INITPERIPHERALS
};

const Emios_Mcl_Ip_ConfigType Emios_Mcl_Ip_2_Config_BOARD_INITPERIPHERALS =
{
    /** @brief Number of master buses used by this EMIOS IP. */
    (uint8)1,
    /** @brief EMIOS instance configuration. */
    &Emios_Ip_2_GlobalConfig_BOARD_INITPERIPHERALS,
    /** @brief EMIOS master buses configuration. */
    &Emios_Mcl_Ip_2_MasterBusConfig_BOARD_INITPERIPHERALS
};


#define MCL_STOP_SEC_CONFIG_DATA_UNSPECIFIED
#include "Mcl_MemMap.h"

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

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

/*==================================================================================================
*                                        GLOBAL FUNCTIONS
==================================================================================================*/

#ifdef __cplusplus
}
#endif

