
/*!
 * @file     CDD_Irme_PBcfg.c
 *
 * @version  1.0.0
 *
 * @brief    This source file includes the configuration parameters of the IRME module.
 */

/*******************************************************************************
* Project Name      : AUTOSAR MCAL
* Platform          : Arm
* Autosar Standard  : Classic Platform 4.4.0
* Revision Number   :
* 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 useful 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.
*
*******************************************************************************/

/*
* MISRA-C:2012 compliance checks
*
*     CDD_Irme_PBcfg_c_MISRA_REF1
*          Breaks the required Rule 11.4 of MISRA 2012 guidelines, A conversion should not be performed 
*          between a pointer to object and an integer type. 
*
*     CDD_Irme_PBcfg_c_MISRA_REF2
*          Breaks the required Rule-20.1 of MISRA 2012 guidelines,
*          #include directives should only be preceded by preprocessor directives or comments.
*/

#ifdef __cplusplus
extern "C"{
#endif   /* ifdef __cplusplus */

#include "CDD_Irme_Cfg.h"

/**********************************************************************************************************************
                                    VENDOR ID & AUTOSAR VERSION INFO
***********************************************************************************************************************/
/** Vendor ID (vendorId) of the dedicated implementation of this module according to the AUTOSAR vendor list. */
#define CDD_IRME_PBCFG_VENDOR_ID                        0x00C1U
/** Major version number of AUTOSAR release on which the appropriate implementation is based on. */
#define CDD_IRME_PBCFG_AR_RELEASE_MAJOR_VERSION         0x04U
/** Minor version number of AUTOSAR release on which the appropriate implementation is based on. */
#define CDD_IRME_PBCFG_AR_RELEASE_MINOR_VERSION         0x04U
/** Revision version number of AUTOSAR release on which the appropriate implementation is based on. */
#define CDD_IRME_PBCFG_AR_RELEASE_REVISION_VERSION      0x00U
/** Major version number of the vendor specific implementation of the module. The numbering is vendor specific. */
#define CDD_IRME_PBCFG_SW_MAJOR_VERSION                 0x01U
/** Minor version number of the vendor specific implementation of the module. The numbering is vendor specific. */
#define CDD_IRME_PBCFG_SW_MINOR_VERSION                 0x00U
/** Patch level version number of the vendor specific implementation of the module. The numbering is vendor specific. */
#define CDD_IRME_PBCFG_SW_PATCH_VERSION                 0x00U

/**********************************************************************************************************************
                                      VERSION INFOMATION VERIFICATION
***********************************************************************************************************************/
/* Make sure the vendor ids are the same between CDD_Irme_PBcfg.c and CDD_Irme_Cfg.h */
#if (CDD_IRME_PBCFG_VENDOR_ID != CDD_IRME_CFG_H_VENDOR_ID)
    #error "Vendor ids mismatch between CDD_Irme_PBcfg.c and CDD_Irme_Cfg.h"
#endif  /* {if (CDD_IRME_PBCFG_VENDOR_ID != CDD_IRME_CFG_H_VENDOR_ID)} */

/* Make sure the AUTOSAR major version number is the same between CDD_Irme_PBcfg.c and CDD_Irme_Cfg.h */
#if (CDD_IRME_PBCFG_AR_RELEASE_MAJOR_VERSION != CDD_IRME_CFG_H_AR_RELEASE_MAJOR_VERSION)
#error "AUTOSAR Major Version Number mismatch between CDD_Irme_PBcfg.c and CDD_Irme_Cfg.h"
#endif  /* {if (CDD_IRME_PBCFG_AR_RELEASE_MAJOR_VERSION != CDD_IRME_CFG_H_AR_RELEASE_MAJOR_VERSION)} */
/* Make sure the AUTOSAR minor version number is the same between CDD_Irme_PBcfg.c and CDD_Irme_Cfg.h */
#if (CDD_IRME_PBCFG_AR_RELEASE_MINOR_VERSION != CDD_IRME_CFG_H_AR_RELEASE_MINOR_VERSION)
#error "AUTOSAR Minor Version Number mismatch between CDD_Irme_PBcfg.c and CDD_Irme_Cfg.h"
#endif  /* {if (CDD_IRME_PBCFG_AR_RELEASE_MINOR_VERSION != CDD_IRME_CFG_H_AR_RELEASE_MINOR_VERSION)} */
/* Make sure the AUTOSAR revision version number is the same between CDD_Irme_PBcfg.c and CDD_Irme_Cfg.h */
#if (CDD_IRME_PBCFG_AR_RELEASE_REVISION_VERSION != CDD_IRME_CFG_H_AR_RELEASE_REVISION_VERSION)
#error "AUTOSAR Revision Version Number mismatch between CDD_Irme_PBcfg.c and CDD_Irme_Cfg.h"
#endif  /* {if (CDD_IRME_PBCFG_AR_RELEASE_REVISION_VERSION != CDD_IRME_CFG_H_AR_RELEASE_REVISION_VERSION)} */

/* Make sure the software major version number is the same between CDD_Irme_PBcfg.c and CDD_Irme_Cfg.h */
#if (CDD_IRME_PBCFG_SW_MAJOR_VERSION != CDD_IRME_CFG_H_SW_MAJOR_VERSION)
#error "Software Major Version Number mismatch between CDD_Irme_PBcfg.c and CDD_Irme_Cfg.h"
#endif  /* {if (CDD_IRME_PBCFG_SW_MAJOR_VERSION != CDD_IRME_CFG_H_SW_MAJOR_VERSION)} */
/* Make sure the software minor version number is the same between CDD_Irme_PBcfg.c and CDD_Irme_Cfg.h */
#if (CDD_IRME_PBCFG_SW_MINOR_VERSION != CDD_IRME_CFG_H_SW_MINOR_VERSION)
#error "Software Minor Version Number mismatch between CDD_Irme_PBcfg.c and CDD_Irme_Cfg.h"
#endif  /* {if (CDD_IRME_PBCFG_SW_MINOR_VERSION != CDD_IRME_CFG_H_SW_MINOR_VERSION)} */
/* Make sure the software patch version number is the same between CDD_Irme_PBcfg.c and CDD_Irme_Cfg.h */
#if (CDD_IRME_PBCFG_SW_PATCH_VERSION != CDD_IRME_CFG_H_SW_PATCH_VERSION)
#error "Software Patch Version Number mismatch between CDD_Irme_PBcfg.c and CDD_Irme_Cfg.h"
#endif  /* {if (CDD_IRME_PBCFG_SW_PATCH_VERSION != CDD_IRME_CFG_H_SW_PATCH_VERSION)} */

/**********************************************************************************************************************
                                            GLOBAL FUNCTION
***********************************************************************************************************************/

extern void Irme_ErrorNotification(Irme_FaultIdType FaultID, uint32 FaultAddr);

/**********************************************************************************************************************
                                             GLOBAL VARIABLE
***********************************************************************************************************************/

#define IRME_START_SEC_CONFIG_DATA_UNSPECIFIED
/** @warning CDD_Irme_PBcfg_c_MISRA_REF2 Use of #include directive after code fragment. */
#include "Irme_MemMap.h"

static CONST(Irme_SmsConfigType, IRME_CONST) g_smsModConfigPB =
{
    /* The SMS_ECC_CFG register configuration */
    (uint32)(((uint32)1U << (uint32)SMS_ECC_CFG_ECC_EN_SHIFT)|((uint32)1U << (uint32)SMS_ECC_CFG_RD_COR_EN_SHIFT)|
             ((uint32)1U << (uint32)SMS_ECC_CFG_RMW_COR_EN_SHIFT)),

    /* The SMS_INTRMn register configuration */
    (uint32)(((uint32)1U << (uint32)SMS_INTRMn_RD_ERR_DET_SHIFT)|((uint32)1U << (uint32)SMS_INTRMn_RD_ERR_SIN_SHIFT)|
             ((uint32)1U << (uint32)SMS_INTRMn_RD_ERR_DBL_SHIFT)|((uint32)1U << (uint32)SMS_INTRMn_RMW_ERR_DET_SHIFT)|
             ((uint32)1U << (uint32)SMS_INTRMn_RMW_ERR_SIN_SHIFT)|((uint32)1U << (uint32)SMS_INTRMn_RMW_ERR_DBL_SHIFT)),

    /** @warning CDD_Irme_PBcfg_c_MISRA_REF1 [I] Cast between a pointer to volatile object and an integral type. */
    /* Error injection address in RAM */
    0x20004000U,

    /* The error notification callback function */
    NULL_PTR
};

CONST(Irme_ConfigType, IRME_CONST) g_irmeConfiguration =
{
    /* The driver configurations locked status */
    (boolean)FALSE,  /* Enable configuration locked */

    /* The configuration of the Einj and Erep modules */
    &g_smsModConfigPB
};

#define IRME_STOP_SEC_CONFIG_DATA_UNSPECIFIED
/** @warning CDD_Irme_PBcfg_c_MISRA_REF2 Use of #include directive after code fragment. */
#include "Irme_MemMap.h"

#ifdef __cplusplus
}
#endif  /* ifdef __cplusplus */

