/* ======================================================================
 *   Copyright (C) 2022 Texas Instruments Incorporated
 *
 *   All rights reserved. Property of Texas Instruments Incorporated.
 *   Restricted rights to use, duplicate or disclose this code are
 *   granted through contract.
 *
 *   The program may not be used without the written permission
 *   of Texas Instruments Incorporated or against the terms and conditions
 *   stipulated in the agreement under which this program has been
 *   supplied.
 * ==================================================================== */

/**
 *  \file     Mcu_Cfg.h
 *
 *  \brief    This file contains generated pre compile configuration file
 *            for MCU MCAL driver
 *
 */

/**
 *  \defgroup MCAL_MCU_CFG MCU Configuration
 *
 *  This files defines MCU MCAL configuration structures
 *  @{
 */

 /*********************************************************************************************************************
    Project: MCU_AM263
	Date   : 2022-08-06 03:29:25

    This file is generated by EB Tresos
    Do not modify this file, otherwise the software may behave in unexpected way.

 *********************************************************************************************************************/
 /* Protection against multiple inclusion */
#ifndef MCU_CFG_H
#define MCU_CFG_H

/*********************************************************************************************************************
 * Standard Header Files
 *********************************************************************************************************************/
#include "Mcu.h"
/*********************************************************************************************************************
 * Other Header Files
 *********************************************************************************************************************/

#ifdef __cplusplus
extern "C" {
#endif

/**********************************************************************************************************************
 * Version Check
 *********************************************************************************************************************/
/** \brief MCU Config ID */
#define MCU_CFG_ID                      (0x1U)

/* Requirements: SWS_Mcu_00129 */
/**
 *  \name Mcu Driver Configuration SW Version Info
 *
 *  Defines for Mcu Driver configuration version
 *  @{
 */
/** \brief Mcu configuration Major Version */
#define MCU_CFG_MAJOR_VERSION           (0U)
/** \brief Mcu configuration Minor Version */
#define MCU_CFG_MINOR_VERSION           (9U)
/** \brief Mcu configuration Patch Version */
#define MCU_CFG_PATCH_VERSION           (0U)
/* @} */


/*********************************************************************************************************************
 * Exported enums
 *********************************************************************************************************************/
/**
* \brief  Type of McuModes supported
*/
enum
{
   MCU_MODE_NORMAL = 1 /*!< Mcu normal mode. Only supported mode */
};

/*********************************************************************************************************************
 * Exported Preprocessor #define Constants
 *********************************************************************************************************************/
/** \brief Enable/Disable Development Error Detection */
#define MCU_DEV_ERROR_DETECT       (STD_ON)
/** \brief Enable/Disable Mcu_CheckRamState() API */
#define MCU_GET_RAM_STATE_API      (STD_ON)
/** \brief Enable/Disable Mcu_InitClock() API */
#define MCU_INIT_CLOCK_API         (STD_ON)
/** \brief Enable/Disable Mcu_PerformReset() API */
#define MCU_PERFORM_RESET_API      (STD_ON)
/** \brief Enable/Disable Mcu_GetVersionInfo() API */
#define MCU_GET_VERSION_INFO_API   (STD_ON)
/** \brief Enable/Disable Mcu_InitRamSection() API */
#define MCU_INIT_RAM_API           (STD_ON)
/** \brief Enable/Disable PLL support */
#define MCU_NO_PLL                 (STD_ON)
/** \brief Enable/Disable Mcu_ClearResetReason() API */
#define MCU_REGISTER_READBACK_API (STD_ON)

/*
Reset Reason Config
*/
/*<MCU_CFG_RESETREASONUSERCONFIG_LIST>*/
#define McuConf_McuResetReasonConf_MCU_POWER_ON_RESET (0U)
#define McuConf_McuResetReasonConf_MCU_RESET_UNDEFINED (1U)



/*
 * The following defines shall be used as input
 * parameter for: Mcu_SetMode(),
 *                Mcu_InitClock()
 *                Mcu_InitRamSection()
 */

/*<MCU_CFG_MODEUSERCONFIG_LIST>*/


#define McuConf_McuModeSettingConf_McuModeSettingConf_0 MCU_MODE_NORMAL


/*</MCU_CFG_MODEUSERCONFIG_LIST>*/


#define MCU_VARIANT_PRE_COMPILE (STD_ON)

/*
* Clock configuration
*/
/* SourceId : MCU_SourceId_040 */
/* Requirements : AR_MCU_SR125, AR_MCU_SR126 */
/*<MCU_CFG_CLOCKUSERCONFIG_LIST>*/
#define McuConf_McuClockSettingConfig_McuClockSettingConfig (4U)

/*</MCU_CFG_CLOCKUSERCONFIG_LIST>*/

/*
* RAM Section configuration
*/
/*<MCU_CFG_RAMSECTIONUSERCONFIG_LIST>*/
#define McuConf_McuRamSectorSettingConf_McuRamSectorSettingConf (6U)

/*</MCU_CFG_RAMSECTIONUSERCONFIG_LIST>*/


/** \brief Counter ID for counter used to count wait ticks */
#define MCU_CFG_OS_COUNTER_ID               ((CounterType)1U)

/**
*  \brief MCU timeout.
*   Each tick is 31.25us (for 32K Counter). Wait for 5s which comes to
*   below value
*/
#define MCU_CFG_TIMEOUT_DURATION            (32000U)

/* MCU DEM Event Configuration*/
#ifndef MCU_E_MODE_FAILURE
/** \brief MCU Mode failed - Additional DEM event supported by the Texas Instruments*/
#define MCU_E_MODE_FAILURE (MCU_DEM_NO_EVENT)
#endif

/* MCU DEM Event Configuration*/
#ifndef MCU_E_CLOCK_FAILURE
/** \brief MCU Clock failed - AUTOSAR ECUC Driver SWS Item - ECUC_Mcu_00188*/
#define MCU_E_CLOCK_FAILURE (MCU_DEM_NO_EVENT)
#endif



/*********************************************************************************************************************
 *  Exported Object Declarations
 *********************************************************************************************************************/

/** \brief MCU Configuration struct declaration */
extern const struct Mcu_ConfigType_s McuModuleConfiguration;



#ifdef __cplusplus
}
#endif

#endif /* #ifndef MCU_CFG_H */
/**********************************************************************************************************************
 *  End of File: Mcu_Cfg.h
 *********************************************************************************************************************/
