123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250 |
- #ifndef CACHE_IP_DRIVER_H_
- #define CACHE_IP_DRIVER_H_
- #include "Cache_Ip_Cfg_Defines.h"
- #if (CACHE_IP_IS_AVAILABLE == STD_ON)
- #define CACHE_IP_VENDOR_ID_H 43
- #define CACHE_IP_AR_RELEASE_MAJOR_VERSION_H 4
- #define CACHE_IP_AR_RELEASE_MINOR_VERSION_H 4
- #define CACHE_IP_AR_RELEASE_REVISION_VERSION_H 0
- #define CACHE_IP_SW_MAJOR_VERSION_H 1
- #define CACHE_IP_SW_MINOR_VERSION_H 0
- #define CACHE_IP_SW_PATCH_VERSION_H 0
- #if (CACHE_IP_VENDOR_ID_H != CACHE_IP_CFG_DEFINES_VENDOR_ID_H)
- #error "Cache_Ip.h and Cache_Ip_Cfg_Defines.h have different vendor ids"
- #endif
- #if ((CACHE_IP_AR_RELEASE_MAJOR_VERSION_H != CACHE_IP_CFG_DEFINES_AR_RELEASE_MAJOR_VERSION_H) || \
- (CACHE_IP_AR_RELEASE_MINOR_VERSION_H != CACHE_IP_CFG_DEFINES_AR_RELEASE_MINOR_VERSION_H) || \
- (CACHE_IP_AR_RELEASE_REVISION_VERSION_H != CACHE_IP_CFG_DEFINES_AR_RELEASE_REVISION_VERSION_H) \
- )
- #error "AutoSar Version Numbers of Cache_Ip.h and Cache_Ip_Cfg_Defines.h are different"
- #endif
- #if ((CACHE_IP_SW_MAJOR_VERSION_H != CACHE_IP_CFG_DEFINES_SW_MAJOR_VERSION_H) || \
- (CACHE_IP_SW_MINOR_VERSION_H != CACHE_IP_CFG_DEFINES_SW_MINOR_VERSION_H) || \
- (CACHE_IP_SW_PATCH_VERSION_H != CACHE_IP_CFG_DEFINES_SW_PATCH_VERSION_H) \
- )
- #error "Software Version Numbers of Cache_Ip.h and Cache_Ip_Cfg_Defines.h are different"
- #endif
- typedef enum{
- CACHE_IP_ALL = 0U,
- CACHE_IP_INSTRUCTION = 1U,
- CACHE_IP_DATA = 2U,
- }Cache_Ip_Type;
- #define MCL_START_SEC_CODE
- #include "Mcl_MemMap.h"
- Std_ReturnType Cache_Ip_Enable(const Cache_Ip_Type CacheType);
- Std_ReturnType Cache_Ip_Disable(const Cache_Ip_Type CacheType);
- Std_ReturnType Cache_Ip_Invalidate(const Cache_Ip_Type CacheType);
- Std_ReturnType Cache_Ip_Clean(const Cache_Ip_Type CacheType, const boolean EnInvalidate);
- Std_ReturnType Cache_Ip_InvalidateByAddr(const Cache_Ip_Type CacheType, const uint32 Addr, const uint32 Length);
- Std_ReturnType Cache_Ip_CleanByAddr(const Cache_Ip_Type CacheType, const boolean EnInvalidate, const uint32 Addr, const uint32 Length);
- #define MCL_STOP_SEC_CODE
- #include "Mcl_MemMap.h"
- #endif
- #endif
|