/*==================================================================================================
*   Project              : RTD AUTOSAR 4.4
*   Platform             : CORTEXM
*   Peripheral           : 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.
==================================================================================================*/

/**
*   @file       Emios_Pwm_Ip_PBcfg.c
*
*   @addtogroup emios_pwm_ip Emios Pwm IPL
*   @{
*/

#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_Pwm_Ip_Cfg.h"

/*==================================================================================================
*                                 SOURCE FILE VERSION INFORMATION
==================================================================================================*/
#define EMIOS_PWM_IP_BOARD_InitPeripherals_PB_CFG_VENDOR_ID_C                       43
#define EMIOS_PWM_IP_BOARD_InitPeripherals_PB_CFG_AR_RELEASE_MAJOR_VERSION_C        4
#define EMIOS_PWM_IP_BOARD_InitPeripherals_PB_CFG_AR_RELEASE_MINOR_VERSION_C        4
#define EMIOS_PWM_IP_BOARD_InitPeripherals_PB_CFG_AR_RELEASE_REVISION_VERSION_C     0
#define EMIOS_PWM_IP_BOARD_InitPeripherals_PB_CFG_SW_MAJOR_VERSION_C                0
#define EMIOS_PWM_IP_BOARD_InitPeripherals_PB_CFG_SW_MINOR_VERSION_C                9
#define EMIOS_PWM_IP_BOARD_InitPeripherals_PB_CFG_SW_PATCH_VERSION_C                0

/*==================================================================================================
*                                       FILE VERSION CHECKS
==================================================================================================*/
/* Check if source file and Emios_Pwm_Ip_Cfg.h file are of the same vendor */
#if (EMIOS_PWM_IP_BOARD_InitPeripherals_PB_CFG_VENDOR_ID_C != EMIOS_PWM_IP_CFG_VENDOR_ID)
    #error "Vendor IDs of Emios_Pwm_Ip_BOARD_InitPeripherals_PBcfg.c and Emios_Pwm_Ip_Cfg.h are different."
#endif

/* Check if source file and Emios_Pwm_Ip_Cfg.h file are of the same AUTOSAR version */
#if ((EMIOS_PWM_IP_BOARD_InitPeripherals_PB_CFG_AR_RELEASE_MAJOR_VERSION_C    != EMIOS_PWM_IP_CFG_AR_RELEASE_MAJOR_VERSION) || \
     (EMIOS_PWM_IP_BOARD_InitPeripherals_PB_CFG_AR_RELEASE_MINOR_VERSION_C    != EMIOS_PWM_IP_CFG_AR_RELEASE_MINOR_VERSION) || \
     (EMIOS_PWM_IP_BOARD_InitPeripherals_PB_CFG_AR_RELEASE_REVISION_VERSION_C != EMIOS_PWM_IP_CFG_AR_RELEASE_REVISION_VERSION))
    #error "AUTOSAR version numbers of Emios_Pwm_Ip_BOARD_InitPeripherals_PBcfg.c and Emios_Pwm_Ip_Cfg.h are different."
#endif

/* Check if source file and Emios_Pwm_Ip_Cfg.h file are of the same Software version */
#if ((EMIOS_PWM_IP_BOARD_InitPeripherals_PB_CFG_SW_MAJOR_VERSION_C != EMIOS_PWM_IP_CFG_SW_MAJOR_VERSION)  || \
     (EMIOS_PWM_IP_BOARD_InitPeripherals_PB_CFG_SW_MINOR_VERSION_C != EMIOS_PWM_IP_CFG_SW_MINOR_VERSION)  || \
     (EMIOS_PWM_IP_BOARD_InitPeripherals_PB_CFG_SW_PATCH_VERSION_C != EMIOS_PWM_IP_CFG_SW_PATCH_VERSION))
    #error "Software version numbers of Emios_Pwm_Ip_BOARD_InitPeripherals_PBcfg.c and Emios_Pwm_Ip_Cfg.h are different."
#endif

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

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

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

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

/*==================================================================================================
*                                    LOCAL FUNCTION PROTOTYPES
==================================================================================================*/
#define PWM_START_SEC_CODE
#include "Pwm_MemMap.h"


