123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421 |
- #ifndef ICU_CFG_H
- #define ICU_CFG_H
- #ifdef __cplusplus
- extern "C"{
- #endif
- #include "Icu_EnvCfg.h"
- #include "StandardTypes.h"
- #include "Icu_VS_0_PBcfg.h"
- #define ICU_CFG_VENDOR_ID 43
- #define ICU_CFG_AR_RELEASE_MAJOR_VERSION 4
- #define ICU_CFG_AR_RELEASE_MINOR_VERSION 4
- #define ICU_CFG_AR_RELEASE_REVISION_VERSION 0
- #define ICU_CFG_SW_MAJOR_VERSION 1
- #define ICU_CFG_SW_MINOR_VERSION 0
- #define ICU_CFG_SW_PATCH_VERSION 0
- #if (ICU_CFG_VENDOR_ID != ICU_ENVCFG_VENDOR_ID)
- #error "Icu_Cfg.h and Icu_EnvCfg.h have different vendor IDs"
- #endif
- #if ((ICU_CFG_AR_RELEASE_MAJOR_VERSION != ICU_ENVCFG_AR_RELEASE_MAJOR_VERSION) || \
- (ICU_CFG_AR_RELEASE_MINOR_VERSION != ICU_ENVCFG_AR_RELEASE_MINOR_VERSION) || \
- (ICU_CFG_AR_RELEASE_REVISION_VERSION != ICU_ENVCFG_AR_RELEASE_REVISION_VERSION))
- #error "AutoSar Version Numbers of Icu_Cfg.h and Icu_EnvCfg.h are different"
- #endif
- #if ((ICU_CFG_SW_MAJOR_VERSION != ICU_ENVCFG_SW_MAJOR_VERSION) || \
- (ICU_CFG_SW_MINOR_VERSION != ICU_ENVCFG_SW_MINOR_VERSION) || \
- (ICU_CFG_SW_PATCH_VERSION != ICU_ENVCFG_SW_PATCH_VERSION))
- #error "Software Version Numbers of Icu_Cfg.h and Icu_EnvCfg.h are different"
- #endif
- #ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
- #if ((ICU_CFG_AR_RELEASE_MAJOR_VERSION != STD_AR_RELEASE_MAJOR_VERSION) || \
- (ICU_CFG_AR_RELEASE_MINOR_VERSION != STD_AR_RELEASE_MINOR_VERSION))
- #error "AutoSar Version Numbers of Icu_Cfg.h and StandardTypes.h are different"
- #endif
- #endif
- #if (ICU_VS_0_PBCFG_VENDOR_ID != ICU_CFG_VENDOR_ID)
- #error "Icu_VS_0_PBcfg.h and Icu_Cfg.h have different vendor IDs"
- #endif
- #if ((ICU_VS_0_PBCFG_AR_RELEASE_MAJOR_VERSION != ICU_CFG_AR_RELEASE_MAJOR_VERSION) || \
- (ICU_VS_0_PBCFG_AR_RELEASE_MINOR_VERSION != ICU_CFG_AR_RELEASE_MINOR_VERSION) || \
- (ICU_VS_0_PBCFG_AR_RELEASE_REVISION_VERSION != ICU_CFG_AR_RELEASE_REVISION_VERSION))
- #error "AutoSar Version Numbers of Icu_VS_0_PBcfg.h and Icu_Cfg.h are different"
- #endif
- #if ((ICU_VS_0_PBCFG_SW_MAJOR_VERSION != ICU_CFG_SW_MAJOR_VERSION) || \
- (ICU_VS_0_PBCFG_SW_MINOR_VERSION != ICU_CFG_SW_MINOR_VERSION) || \
- (ICU_VS_0_PBCFG_SW_PATCH_VERSION != ICU_CFG_SW_PATCH_VERSION))
- #error "Software Version Numbers of Icu_VS_0_PBcfg.h and Icu_Cfg.h are different"
- #endif
- #define ICU_CONFIG_EXT \
- ICU_CONFIG_VS_0_PB \
- #define ICU_MAX_CHANNEL ((Icu_ChannelType)5U)
- #define ICU_DEV_ERROR_DETECT (STD_ON)
- #define ICU_REPORT_WAKEUP_SOURCE (STD_ON)
- #define ICU_ENABLE_USER_MODE_SUPPORT (STD_OFF)
- #ifndef MCAL_ENABLE_USER_MODE_SUPPORT
- #ifdef ICU_ENABLE_USER_MODE_SUPPORT
- #if (STD_ON == ICU_ENABLE_USER_MODE_SUPPORT)
- #error MCAL_ENABLE_USER_MODE_SUPPORT is not enabled. For running Icu in user mode the MCAL_ENABLE_USER_MODE_SUPPORT needs to be defined
- #endif
- #endif
- #endif
- #define ICU_GET_VERSION_INFO_API (STD_ON)
- #define ICU_DE_INIT_API (STD_ON)
- #define ICU_SET_MODE_API (STD_ON)
- #define ICU_DISABLE_WAKEUP_API (STD_ON)
- #define ICU_ENABLE_WAKEUP_API (STD_ON)
- #define ICU_TIMESTAMP_API (STD_ON)
- #define ICU_EDGE_COUNT_API (STD_ON)
- #define ICU_GET_TIME_ELAPSED_API (STD_ON)
- #define ICU_GET_DUTY_CYCLE_VALUES_API (STD_ON)
- #define ICU_GET_INPUT_STATE_API (STD_ON)
- #define ICU_SIGNAL_MEASUREMENT_API (STD_ON)
- #define ICU_WAKEUP_FUNCTIONALITY_API (STD_ON)
- #define ICU_EDGE_DETECT_API (STD_ON)
- #define ICU_OVERFLOW_NOTIFICATION_API (STD_OFF)
- #define ICU_GET_INPUT_LEVEL_API (STD_ON)
- #define ICU_GET_PULSE_WIDTH_API (STD_OFF)
- #define ICU_SIGNALMEASUREMENT_USES_DMA (STD_OFF)
- #define ICU_TIMESTAMP_USES_DMA (STD_OFF)
- #if ((ICU_SIGNALMEASUREMENT_USES_DMA == STD_ON) || (ICU_TIMESTAMP_USES_DMA == STD_ON))
- #define ICU_CAPTURE_REGISTER_MASK (((Icu_ValueType)0xFFFFU))
- #define ICU_DMA_SIZE (DMA_IP_TRANSFER_SIZE_2_BYTE)
- #define ICU_DMA_NUM_BYTES (2U)
- #define ICU_DMA_OFFSET (2U)
- #define NoMclDmaChannel ((Mcl_ChannelType)0xFF)
- #endif
- #define ICU_DUAL_CLOCK_MODE_API (STD_OFF)
- #define ICU_CAPTURERGISTER_API (STD_OFF)
- #define IcuChannel_0 (IcuConf_IcuChannel_IcuChannel_0)
- #define IcuConf_IcuChannel_IcuChannel_0 ((Icu_ChannelType)0U)
- #define IcuChannel_1 (IcuConf_IcuChannel_IcuChannel_1)
- #define IcuConf_IcuChannel_IcuChannel_1 ((Icu_ChannelType)1U)
- #define IcuChannel_2 (IcuConf_IcuChannel_IcuChannel_2)
- #define IcuConf_IcuChannel_IcuChannel_2 ((Icu_ChannelType)2U)
- #define IcuChannel_3 (IcuConf_IcuChannel_IcuChannel_3)
- #define IcuConf_IcuChannel_IcuChannel_3 ((Icu_ChannelType)3U)
- #define IcuChannel_4 (IcuConf_IcuChannel_IcuChannel_4)
- #define IcuConf_IcuChannel_IcuChannel_4 ((Icu_ChannelType)4U)
- #define ICU_MAX_PARTITIONS (1U)
- #define ICU_MULTICORE_SUPPORT (STD_OFF)
- typedef uint16 Icu_TimerRegisterWidthType;
- typedef uint16 Icu_HwSpecificIndexType;
- typedef uint16 Icu_HwSpecificEdgeNumberType;
- #ifdef __cplusplus
- }
- #endif
- #endif
|