123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- #ifndef OSIF_TIMER_CUSTOM_H
- #define OSIF_TIMER_CUSTOM_H
- #ifdef __cplusplus
- extern "C"{
- #endif
- #include "StandardTypes.h"
- #define OSIF_TIMER_CUSTOM_VENDOR_ID 43
- #define OSIF_TIMER_CUSTOM_AR_RELEASE_MAJOR_VERSION 4
- #define OSIF_TIMER_CUSTOM_AR_RELEASE_MINOR_VERSION 4
- #define OSIF_TIMER_CUSTOM_AR_RELEASE_REVISION_VERSION 0
- #define OSIF_TIMER_CUSTOM_SW_MAJOR_VERSION 1
- #define OSIF_TIMER_CUSTOM_SW_MINOR_VERSION 0
- #define OSIF_TIMER_CUSTOM_SW_PATCH_VERSION 0
- #ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
- #if ((OSIF_TIMER_CUSTOM_AR_RELEASE_MAJOR_VERSION != STD_AR_RELEASE_MAJOR_VERSION) || \
- (OSIF_TIMER_CUSTOM_AR_RELEASE_MINOR_VERSION != STD_AR_RELEASE_MINOR_VERSION))
- #error "AutoSar Version Numbers of OsIf_Timer_Custom.h and StandardTypes.h are different"
- #endif
- #endif
- #define BASE_START_SEC_CODE
- #include "Base_MemMap.h"
- void OsIf_Timer_Custom_Init(void);
- uint32 OsIf_Timer_Custom_GetCounter(void);
- uint32 OsIf_Timer_Custom_GetElapsed(uint32 * const CurrentRef);
- void OsIf_Timer_Custom_SetTimerFrequency(uint32 Freq);
- uint32 OsIf_Timer_Custom_MicrosToTicks(uint32 Micros);
- #define BASE_STOP_SEC_CODE
- #include "Base_MemMap.h"
- #ifdef __cplusplus
- }
- #endif
- #endif
|