123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532 |
- #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_ON)
- #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_A ((uint8)0x00U)
- #define DioConf_DioChannel_PTA7_GPIO_OUT_MCU_4G_PWRKEY ((uint16)0x0007U)
- #define DioConf_DioChannel_PTA6_GPIO_OUT_MCU_4G_POW_EN ((uint16)0x0006U)
- #define DioConf_DioChannel_PTA11_GPIO_OUT_MCU_BMS_WAKEUP_EN ((uint16)0x000bU)
- #define DioConf_DioPort_DioPort_B ((uint8)0x01U)
- #define DioConf_DioChannel_PTB1_GPIO_IN_MCU_4G_STATUS ((uint16)0x0021U)
- #define DioConf_DioChannel_PTB2_GPIO_IN_MCU_4G_RI ((uint16)0x0022U)
- #define DioConf_DioChannel_PTE7_GPIO_OUT_MCU_BT_MOD ((uint16)0x0027U)
- #define DioConf_DioChannel_PTB4_GPIO_OUT_MCU_RS485_EN ((uint16)0x0024U)
- #define DioConf_DioPort_DioPort_C ((uint8)0x02U)
- #define DioConf_DioChannel_PTC0_SPI2_SIN_MCU_3D_SDI ((uint16)0x0040U)
- #define DioConf_DioChannel_PTC1_SPI2_SOUT_MCU_3D_SDO ((uint16)0x0041U)
- #define DioConf_DioChannel_PTC14_SPI2_PCS0_MCU_3D_CS ((uint16)0x004eU)
- #define DioConf_DioPort_DioPort_D ((uint8)0x03U)
- #define DioConf_DioChannel_PTD2_GPIO_OUT_MCU_4G_DTR ((uint16)0x0062U)
- #define DioConf_DioChannel_PTD3_GPIO_OUT_MCU_4G_RESET ((uint16)0x0063U)
- #define DioConf_DioChannel_PTD15_GPIO_OUT_MCU_BUZ_EN ((uint16)0x006fU)
- #define DioConf_DioChannel_PTD16_GPIO_OUT_MCU_RELAY_POW_EN ((uint16)0x0070U)
- #define DioConf_DioChannel_PTD0_GPIO_OUT_MCU_GPS_RESET ((uint16)0x0060U)
- #define DioConf_DioChannel_PTD1_GPIO_OUT_MCU_GPS_POW_EN ((uint16)0x0061U)
- #define DioConf_DioPort_DioPort_E ((uint8)0x04U)
- #define DioConf_DioChannel_PTE0_GPIO_OUT_MCU_LED1 ((uint16)0x0080U)
- #define DioConf_DioChannel_PTE1_GPIO_OUT_MCU_LED2 ((uint16)0x0081U)
- #define DioConf_DioChannel_PTE7_GPIO_OUT_MCU_LED3 ((uint16)0x0087U)
- #define DioConf_DioChannel_PTE8_GPIO_OUT_MCU_LED4 ((uint16)0x0088U)
- #define DioConf_DioChannel_PTE9_GPIO_OUT_MCU_LED5 ((uint16)0x0089U)
- 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
|