#define PWM_STOP_SEC_CODE
#include "Pwm_MemMap.h"

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

/*==================================================================================================
*                                        GLOBAL VARIABLES
==================================================================================================*/
#ifndef EMIOS_PWM_IP_PRECOMPILE_SUPPORT
#define PWM_START_SEC_CONFIG_DATA_UNSPECIFIED
#include "Pwm_MemMap.h"

/*******************************************************************************
 * Emios_0 initialization configuration structures
 ******************************************************************************/

/* Emios PWM mode configuration structure for PwmEmios_0/PwmEmiosChannels_0 */
const Emios_Pwm_Ip_ChannelConfigType Emios_Pwm_Ip_BOARD_InitPeripherals_I0_Ch0 =
{
    /* .channelId */            0U,
    /* .mode */                 EMIOS_PWM_MODE_OPWMB_FLAG,
    /* .timebase */             EMIOS_PWM_BUS_A,
    /* .debugMode */            (boolean)FALSE,
    /* .outputDisableSource */  EMIOS_PWM_OUTPUT_DISABLE_NONE,
    /* .internalPs */           EMIOS_PWM_CLOCK_DIV_1,
    /* .internalPsAlternate */  EMIOS_PWM_CLOCK_DIV_1,
    /* .internalPsSrc */        EMIOS_PWM_PS_SRC_MODULE_CLOCK,
    /* .outputPolarity */       EMIOS_PWM_ACTIVE_HIGH,
    /* .irqMode */              EMIOS_PWM_NOTIFICATION_DISABLED,
    /* .userCallback */         {
            /* .cbFunction */       NULL_PTR,
            /* .cbParameter */      NULL_PTR
                                },
    /* .periodCount */          65534U,
    /* .dutyCycle */            0U,
    /* .phaseShift */           0U,
    /* .deadTime */             0U,
    /* .triggerPosition */      0U
};

/* Emios PWM mode configuration structure for PwmEmios_0/PwmEmiosChannels_1 */
const Emios_Pwm_Ip_ChannelConfigType Emios_Pwm_Ip_BOARD_InitPeripherals_I0_Ch1 =
{
    /* .channelId */            1U,
    /* .mode */                 EMIOS_PWM_MODE_OPWMB_FLAG,
    /* .timebase */             EMIOS_PWM_BUS_A,
    /* .debugMode */            (boolean)FALSE,
    /* .outputDisableSource */  EMIOS_PWM_OUTPUT_DISABLE_NONE,
    /* .internalPs */           EMIOS_PWM_CLOCK_DIV_1,
    /* .internalPsAlternate */  EMIOS_PWM_CLOCK_DIV_1,
    /* .internalPsSrc */        EMIOS_PWM_PS_SRC_MODULE_CLOCK,
    /* .outputPolarity */       EMIOS_PWM_ACTIVE_HIGH,
    /* .irqMode */              EMIOS_PWM_NOTIFICATION_DISABLED,
    /* .userCallback */         {
            /* .cbFunction */       NULL_PTR,
            /* .cbParameter */      NULL_PTR
                                },
    /* .periodCount */          65534U,
    /* .dutyCycle */            0U,
    /* .phaseShift */           0U,
    /* .deadTime */             0U,
    /* .triggerPosition */      0U
};

/* Emios PWM mode configuration structure for PwmEmios_0/PwmEmiosChannels_2 */
const Emios_Pwm_Ip_ChannelConfigType Emios_Pwm_Ip_BOARD_InitPeripherals_I0_Ch2 =
{
    /* .channelId */            2U,
    /* .mode */                 EMIOS_PWM_MODE_OPWMB_FLAG,
    /* .timebase */             EMIOS_PWM_BUS_A,
    /* .debugMode */            (boolean)FALSE,
    /* .outputDisableSource */  EMIOS_PWM_OUTPUT_DISABLE_NONE,
    /* .internalPs */           EMIOS_PWM_CLOCK_DIV_1,
    /* .internalPsAlternate */  EMIOS_PWM_CLOCK_DIV_1,
    /* .internalPsSrc */        EMIOS_PWM_PS_SRC_MODULE_CLOCK,
    /* .outputPolarity */       EMIOS_PWM_ACTIVE_HIGH,
    /* .irqMode */              EMIOS_PWM_NOTIFICATION_DISABLED,
    /* .userCallback */         {
            /* .cbFunction */       NULL_PTR,
            /* .cbParameter */      NULL_PTR
                                },
    /* .periodCount */          65534U,
    /* .dutyCycle */            0U,
    /* .phaseShift */           0U,
    /* .deadTime */             0U,
    /* .triggerPosition */      0U
};

