/*!
* @file     Fee_Cfg.c
*
* @version  1.0.0
*
* @brief    This source file includes the configuration parameters of the Flash EEPROM Emulation module
*
* @attention
*
* Project Name      : AUTOSAR MCAL
*
* Platform          : Arm
*
* Autosar Standard  : Classic Platform 4.4.0
*
* Compiled Version  : G32A10xx_MCAL_1_0_0_01-Otc-25
*
* Copyright (C) 2026 Geehy Semiconductor
*
* You may not use this file except in compliance with the
* GEEHY COPYRIGHT NOTICE (Geehy Semiconductor Software License Agreement).
*
* The program is only for reference, which is distributed in the hope
* that it will be usefull and instructional for customers to develop
* their software. Unless required by applicable law or agreed to in
* writing, the program is distributed on an "AS IS" BASIS, WITHOUT
* ANY WARRANTY OR CONDITIONS OF ANY KIND, either express or implied.
* See the Geehy Semiconductor Software License Agreement for the governing permissions
* and limitations under the License.
*/

#ifdef __cplusplus
extern "C"{
#endif

#include "Fee.h"

/** @addtogroup G32A10xx_StdPeriphDriver
  @{
*/

/** @defgroup FEE_Driver
  * @brief FEE driver modules
  @{
*/

/** @defgroup FEE_Macros
  @{
*/
/**********************************************************************************************************************
                                         VENDOR ID & AUTOSAR VERSION INFO
***********************************************************************************************************************/
/** Vendor ID (vendorId) of the dedicated implementation of this module according to the AUTOSAR vendor list. */
#define FEE_CFG_VENDOR_ID                         0x00C1U
/** Major version number of AUTOSAR release on which the appropriate implementation is based on. */
#define FEE_CFG_AR_RELEASE_MAJOR_VERSION          0x04U
/** Minor version number of AUTOSAR release on which the appropriate implementation is based on. */
#define FEE_CFG_AR_RELEASE_MINOR_VERSION          0x04U
/** Revision version number of AUTOSAR release on which the appropriate implementation is based on. */
#define FEE_CFG_AR_RELEASE_REVISION_VERSION       0x00U
/** Major version number of the vendor specific implementation of the module. The numbering is vendor specific. */
#define FEE_CFG_SW_MAJOR_VERSION                  0x01U
/** Minor version number of the vendor specific implementation of the module. The numbering is vendor specific. */
#define FEE_CFG_SW_MINOR_VERSION                  0x00U
/** Patch level version number of the vendor specific implementation of the module. The numbering is vendor specific. */
#define FEE_CFG_SW_PATCH_VERSION                  0x00U

/**@} end of group FEE_Macros */

/**********************************************************************************************************************
                                         VERSION INFOMATION VERIFICATION
***********************************************************************************************************************/
/* Make sure the vendor id is the same between Fee_Cfg.c and Fee.h */
#if (FEE_CFG_VENDOR_ID != FEE_H_VENDOR_ID)
  #error "Vendor id mismatch between Fee_Cfg.c and Fee.h"
#endif
/* Make sure the AUTOSAR major version number is the same between Fee_Cfg.c and Fee.h */
#if (FEE_CFG_AR_RELEASE_MAJOR_VERSION != FEE_H_AR_RELEASE_MAJOR_VERSION)
    #error "AUTOSAR Major Version Number mismatch between Fee_Cfg.c and Fee.h"
#endif
/* Make sure the AUTOSAR minor version number is the same between Fee_Cfg.c and Fee.h */
#if (FEE_CFG_AR_RELEASE_MINOR_VERSION != FEE_H_AR_RELEASE_MINOR_VERSION)
    #error "AUTOSAR minor Version Number mismatch between Fee_Cfg.c and Fee.h"
#endif
/* Make sure the AUTOSAR revision version number is the same between Fee_Cfg.c and Fee.h */
#if (FEE_CFG_AR_RELEASE_REVISION_VERSION != FEE_H_AR_RELEASE_REVISION_VERSION)
    #error "AUTOSAR revision Version Number mismatch between Fee_Cfg.c and Fee.h"
#endif
/* Make sure the software major version number is the same between Fee_Cfg.c and Fee.h */
#if (FEE_CFG_SW_MAJOR_VERSION != FEE_H_SW_MAJOR_VERSION)
    #error "Software Major Version Number mismatch between Fee_Cfg.c and Fee.h"
#endif
/* Make sure the software minor version number is the same between Fee_Cfg.c and Fee.h */
#if (FEE_CFG_SW_MINOR_VERSION != FEE_H_SW_MINOR_VERSION)
    #error "Software Minor Version Number mismatch between Fee_Cfg.c and Fee.h"
#endif
/* Make sure the software patch version number is the same between Fee_Cfg.c and Fee.h */
#if (FEE_CFG_SW_PATCH_VERSION != FEE_H_SW_PATCH_VERSION)
    #error "Software Patch Version Number mismatch between Fee_Cfg.c and Fee.h"
#endif

#define FEE_START_SEC_CONST_UNSPECIFIED
#include "Fee_MemMap.h"

/**********************************************************************************************************************
                                                GLOBAL VARIABLES
***********************************************************************************************************************/
/** @defgroup FEE_Variable
  @{
*/

/** Cluster group FeeClrGrp_0 Configuration */
static CONST(Fee_ClrType, FEE_CONST) Fee_FeeClrGrp_0[2] =
{
    /** FeeCluster_0 */
    {
        262144,   /** Start address */
        8192   /* Size */
    },
    /** FeeCluster_1 */
    {
        270336,   /** Start address */
        8192   /* Size */
    }
};

/** Cluster group FeeClrGrp_1 Configuration */
static CONST(Fee_ClrType, FEE_CONST) Fee_FeeClrGrp_1[2] =
{
    /** FeeCluster_0 */
    {
        278528,   /** Start address */
        8192   /* Size */
    },
    /** FeeCluster_1 */
    {
        286720U,   /** Start address */
        8192   /* Size */
    }
};

/** Cluster group configuration parameter */
CONST(Fee_ClusterGroupType, FEE_CONST) Fee_ClrGrps[FEE_CLUSTER_GROUPS_NUMBER] =
{

    /** FeeClrGrp_0 */
    {
        Fee_FeeClrGrp_0,   /** Cluster group */
        2U,   /** Number of clusters include by group */
        304U   /** Reserved size */
    },
    /** FeeClrGrp_1 */
    {
        Fee_FeeClrGrp_1,   /** Cluster group */
        2U,   /** Number of clusters include by group */
        0U   /** Reserved size */
    }
};

/** Fee blocks Configuration parameter */
CONST(Fee_BlkCfgType, FEE_CONST) Fee_BlockConfig[FEE_CONFIGURED_NUMBER_OF_BLOCKS] =
{
    /** FeeBlockConfiguration_0 */
    {
        /** Block Number */
        FeeConf_FeeBlockConfiguration_FeeBlockConfiguration_0,
        /** Block Size */
        256,
        /** Cluster Group index*/
        0,
        /** ImmediateData support */
        (boolean) TRUE,
        /** Block project Assignment */
    #if (STD_ON == FEE_SWAP_FOREIGN_BLOCKS_ENABLED)
        FEE_PRJASGMT_APP,
    #else
        FEE_PRJASGMT_RESERVED,
    #endif
        NULL_PTR
    },
    /** FeeBlockConfiguration_1 */
    {
        /** Block Number */
        FeeConf_FeeBlockConfiguration_FeeBlockConfiguration_1,
        /** Block Size */
        256,
        /** Cluster Group index*/
        0,
        /** ImmediateData support */
        (boolean) FALSE,
        /** Block project Assignment */
    #if (STD_ON == FEE_SWAP_FOREIGN_BLOCKS_ENABLED)
        FEE_PRJASGMT_APP,
    #else
        FEE_PRJASGMT_RESERVED,
    #endif
        NULL_PTR
    },
    /** FeeBlockConfiguration_2 */
    {
        /** Block Number */
        FeeConf_FeeBlockConfiguration_FeeBlockConfiguration_2,
        /** Block Size */
        256,
        /** Cluster Group index*/
        0,
        /** ImmediateData support */
        (boolean) FALSE,
        /** Block project Assignment */
    #if (STD_ON == FEE_SWAP_FOREIGN_BLOCKS_ENABLED)
        FEE_PRJASGMT_APP,
    #else
        FEE_PRJASGMT_RESERVED,
    #endif
        NULL_PTR
    }
};

/**@} end of group FEE_Variable */

#define FEE_STOP_SEC_CONST_UNSPECIFIED
#include "Fee_MemMap.h"

#ifdef __cplusplus
}
#endif

/**@} end of group FEE_Driver */
/**@} end of group G32A10xx_StdPeriphDriver */
