/**
*   @file    CDD_Sbc_fs26_BOARD_InitPeripherals_PBcfg.c
*   @version 1.0.0
*
*   @brief   AUTOSAR Sbc_fs26 - Post-Build(PB) configuration file code template.
*   @details Code template for Post-Build(PB) configuration file generation.
*
*   @addtogroup CDD_SBC_FS26_DRIVER
*   @{
*/
/*==================================================================================================
*   Project              : RTD AUTOSAR 4.4
*   Platform             : CORTEXM
*   Peripheral           : 
*   Dependencies         : 
*
*   Autosar Version      : 4.4.0
*   Autosar Revision     : ASR_REL_4_4_REV_0000
*   Autosar Conf.Variant :
*   SW Version           : 1.0.0
*   Build Version        : S32K3_RTD_1_0_0_D2209_ASR_REL_4_4_REV_0000_20220916
*
*   (c) Copyright 2020 - 2022 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 "CDD_Sbc_fs26.h"

/*==================================================================================================
*                                    SOURCE FILE VERSION INFORMATION
==================================================================================================*/
#define SBC_FS26_VENDOR_ID_BOARD_INITPERIPHERALS_PBCFG_C                    43
#define SBC_FS26_MODULE_ID_BOARD_INITPERIPHERALS_PBCFG_C                    255
#define SBC_FS26_AR_RELEASE_MAJOR_VERSION_BOARD_INITPERIPHERALS_PBCFG_C     4
#define SBC_FS26_AR_RELEASE_MINOR_VERSION_BOARD_INITPERIPHERALS_PBCFG_C     4
#define SBC_FS26_AR_RELEASE_REVISION_VERSION_BOARD_INITPERIPHERALS_PBCFG_C  0
#define SBC_FS26_SW_MAJOR_VERSION_BOARD_INITPERIPHERALS_PBCFG_C             1
#define SBC_FS26_SW_MINOR_VERSION_BOARD_INITPERIPHERALS_PBCFG_C             0
#define SBC_FS26_SW_PATCH_VERSION_BOARD_INITPERIPHERALS_PBCFG_C             0

/*==================================================================================================
*                                     FILE VERSION CHECKS
==================================================================================================*/
/* Check if current file and Sbc_fs26 header file are of the same vendor */
#if (SBC_FS26_VENDOR_ID_BOARD_INITPERIPHERALS_PBCFG_C != SBC_FS26_VENDOR_ID)
    #error "CDD_Sbc_fs26_BOARD_InitPeripherals_PBcfg.c and CDD_Sbc_fs26.h have different vendor ids"
#endif
/* Check if current file and Sbc_fs26 header file are of the same module */
#if (SBC_FS26_MODULE_ID_BOARD_INITPERIPHERALS_PBCFG_C != SBC_FS26_MODULE_ID)
    #error "CDD_Sbc_fs26_BOARD_InitPeripherals_PBcfg.c and CDD_Sbc_fs26.h have different module ids"
#endif
/* Check if current file and Sbc_fs26 header file are of the same Autosar version */
#if ((SBC_FS26_AR_RELEASE_MAJOR_VERSION_BOARD_INITPERIPHERALS_PBCFG_C != SBC_FS26_AR_RELEASE_MAJOR_VERSION) || \
     (SBC_FS26_AR_RELEASE_MINOR_VERSION_BOARD_INITPERIPHERALS_PBCFG_C != SBC_FS26_AR_RELEASE_MINOR_VERSION) || \
     (SBC_FS26_AR_RELEASE_REVISION_VERSION_BOARD_INITPERIPHERALS_PBCFG_C != SBC_FS26_AR_RELEASE_REVISION_VERSION))
    #error "AutoSar Version Numbers of CDD_Sbc_fs26_BOARD_InitPeripherals_PBcfg.c and CDD_Sbc_fs26.h are different"
#endif
/* Check if current file and Sbc_fs26 header file are of the same Software version */
#if ((SBC_FS26_SW_MAJOR_VERSION_BOARD_INITPERIPHERALS_PBCFG_C != SBC_FS26_SW_MAJOR_VERSION) || \
     (SBC_FS26_SW_MINOR_VERSION_BOARD_INITPERIPHERALS_PBCFG_C != SBC_FS26_SW_MINOR_VERSION) || \
     (SBC_FS26_SW_PATCH_VERSION_BOARD_INITPERIPHERALS_PBCFG_C != SBC_FS26_SW_PATCH_VERSION))
    #error "Software Version Numbers of CDD_Sbc_fs26_BOARD_InitPeripherals_PBcfg.c and CDD_Sbc_fs26.h are different"
#endif

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

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

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

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

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

/*==================================================================================================
*                                      GLOBAL VARIABLES
==================================================================================================*/
#define SBC_FS26_START_SEC_VAR_CLEARED_8
/**
* @brief Include Memory mapping specification
*/
#include "Sbc_fs26_MemMap.h"

/* SPI sequence */
static uint8 spiSequence_BOARD_InitPeripherals = 0U;

#define SBC_FS26_STOP_SEC_VAR_CLEARED_8
/**
* @brief Include Memory mapping specification
*/
#include "Sbc_fs26_MemMap.h"
#define SBC_FS26_START_SEC_CONFIG_DATA_UNSPECIFIED
/**
* @brief Include Memory mapping specification
*/
#include "Sbc_fs26_MemMap.h"