/* Emios PWM mode configuration structure for PwmEmios_0/PwmEmiosChannels_3 */
const Emios_Pwm_Ip_ChannelConfigType Emios_Pwm_Ip_BOARD_InitPeripherals_I0_Ch3 =
{
    /* .channelId */            3U,
    /* .mode */                 EMIOS_PWM_MODE_OPWMB_FLAG,
    /* .timebase */             EMIOS_PWM_BUS_A,
    /* .debugMode */            (boolean)FALSE,
    /* .outputDisableSource */  EMIOS_PWM_OUTPUT_DISABLE_NONE,
    /* .internalPs */           EMIOS_PWM_CLOCK_DIV_1,
    /* .internalPsAlternate */  EMIOS_PWM_CLOCK_DIV_1,
    /* .internalPsSrc */        EMIOS_PWM_PS_SRC_MODULE_CLOCK,
    /* .outputPolarity */       EMIOS_PWM_ACTIVE_HIGH,
    /* .irqMode */              EMIOS_PWM_NOTIFICATION_DISABLED,
    /* .userCallback */         {
            /* .cbFunction */       NULL_PTR,
            /* .cbParameter */      NULL_PTR
                                },
    /* .periodCount */          65534U,
    /* .dutyCycle */            0U,
    /* .phaseShift */           0U,
    /* .deadTime */             0U,
    /* .triggerPosition */      0U
};

/*******************************************************************************
 * Emios_1 initialization configuration structures
 ******************************************************************************/

/* Emios PWM mode configuration structure for PwmEmios_1/PwmEmiosChannels_0 */
const Emios_Pwm_Ip_ChannelConfigType Emios_Pwm_Ip_BOARD_InitPeripherals_I1_Ch1 =
{
    /* .channelId */            1U,
    /* .mode */                 EMIOS_PWM_MODE_OPWMB_FLAG,
    /* .timebase */             EMIOS_PWM_BUS_A,
    /* .debugMode */            (boolean)FALSE,
    /* .outputDisableSource */  EMIOS_PWM_OUTPUT_DISABLE_NONE,
    /* .internalPs */           EMIOS_PWM_CLOCK_DIV_1,
    /* .internalPsAlternate */  EMIOS_PWM_CLOCK_DIV_1,
    /* .internalPsSrc */        EMIOS_PWM_PS_SRC_MODULE_CLOCK,
    /* .outputPolarity */       EMIOS_PWM_ACTIVE_HIGH,
    /* .irqMode */              EMIOS_PWM_NOTIFICATION_DISABLED,
    /* .userCallback */         {
            /* .cbFunction */       NULL_PTR,
            /* .cbParameter */      NULL_PTR
                                },
    /* .periodCount */          65534U,
    /* .dutyCycle */            0U,
    /* .phaseShift */           0U,
    /* .deadTime */             0U,
    /* .triggerPosition */      0U
};

