123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332 |
- #ifndef DIO_CFG_H
- #define DIO_CFG_H
- #ifdef __cplusplus
- extern "C" {
- #endif
- #include "StandardTypes.h"
- #define DIO_VENDOR_ID_CFG_H 43
- #define DIO_AR_RELEASE_MAJOR_VERSION_CFG_H 4
- #define DIO_AR_RELEASE_MINOR_VERSION_CFG_H 4
- #define DIO_AR_RELEASE_REVISION_VERSION_CFG_H 0
- #define DIO_SW_MAJOR_VERSION_CFG_H 1
- #define DIO_SW_MINOR_VERSION_CFG_H 0
- #define DIO_SW_PATCH_VERSION_CFG_H 0
- #ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
-
- #if ((DIO_AR_RELEASE_MAJOR_VERSION_CFG_H != STD_AR_RELEASE_MAJOR_VERSION) || \
- (DIO_AR_RELEASE_MINOR_VERSION_CFG_H != STD_AR_RELEASE_MINOR_VERSION) \
- )
- #error "AUTOSAR Version Numbers of Dio_Cfg.h and StandardTypes.h are different"
- #endif
-
- #endif
- #define DIO_DEV_ERROR_DETECT (STD_OFF)
- #define DIO_VERSION_INFO_API (STD_OFF)
- #define DIO_FLIP_CHANNEL_API (STD_OFF)
- #define DIO_MASKEDWRITEPORT_API (STD_OFF)
- #define DIO_REVERSEPORTBITS (STD_OFF)
- #define DIO_READZERO_UNDEFINEDPORTS (STD_OFF)
- #define DIO_MULTICORE_ENABLED (STD_OFF)
- #define DIO_NUM_PORTS_U16 ((uint16)0x5)
- #define DIO_PORT_PARTITION_U16 ((uint16)5U)
- #if (STD_ON == DIO_DEV_ERROR_DETECT)
- #define DIO_NUM_CHANNELS_U16 ((uint16)139U)
- #endif
- #define DIO_CHANNEL_PARTITION_U16 ((uint16)140U)
- #if (STD_ON == DIO_DEV_ERROR_DETECT)
- #define DIO_NO_AVAILABLE_CHANNELS_U16 ((Dio_PortLevelType)0x0U)
- #endif
- #if (STD_ON == DIO_DEV_ERROR_DETECT)
- #define DIO_MAX_VALID_OFFSET_U8 ((uint8)0x1FU)
- #endif
- #define DIO_USER_MODE_SOFT_LOCKING (STD_OFF)
- #define DIO_PRECOMPILE_SUPPORT
- #define DIO_ENABLE_USER_MODE_SUPPORT (STD_OFF)
- #ifndef MCAL_ENABLE_USER_MODE_SUPPORT
- #ifdef DIO_ENABLE_USER_MODE_SUPPORT
- #if (STD_ON == DIO_ENABLE_USER_MODE_SUPPORT)
- #error MCAL_ENABLE_USER_MODE_SUPPORT is not enabled. For running Dio in user mode the MCAL_ENABLE_USER_MODE_SUPPORT needs to be defined
- #endif
- #endif
- #endif
- #define Dio_ConfigPC (Dio_Config)
- #define DioConf_DioPort_DioPort_0 ((uint8)0x00U)
- typedef uint8 Dio_PortType;
- typedef uint16 Dio_ChannelType;
- typedef uint32 Dio_PortLevelType;
- typedef uint8 Dio_LevelType;
- typedef struct
- {
- Dio_PortType port;
- uint8 u8offset;
- Dio_PortLevelType mask;
- } Dio_ChannelGroupType;
- typedef struct
- {
- uint8 u8NumChannelGroups;
- const Dio_ChannelGroupType * pChannelGroupList;
- const uint32 * pau32Dio_ChannelToPartitionMap;
- const uint32 * pau32Dio_PortToPartitionMap;
- } Dio_ConfigType;
- #define DIO_START_SEC_CONST_32
- #include "Dio_MemMap.h"
- extern const uint32 au32Dio_ChannelToPartitionMap[DIO_CHANNEL_PARTITION_U16];
- extern const uint32 au32Dio_PortToPartitionMap[DIO_PORT_PARTITION_U16];
- extern const Dio_PortLevelType Dio_aAvailablePinsForWrite[DIO_NUM_PORTS_U16];
- extern const Dio_PortLevelType Dio_aAvailablePinsForRead[DIO_NUM_PORTS_U16];
- #define DIO_STOP_SEC_CONST_32
- #include "Dio_MemMap.h"
- #ifdef __cplusplus
- }
- #endif
- #endif
|