/* SPI configuration */
Sbc_fs26_SpiConfigType spiConfig_BOARD_InitPeripherals =
{
    1U,
    1U,
    &spiSequence_BOARD_InitPeripherals
};

/* Device configuration */
static Sbc_fs26_InitConfigType sbcInitConfig_BOARD_InitPeripherals =
{
    /* FS_I_OVUV_SAFE_REACTION1 register */
    {
        SBC_FS26_FS_VMON_PRE_OV_FS_REACTION_RSTB_FS0B,
        SBC_FS26_FS_VMON_PRE_UV_FS_REACTION_FS0B,
        SBC_FS26_FS_VMON_CORE_OV_FS_REACTION_RSTB_FS0B,
        SBC_FS26_FS_VMON_CORE_UV_FS_REACTION_FS0B,
        SBC_FS26_FS_VMON_LDO1_OV_FS_REACTION_RSTB_FS0B,
        SBC_FS26_FS_VMON_LDO1_UV_FS_REACTION_FS0B,
        SBC_FS26_FS_VMON_LDO2_OV_FS_REACTION_RSTB_FS0B,
        SBC_FS26_FS_VMON_LDO2_UV_FS_REACTION_FS0B
    },
    /* FS_I_OVUV_SAFE_REACTION2 register */
    {
        SBC_FS26_FS_VMON_EXT_OV_FS_REACTION_RSTB_FS0B,
        SBC_FS26_FS_VMON_EXT_UV_FS_REACTION_FS0B,
        SBC_FS26_FS_VMON_REF_OV_FS_REACTION_RSTB_FS0B,
        SBC_FS26_FS_VMON_REF_UV_FS_REACTION_FS0B,
        SBC_FS26_FS_VMON_TRK2_OV_FS_REACTION_RSTB_FS0B,
        SBC_FS26_FS_VMON_TRK2_UV_FS_REACTION_FS0B,
        SBC_FS26_FS_VMON_TRK1_OV_FS_REACTION_RSTB_FS0B,
        SBC_FS26_FS_VMON_TRK1_UV_FS_REACTION_FS0B
    },
    /* FS_I_WD_CFG register */
    {
        SBC_FS26_FS_WD_ERR_LIMIT_6,
        SBC_FS26_FS_WD_RFR_LIMIT_4,
        SBC_FS26_FS_WD_FS_REACTION_FS0B
    },
        /* FS_I_SAFE_INPUTS register */
    {
        SBC_FS26_FS_FCCU_CFG_NO,
        SBC_FS26_FS_FCCU12_FLT_POL_0_1,
        SBC_FS26_FS_FCCU1_FLT_POL_LOW,
        SBC_FS26_FS_FCCU2_FLT_POL_LOW,
        SBC_FS26_FS_FCCU12_FS_REACTION_RSTB_FS0B,
        SBC_FS26_FS_FCCU1_FS_REACTION_RSTB_FS0B,
        SBC_FS26_FS_FCCU2_FS_REACTION_RSTB_FS0B,
        SBC_FS26_FS_WAKE2_LP_POLARITY_LOW,
        SBC_FS26_FS_ERRMON_FLT_POLARITY_LOW,
        SBC_FS26_FS_ERRMON_ACK_TIME_8MS,
        SBC_FS26_FS_ERRMON_FS_REACTION_RSTB_FS0B,
        SBC_FS26_FS_FCCU12_FILT_6US
    },
    /* FS_I_FSSM register */
    {
        SBC_FS26_FS_FLT_ERR_CNT_LIMIT_6,
        SBC_FS26_FS_FLT_ERR_REACTION_RSTB_FS0B,
        SBC_FS26_FS_RSTB_DUR_10MS,
        SBC_FS26_FS_BACKUP_SAFETY_PATH_FS0B_RSTB,
        SBC_FS26_FS_BACKUP_SAFETY_PATH_FS1B_RSTB,
        SBC_FS26_FS_CLK_MON_DIS_ACTIVE,
        SBC_FS26_FS_DIS8S_ENABLED
    },
        /* FS_WDW_DURATION register */
    {
        SBC_FS26_FS_WDW_PERIOD_INFINITE,
        SBC_FS26_FS_WDW_DC_31C_68O,
        SBC_FS26_FS_WDW_RECOVERY_INFINITE
    }
    };

/* Driver configuration
   This structure is used as a parameter for Sbc_fs26_Init function */
Sbc_fs26_ConfigType sbcConfig_BOARD_InitPeripherals =
{
    &sbcInitConfig_BOARD_InitPeripherals,
    SBC_FS26_WD_CHALLENGER,
    0x5AB2U,
    (boolean)FALSE,
    (boolean)TRUE,
    (boolean)TRUE,
    &spiConfig_BOARD_InitPeripherals
};

#define SBC_FS26_STOP_SEC_CONFIG_DATA_UNSPECIFIED
/**
* @brief Include Memory mapping specification
*/
#include "Sbc_fs26_MemMap.h"

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

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

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

#ifdef __cplusplus
}
#endif

/** @} */
