123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235 |
- #ifdef __cplusplus
- extern "C" {
- #endif
- #include "Std_Types.h"
- #ifdef TEST_CAN
- #include "CanIf.h"
- #endif
- #include "EcuM.h"
- #ifdef TEST_GPT
- #include "Gpt.h"
- #include "Gpt_TestNotifications.h"
- #endif
- #ifdef TEST_LIN
- #include "LinIf.h"
- #endif
- #ifdef TEST_ICU
- #include "Icu.h"
- #endif
- #define ECUM_VENDOR_ID_C 43
- #define ECUM_AR_RELEASE_MAJOR_VERSION_C 4
- #define ECUM_AR_RELEASE_MINOR_VERSION_C 4
- #define ECUM_AR_RELEASE_REVISION_VERSION_C 0
- #define ECUM_SW_MAJOR_VERSION_C 1
- #define ECUM_SW_MINOR_VERSION_C 0
- #define ECUM_SW_PATCH_VERSION_C 0
- #if (ECUM_VENDOR_ID_C != ECUM_VENDOR_ID)
- #error "EcuM.c and EcuM.h have different vendor ids"
- #endif
- #if ((ECUM_AR_RELEASE_MAJOR_VERSION_C != ECUM_AR_RELEASE_MAJOR_VERSION) || \
- (ECUM_AR_RELEASE_MINOR_VERSION_C != ECUM_AR_RELEASE_MINOR_VERSION) || \
- (ECUM_AR_RELEASE_REVISION_VERSION_C != ECUM_AR_RELEASE_REVISION_VERSION))
- #error "AutoSar Version Numbers of EcuM.c and EcuM.h are different"
- #endif
- #if ((ECUM_SW_MAJOR_VERSION_C != ECUM_SW_MAJOR_VERSION) || \
- (ECUM_SW_MINOR_VERSION_C != ECUM_SW_MINOR_VERSION) || \
- (ECUM_SW_PATCH_VERSION_C != ECUM_SW_PATCH_VERSION))
- #error "Software Version Numbers of EcuM.c and EcuM.h are different"
- #endif
- #ifdef TEST_CAN
- #ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
- #if ((ECUM_AR_RELEASE_MAJOR_VERSION_C != CANIF_AR_RELEASE_MAJOR_VERSION) || \
- (ECUM_AR_RELEASE_MINOR_VERSION_C != CANIF_AR_RELEASE_MINOR_VERSION))
- #error "AutoSar Version Numbers of EcuM.c and CanIf.h are different"
- #endif
- #endif
- #endif
- #ifdef TEST_GPT
- #ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
- #if ((ECUM_AR_RELEASE_MAJOR_VERSION_C != GPT_AR_RELEASE_MAJOR_VERSION) || \
- (ECUM_AR_RELEASE_MINOR_VERSION_C != GPT_AR_RELEASE_MINOR_VERSION))
- #error "AutoSar Version Numbers of EcuM.c and Gpt.h are different"
- #endif
- #endif
- #endif
- #ifdef TEST_LIN
- #ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
- #if ((ECUM_AR_RELEASE_MAJOR_VERSION_C != LIN_IF_AR_RELEASE_MAJOR_VERSION_CBK) || \
- (ECUM_AR_RELEASE_MINOR_VERSION_C != LIN_IF_AR_RELEASE_MINOR_VERSION_CBK))
- #error "AutoSar Version Numbers of EcuM.c and LinIf.h are different"
- #endif
- #endif
- #endif
- #ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
- #if ((ECUM_AR_RELEASE_MAJOR_VERSION_C != STD_AR_RELEASE_MAJOR_VERSION) || \
- (ECUM_AR_RELEASE_MINOR_VERSION_C != STD_AR_RELEASE_MINOR_VERSION))
- #error "AutoSar Version Numbers of EcuM.c and Std_Types.h are different"
- #endif
- #endif
- #define ECUM_START_SEC_VAR_CLEARED_32
- #include "Ecum_MemMap.h"
- EcuM_WakeupSourceType EcuMLastWakeupEvent;
- #define ECUM_STOP_SEC_VAR_CLEARED_32
- #include "Ecum_MemMap.h"
- #define ECUM_START_SEC_CODE
- #include "Ecum_MemMap.h"
- void EcuM_SetWakeupEvent(EcuM_WakeupSourceType events)
- {
- EcuMLastWakeupEvent = events;
- }
- void EcuM_ValidateWakeupEvent(EcuM_WakeupSourceType events)
- {
- (void)events;
- }
- void EcuM_CheckWakeup(EcuM_WakeupSourceType wakeupSource)
- {
- #ifdef TEST_CAN
- #if (CANIF_WAKEUP_SUPPORT == STD_ON)
- CanIf_CheckWakeup(wakeupSource);
- #endif
- #endif
- #ifdef TEST_GPT
- Gpt_CheckWakeup(wakeupSource);
- #endif
- #ifdef TEST_LIN
- LinIf_CheckWakeup(wakeupSource);
- #endif
- #ifdef TEST_ICU
- Icu_CheckWakeup(wakeupSource);
- #endif
- (void)wakeupSource;
- }
- #define ECUM_STOP_SEC_CODE
- #include "Ecum_MemMap.h"
- #ifdef __cplusplus
- }
- #endif
|