123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204 |
- #ifndef EWM_IP_H
- #define EWM_IP_H
- #ifdef __cplusplus
- extern "C"{
- #endif
- #include "Ewm_Ip_Types.h"
- #include "Ewm_Ip_DeviceRegisters.h"
- #define EWM_IP_VENDOR_ID 43
- #define EWM_IP_MODULE_ID 102
- #define EWM_IP_AR_RELEASE_MAJOR_VERSION 4
- #define EWM_IP_AR_RELEASE_MINOR_VERSION 4
- #define EWM_IP_AR_RELEASE_REVISION_VERSION 0
- #define EWM_IP_SW_MAJOR_VERSION 1
- #define EWM_IP_SW_MINOR_VERSION 0
- #define EWM_IP_SW_PATCH_VERSION 0
- #if (EWM_IP_VENDOR_ID != EWM_IP_TYPES_VENDOR_ID)
- #error "Ewm_Ip.h and Ewm_Ip_Types.h have different vendor ids"
- #endif
- #if ((EWM_IP_AR_RELEASE_MAJOR_VERSION != EWM_IP_TYPES_AR_RELEASE_MAJOR_VERSION) || \
- (EWM_IP_AR_RELEASE_MINOR_VERSION != EWM_IP_TYPES_AR_RELEASE_MINOR_VERSION) || \
- (EWM_IP_AR_RELEASE_REVISION_VERSION != EWM_IP_TYPES_AR_RELEASE_REVISION_VERSION))
- #error "AutoSar Version Numbers of Ewm_Ip.h and Ewm_Ip_Types.h are different"
- #endif
- #if ((EWM_IP_SW_MAJOR_VERSION != EWM_IP_TYPES_SW_MAJOR_VERSION) || \
- (EWM_IP_SW_MINOR_VERSION != EWM_IP_TYPES_SW_MINOR_VERSION) || \
- (EWM_IP_SW_PATCH_VERSION != EWM_IP_TYPES_SW_PATCH_VERSION))
- #error "Software Version Numbers of Ewm_Ip.h and Ewm_Ip_Types.h are different"
- #endif
- #if (EWM_IP_VENDOR_ID != EWM_IP_DEVICE_REGISTERS_VENDOR_ID)
- #error "Ewm_Ip.h and Ewm_Ip_DeviceRegisters.h have different vendor ids"
- #endif
- #if ((EWM_IP_AR_RELEASE_MAJOR_VERSION != EWM_IP_DEVICE_REGISTERS_AR_RELEASE_MAJOR_VERSION) || \
- (EWM_IP_AR_RELEASE_MINOR_VERSION != EWM_IP_DEVICE_REGISTERS_AR_RELEASE_MINOR_VERSION) || \
- (EWM_IP_AR_RELEASE_REVISION_VERSION != EWM_IP_DEVICE_REGISTERS_AR_RELEASE_REVISION_VERSION))
- #error "AutoSar Version Numbers of Ewm_Ip.h and Ewm_Ip_DeviceRegisters.h are different"
- #endif
- #if ((EWM_IP_SW_MAJOR_VERSION != EWM_IP_DEVICE_REGISTERS_SW_MAJOR_VERSION) || \
- (EWM_IP_SW_MINOR_VERSION != EWM_IP_DEVICE_REGISTERS_SW_MINOR_VERSION) || \
- (EWM_IP_SW_PATCH_VERSION != EWM_IP_DEVICE_REGISTERS_SW_PATCH_VERSION))
- #error "Software Version Numbers of Ewm_Ip.h and Ewm_Ip_DeviceRegisters.h are different"
- #endif
- #if (EWM_IP_ENABLE == STD_ON)
- #ifdef WDG_ROM
- #if (WDG_ROM == 1U)
- #define WDG_START_SEC_CODE
- #endif
- #else
- #if (WDG_RAM == 0U)
- #define WDG_START_SEC_RAMCODE
- #endif
- #endif
- #include "Wdg_MemMap.h"
- Ewm_Ip_StatusType Ewm_Ip_Init(const uint8 Instance, const Ewm_Ip_ConfigType * const ConfigPtr);
- void Ewm_Ip_Service(const uint8 Instance);
- #ifdef WDG_ROM
- #if (WDG_ROM == 1U)
- #define WDG_STOP_SEC_CODE
- #endif
- #else
- #if (WDG_RAM == 0U)
- #define WDG_STOP_SEC_RAMCODE
- #endif
- #endif
- #include "Wdg_MemMap.h"
- #endif
- #ifdef __cplusplus
- }
- #endif
- #endif
|