123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193 |
- #ifndef MCU_DEM_WRAPPER_H
- #define MCU_DEM_WRAPPER_H
- #ifdef __cplusplus
- extern "C"{
- #endif
- #include "Mcu_Cfg.h"
- #if (MCU_DISABLE_DEM_REPORT_ERROR_STATUS == STD_OFF)
- #include "Dem.h"
- #endif
- #define MCU_DEM_WRAPPER_VENDOR_ID 43
- #define MCU_DEM_WRAPPER_AR_RELEASE_MAJOR_VERSION 4
- #define MCU_DEM_WRAPPER_AR_RELEASE_MINOR_VERSION 4
- #define MCU_DEM_WRAPPER_AR_RELEASE_REVISION_VERSION 0
- #define MCU_DEM_WRAPPER_SW_MAJOR_VERSION 1
- #define MCU_DEM_WRAPPER_SW_MINOR_VERSION 0
- #define MCU_DEM_WRAPPER_SW_PATCH_VERSION 0
- #if (MCU_DEM_WRAPPER_VENDOR_ID != MCU_CFG_VENDOR_ID)
- #error "Mcu_Dem_Wrapper.h and Mcu_Cfg.h have different vendor ids"
- #endif
- #if ((MCU_DEM_WRAPPER_AR_RELEASE_MAJOR_VERSION != MCU_CFG_AR_RELEASE_MAJOR_VERSION) || \
- (MCU_DEM_WRAPPER_AR_RELEASE_MINOR_VERSION != MCU_CFG_AR_RELEASE_MINOR_VERSION) || \
- (MCU_DEM_WRAPPER_AR_RELEASE_REVISION_VERSION != MCU_CFG_AR_RELEASE_REVISION_VERSION) \
- )
- #error "AutoSar Version Numbers of Mcu_Dem_Wrapper.h and Mcu_Cfg.h are different"
- #endif
- #if ((MCU_DEM_WRAPPER_SW_MAJOR_VERSION != MCU_CFG_SW_MAJOR_VERSION) || \
- (MCU_DEM_WRAPPER_SW_MINOR_VERSION != MCU_CFG_SW_MINOR_VERSION) || \
- (MCU_DEM_WRAPPER_SW_PATCH_VERSION != MCU_CFG_SW_PATCH_VERSION) \
- )
- #error "Software Version Numbers of Mcu_Dem_Wrapper.h and Mcu_Cfg.h are different"
- #endif
- #ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
- #if (MCU_DISABLE_DEM_REPORT_ERROR_STATUS == STD_OFF)
- #if ((MCU_DEM_WRAPPER_AR_RELEASE_MAJOR_VERSION != DEM_AR_RELEASE_MAJOR_VERSION) || \
- (MCU_DEM_WRAPPER_AR_RELEASE_MINOR_VERSION != DEM_AR_RELEASE_MINOR_VERSION))
- #error "AutoSar Version Numbers of Mcu_Dem_Wrapper.h and Dem.h are different"
- #endif
- #endif
- #endif
- #if (MCU_DISABLE_DEM_REPORT_ERROR_STATUS == STD_OFF)
- #define Mcu_Macro_ReportDemTimeoutError() (Mcu_ReportDemTimeoutError())
- #define Mcu_Macro_ReportDemFxoscConfigurationError() (Mcu_ReportDemFxoscError())
- #define Mcu_Macro_ReportDemClockMuxSwitchError() (Mcu_ReportDemClockMuxSwitchError())
- #define Mcu_Macro_ReportDemSwitchModeError() (Mcu_ReportDemSwitchModeError())
- #endif
- #define MCU_START_SEC_CODE
- #include "Mcu_MemMap.h"
- #if (MCU_DISABLE_DEM_REPORT_ERROR_STATUS == STD_OFF)
-
- void Mcu_ReportDemTimeoutError(void);
-
- void Mcu_ReportDemFxoscError(void);
-
- void Mcu_ReportDemClockMuxSwitchError(void);
-
- void Mcu_ReportDemSwitchModeError(void);
- #endif
- #define MCU_STOP_SEC_CODE
- #include "Mcu_MemMap.h"
- #ifdef __cplusplus
- }
- #endif
- #endif
|