/* Emios PWM mode configuration structure for PwmEmios_1/PwmEmiosChannels_1 */
const Emios_Pwm_Ip_ChannelConfigType Emios_Pwm_Ip_BOARD_InitPeripherals_I1_Ch2 =
{
    /* .channelId */            2U,
    /* .mode */                 EMIOS_PWM_MODE_OPWMB_FLAG,
    /* .timebase */             EMIOS_PWM_BUS_A,
    /* .debugMode */            (boolean)FALSE,
    /* .outputDisableSource */  EMIOS_PWM_OUTPUT_DISABLE_NONE,
    /* .internalPs */           EMIOS_PWM_CLOCK_DIV_1,
    /* .internalPsAlternate */  EMIOS_PWM_CLOCK_DIV_1,
    /* .internalPsSrc */        EMIOS_PWM_PS_SRC_MODULE_CLOCK,
    /* .outputPolarity */       EMIOS_PWM_ACTIVE_HIGH,
    /* .irqMode */              EMIOS_PWM_NOTIFICATION_DISABLED,
    /* .userCallback */         {
            /* .cbFunction */       NULL_PTR,
            /* .cbParameter */      NULL_PTR
                                },
    /* .periodCount */          65534U,
    /* .dutyCycle */            0U,
    /* .phaseShift */           0U,
    /* .deadTime */             0U,
    /* .triggerPosition */      0U
};

/* Emios PWM mode configuration structure for PwmEmios_1/PwmEmiosChannels_2 */
const Emios_Pwm_Ip_ChannelConfigType Emios_Pwm_Ip_BOARD_InitPeripherals_I1_Ch3 =
{
    /* .channelId */            3U,
    /* .mode */                 EMIOS_PWM_MODE_OPWMB_FLAG,
    /* .timebase */             EMIOS_PWM_BUS_A,
    /* .debugMode */            (boolean)FALSE,
    /* .outputDisableSource */  EMIOS_PWM_OUTPUT_DISABLE_NONE,
    /* .internalPs */           EMIOS_PWM_CLOCK_DIV_1,
    /* .internalPsAlternate */  EMIOS_PWM_CLOCK_DIV_1,
    /* .internalPsSrc */        EMIOS_PWM_PS_SRC_MODULE_CLOCK,
    /* .outputPolarity */       EMIOS_PWM_ACTIVE_HIGH,
    /* .irqMode */              EMIOS_PWM_NOTIFICATION_DISABLED,
    /* .userCallback */         {
            /* .cbFunction */       NULL_PTR,
            /* .cbParameter */      NULL_PTR
                                },
    /* .periodCount */          65534U,
    /* .dutyCycle */            0U,
    /* .phaseShift */           0U,
    /* .deadTime */             0U,
    /* .triggerPosition */      0U
};

/* Emios PWM mode configuration structure for PwmEmios_1/PwmEmiosChannels_3 */
const Emios_Pwm_Ip_ChannelConfigType Emios_Pwm_Ip_BOARD_InitPeripherals_I1_Ch16 =
{
    /* .channelId */            16U,
    /* .mode */                 EMIOS_PWM_MODE_OPWMB_FLAG,
    /* .timebase */             EMIOS_PWM_BUS_A,
    /* .debugMode */            (boolean)FALSE,
    /* .outputDisableSource */  EMIOS_PWM_OUTPUT_DISABLE_NONE,
    /* .internalPs */           EMIOS_PWM_CLOCK_DIV_1,
    /* .internalPsAlternate */  EMIOS_PWM_CLOCK_DIV_1,
    /* .internalPsSrc */        EMIOS_PWM_PS_SRC_MODULE_CLOCK,
    /* .outputPolarity */       EMIOS_PWM_ACTIVE_HIGH,
    /* .irqMode */              EMIOS_PWM_NOTIFICATION_DISABLED,
    /* .userCallback */         {
            /* .cbFunction */       NULL_PTR,
            /* .cbParameter */      NULL_PTR
                                },
    /* .periodCount */          65534U,
    /* .dutyCycle */            0U,
    /* .phaseShift */           0U,
    /* .deadTime */             0U,
    /* .triggerPosition */      0U
};

