123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392 |
- #ifndef SPI_CFG_H
- #define SPI_CFG_H
- #ifdef __cplusplus
- extern "C"{
- #endif
- #include "Mcal.h"
- #include "OsIf.h"
- #include "Spi_VS_0_PBcfg.h"
- #include "Spi_Ipw_Cfg.h"
- #define SPI_VENDOR_ID_CFG 43
- #define SPI_AR_RELEASE_MAJOR_VERSION_CFG 4
- #define SPI_AR_RELEASE_MINOR_VERSION_CFG 4
- #define SPI_AR_RELEASE_REVISION_VERSION_CFG 0
- #define SPI_SW_MAJOR_VERSION_CFG 1
- #define SPI_SW_MINOR_VERSION_CFG 0
- #define SPI_SW_PATCH_VERSION_CFG 0
- #ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
-
- #if ((SPI_AR_RELEASE_MAJOR_VERSION_CFG != MCAL_AR_RELEASE_MAJOR_VERSION) || \
- (SPI_AR_RELEASE_MINOR_VERSION_CFG != MCAL_AR_RELEASE_MINOR_VERSION))
- #error "AutoSar Version Numbers of Spi_Cfg.h and Mcal.h are different"
- #endif
-
- #if ((SPI_AR_RELEASE_MAJOR_VERSION_CFG != OSIF_AR_RELEASE_MAJOR_VERSION) || \
- (SPI_AR_RELEASE_MINOR_VERSION_CFG != OSIF_AR_RELEASE_MINOR_VERSION))
- #error "AutoSar Version Numbers of Spi_Cfg.h and OsIf.h are different"
- #endif
- #endif
- #if (SPI_VENDOR_ID_VS_0_PBCFG_H != SPI_VENDOR_ID_CFG)
- #error "Spi_VS_0_PBcfg.h and Spi_Cfg.h have different vendor IDs"
- #endif
-
- #if ((SPI_AR_RELEASE_MAJOR_VERSION_VS_0_PBCFG_H != SPI_AR_RELEASE_MAJOR_VERSION_CFG) || \
- (SPI_AR_RELEASE_MINOR_VERSION_VS_0_PBCFG_H != SPI_AR_RELEASE_MINOR_VERSION_CFG) || \
- (SPI_AR_RELEASE_REVISION_VERSION_VS_0_PBCFG_H != SPI_AR_RELEASE_REVISION_VERSION_CFG))
- #error "AutoSar Version Numbers of Spi_VS_0_PBcfg.h and Spi_Cfg.h are different"
- #endif
- #if ((SPI_SW_MAJOR_VERSION_VS_0_PBCFG_H != SPI_SW_MAJOR_VERSION_CFG) || \
- (SPI_SW_MINOR_VERSION_VS_0_PBCFG_H != SPI_SW_MINOR_VERSION_CFG) || \
- (SPI_SW_PATCH_VERSION_VS_0_PBCFG_H != SPI_SW_PATCH_VERSION_CFG))
- #error "Software Version Numbers of Spi_VS_0_PBcfg.h and Spi_Cfg.h are different"
- #endif
- #if (SPI_IPW_VENDOR_ID_CFG_H != SPI_VENDOR_ID_CFG)
- #error "Spi_Ipw_Cfg.h and Spi_Cfg.h have different vendor IDs"
- #endif
-
- #if ((SPI_IPW_AR_RELEASE_MAJOR_VERSION_CFG_H != SPI_AR_RELEASE_MAJOR_VERSION_CFG) || \
- (SPI_IPW_AR_RELEASE_MINOR_VERSION_CFG_H != SPI_AR_RELEASE_MINOR_VERSION_CFG) || \
- (SPI_IPW_AR_RELEASE_REVISION_VERSION_CFG_H != SPI_AR_RELEASE_REVISION_VERSION_CFG))
- #error "AutoSar Version Numbers of Spi_Ipw_Cfg.h and Spi_Cfg.h are different"
- #endif
- #if ((SPI_IPW_SW_MAJOR_VERSION_CFG_H != SPI_SW_MAJOR_VERSION_CFG) || \
- (SPI_IPW_SW_MINOR_VERSION_CFG_H != SPI_SW_MINOR_VERSION_CFG) || \
- (SPI_IPW_SW_PATCH_VERSION_CFG_H != SPI_SW_PATCH_VERSION_CFG))
- #error "Software Version Numbers of Spi_Ipw_Cfg.h and Spi_Cfg.h are different"
- #endif
- #define SPI_DEV_ERROR_DETECT (STD_ON)
- #define SPI_VERSION_INFO_API (STD_ON)
- #define SPI_INTERRUPTIBLE_SEQ_ALLOWED (STD_OFF)
- #define SPI_HW_STATUS_API (STD_ON)
- #define SPI_CANCEL_API (STD_ON)
- #define USAGE0 0x00u
- #define USAGE1 0x01u
- #define USAGE2 0x02u
- #define SPI_CHANNEL_BUFFERS_ALLOWED (USAGE1)
- #define LEVEL0 0x00u
- #define LEVEL1 0x01u
- #define LEVEL2 0x02u
- #define SPI_LEVEL_DELIVERED (LEVEL2)
- #define SpiConf_SpiChannel_SpiChannel_0 ((Spi_ChannelType)0)
- #define SPI_MAX_CHANNEL (1u)
- #define SpiConf_SpiJob_SpiJob_0 ((Spi_JobType)0)
- #define SPI_MAX_JOB (1u)
- #define SpiConf_SpiSequence_SpiSequence_0 ((Spi_SequenceType)0)
- #define SPI_MAX_SEQUENCE (1u)
- #define CSIB0 ((uint8)0u)
- #define SPI_MAX_HWUNIT (1u)
- #define SPI_SpiExternalDevice_0 ((Spi_ExternalDeviceType)0u)
- #define SPI_DISABLE_DEM_REPORT_ERROR_STATUS (STD_ON)
- #define SPI_VARIANT_PRECOMPILE (0)
- #define SPI_VARIANT_POSTBUILD (1)
- #define SPI_VARIANT_LINKTIME (2)
- #define SPI_CONFIG_VARIANT (SPI_VARIANT_PRECOMPILE)
- #define SPI_PRECOMPILE_SUPPORT (STD_ON)
- #define SPI_TIMEOUT_COUNTER ((uint32)(50000))
- #define SPI_SUPPORT_CONCURRENT_SYNC_TRANSMIT (STD_ON)
- #define SPI_HWUNIT_ASYNC_MODE (STD_OFF)
- #define SPI_ALLOW_BIGSIZE_COLLECTIONS (STD_OFF)
- #define SPI_MAX_PARTITIONS (1U)
- #define SPI_MULTICORE_ENABLED (STD_OFF)
- #if (STD_OFF == SPI_MULTICORE_ENABLED)
- #define SPI_SPURIOUS_CORE_ID ((uint32)0UL)
- #endif
- #if (STD_ON == SPI_MULTICORE_ENABLED)
- #define Spi_GetCoreID ((uint32)OsIf_GetCoreID())
- #else
- #define Spi_GetCoreID SPI_SPURIOUS_CORE_ID
- #endif
- #define SPI_SLAVE_SUPPORT SPI_IPW_SLAVE_SUPPORT
- #define SPI_DMA_USED SPI_IPW_DMA_USED
- #define SPI_DUAL_CLOCK_MODE SPI_IPW_DUAL_CLOCK_MODE
- #define SPI_ENABLE_DMAFASTTRANSFER_SUPPORT SPI_IPW_ENABLE_DMAFASTTRANSFER_SUPPORT
- #define SPI_HALF_DUPLEX_MODE_SUPPORT SPI_IPW_SPI_HALF_DUPLEX_MODE_SUPPORT
- #ifdef __cplusplus
- }
- #endif
- #endif
|