/* Emios PWM mode configuration structure for PwmEmios_1/PwmEmiosChannels_4 */
const Emios_Pwm_Ip_ChannelConfigType Emios_Pwm_Ip_BOARD_InitPeripherals_I1_Ch19 =
{
    /* .channelId */            19U,
    /* .mode */                 EMIOS_PWM_MODE_OPWMB_FLAG,
    /* .timebase */             EMIOS_PWM_BUS_A,
    /* .debugMode */            (boolean)FALSE,
    /* .outputDisableSource */  EMIOS_PWM_OUTPUT_DISABLE_NONE,
    /* .internalPs */           EMIOS_PWM_CLOCK_DIV_1,
    /* .internalPsAlternate */  EMIOS_PWM_CLOCK_DIV_1,
    /* .internalPsSrc */        EMIOS_PWM_PS_SRC_MODULE_CLOCK,
    /* .outputPolarity */       EMIOS_PWM_ACTIVE_HIGH,
    /* .irqMode */              EMIOS_PWM_NOTIFICATION_DISABLED,
    /* .userCallback */         {
            /* .cbFunction */       NULL_PTR,
            /* .cbParameter */      NULL_PTR
                                },
    /* .periodCount */          65534U,
    /* .dutyCycle */            0U,
    /* .phaseShift */           0U,
    /* .deadTime */             0U,
    /* .triggerPosition */      0U
};

/* Emios PWM mode configuration structure for PwmEmios_1/PwmEmiosChannels_5 */
const Emios_Pwm_Ip_ChannelConfigType Emios_Pwm_Ip_BOARD_InitPeripherals_I1_Ch22 =
{
    /* .channelId */            22U,
    /* .mode */                 EMIOS_PWM_MODE_OPWMB_FLAG,
    /* .timebase */             EMIOS_PWM_BUS_A,
    /* .debugMode */            (boolean)FALSE,
    /* .outputDisableSource */  EMIOS_PWM_OUTPUT_DISABLE_NONE,
    /* .internalPs */           EMIOS_PWM_CLOCK_DIV_1,
    /* .internalPsAlternate */  EMIOS_PWM_CLOCK_DIV_1,
    /* .internalPsSrc */        EMIOS_PWM_PS_SRC_MODULE_CLOCK,
    /* .outputPolarity */       EMIOS_PWM_ACTIVE_HIGH,
    /* .irqMode */              EMIOS_PWM_NOTIFICATION_DISABLED,
    /* .userCallback */         {
            /* .cbFunction */       NULL_PTR,
            /* .cbParameter */      NULL_PTR
                                },
    /* .periodCount */          65534U,
    /* .dutyCycle */            0U,
    /* .phaseShift */           0U,
    /* .deadTime */             0U,
    /* .triggerPosition */      0U
};

/*******************************************************************************
 * Emios_2 initialization configuration structures
 ******************************************************************************/

/* Emios PWM mode configuration structure for PwmEmios_2/PwmEmiosChannels_0 */
const Emios_Pwm_Ip_ChannelConfigType Emios_Pwm_Ip_BOARD_InitPeripherals_I2_Ch2 =
{
    /* .channelId */            2U,
    /* .mode */                 EMIOS_PWM_MODE_OPWMB_FLAG,
    /* .timebase */             EMIOS_PWM_BUS_A,
    /* .debugMode */            (boolean)FALSE,
    /* .outputDisableSource */  EMIOS_PWM_OUTPUT_DISABLE_NONE,
    /* .internalPs */           EMIOS_PWM_CLOCK_DIV_1,
    /* .internalPsAlternate */  EMIOS_PWM_CLOCK_DIV_1,
    /* .internalPsSrc */        EMIOS_PWM_PS_SRC_MODULE_CLOCK,
    /* .outputPolarity */       EMIOS_PWM_ACTIVE_HIGH,
    /* .irqMode */              EMIOS_PWM_NOTIFICATION_DISABLED,
    /* .userCallback */         {
            /* .cbFunction */       NULL_PTR,
            /* .cbParameter */      NULL_PTR
                                },
    /* .periodCount */          65534U,
    /* .dutyCycle */            0U,
    /* .phaseShift */           0U,
    /* .deadTime */             0U,
    /* .triggerPosition */      0U
};

#define PWM_STOP_SEC_CONFIG_DATA_UNSPECIFIED
#include "Pwm_MemMap.h"
#endif  /* EMIOS_PWM_IP_PRECOMPILE_SUPPORT */

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

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

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


#ifdef __cplusplus
}
#endif

/** @} */

