/**************************************************************************************************/ /** * @file : Gpt_PBcfg.c * @brief : Gpt AUTOSAR level - Post-Build(PB) configuration file code template * - Platform: Z20K14xM * - Autosar Version: 4.6.0 * @version : 1.2.0 * @author : Zhixin Semiconductor * @note : None * * @copyright : Copyright (c) 2021-2023 Zhixin Semiconductor Ltd. All rights reserved. **************************************************************************************************/ /** @addtogroup Gpt_Module * @{ */ /** @addtogroup Gpt_Configuration * @brief Gpt AUTOSAR level configuration * @{ */ #ifdef __cplusplus extern "C"{ #endif #include "Gpt.h" #include "Gpt_Drvw.h" /** @defgroup Public_MacroDefinition * @{ */ /* Published information */ #define GPT_PBCFG_C_VENDOR_ID 0x00B3U #define GPT_PBCFG_C_AR_RELEASE_MAJOR_VERSION 4U #define GPT_PBCFG_C_AR_RELEASE_MINOR_VERSION 6U #define GPT_PBCFG_C_AR_RELEASE_REVISION_VERSION 0U #define GPT_PBCFG_C_SW_MAJOR_VERSION 1U #define GPT_PBCFG_C_SW_MINOR_VERSION 2U #define GPT_PBCFG_C_SW_PATCH_VERSION 0U /* Check if current file and Gpt header file are of the same vendor */ #if (GPT_PBCFG_C_VENDOR_ID != GPT_VENDOR_ID) #error "Vendor ID of Gpt_PBcfg.c and Gpt.h are different" #endif /* Check if current file and Gpt header file are of the same vendor */ #if ((GPT_PBCFG_C_AR_RELEASE_MAJOR_VERSION != GPT_AR_RELEASE_MAJOR_VERSION) || \ (GPT_PBCFG_C_AR_RELEASE_MINOR_VERSION != GPT_AR_RELEASE_MINOR_VERSION) || \ (GPT_PBCFG_C_AR_RELEASE_REVISION_VERSION != GPT_AR_RELEASE_REVISION_VERSION) \ ) #error "AutoSar Version of Gpt_PBcfg.c and Gpt.h are different" #endif /* Check if current file and Gpt header file are of the same vendor */ #if ((GPT_PBCFG_C_SW_MAJOR_VERSION != GPT_SW_MAJOR_VERSION) || \ (GPT_PBCFG_C_SW_MINOR_VERSION != GPT_SW_MINOR_VERSION) || \ (GPT_PBCFG_C_SW_PATCH_VERSION != GPT_SW_PATCH_VERSION) \ ) #error "Software Version of Gpt_PBcfg.c and Gpt.h are different" #endif /* Check if current file and Gpt_Drvw header file are of the same vendor */ #if (GPT_PBCFG_C_VENDOR_ID != GPT_DRVW_H_VENDOR_ID) #error "Vendor ID of Gpt_PBcfg.c and Gpt_Drvw.h are different" #endif /* Check if current file and Gpt_Drvw header file are of the same vendor */ #if ((GPT_PBCFG_C_AR_RELEASE_MAJOR_VERSION != GPT_DRVW_H_AR_RELEASE_MAJOR_VERSION) || \ (GPT_PBCFG_C_AR_RELEASE_MINOR_VERSION != GPT_DRVW_H_AR_RELEASE_MINOR_VERSION) || \ (GPT_PBCFG_C_AR_RELEASE_REVISION_VERSION != GPT_DRVW_H_AR_RELEASE_REVISION_VERSION) \ ) #error "AutoSar Version of Gpt_PBcfg.c and Gpt_Drvw.h are different" #endif /* Check if current file and Gpt_Drvw header file are of the same vendor */ #if ((GPT_PBCFG_C_SW_MAJOR_VERSION != GPT_DRVW_H_SW_MAJOR_VERSION) || \ (GPT_PBCFG_C_SW_MINOR_VERSION != GPT_DRVW_H_SW_MINOR_VERSION) || \ (GPT_PBCFG_C_SW_PATCH_VERSION != GPT_DRVW_H_SW_PATCH_VERSION) \ ) #error "Software Version of Gpt_PBcfg.c and Gpt_Drvw.h are different" #endif /** @} end of Public_MacroDefinition */ /** @defgroup Public_TypeDefinition * @{ */ /** @} end of group Public_TypeDefinition */ /** @defgroup Global_VariableDeclaration * @{ */ #define GPT_CONF_CHANNELS_PB 4U #define GPT_START_SEC_CODE #include "Gpt_MemMap.h" extern void OS_TriggerGroup1ms(void); /*!< Start Gpt Notification 'GptChlOS' */ extern void Adc_TriggerGroup5ms(void); /*!< Start Gpt Notification 'GptChlADC' */ extern void Ex_Can_StimCallback(void); /*!< Start Gpt Notification 'GptChlCAN1' */ extern void GPT_Notif_SPI(void); /*!< Start Gpt Notification 'GptChlSPI' */ #define GPT_STOP_SEC_CODE #include "Gpt_MemMap.h" #define GPT_START_SEC_CONFIG_DATA_8 #include "Gpt_MemMap.h" static const uint8 GptLogicChannelIdToIndexMap[GPT_NUM_CONFIG] = { 0, /*!< Logical Channel GptChlOS */ 1, /*!< Logical Channel GptChlADC */ 2, /*!< Logical Channel GptChlCAN1 */ 3 /*!< Logical Channel GptChlSPI */ }; #define GPT_STOP_SEC_CONFIG_DATA_8 #include "Gpt_MemMap.h" #define GPT_START_SEC_CONFIG_DATA_UNSPECIFIED #include "Gpt_MemMap.h" #if (GPT_PREDEFTIMER_FUNCTIONALITY_API == STD_ON) static const Gpt_Drvw_HwPredefChannelConfigType *const Gpt_InitPredefTimerChannel[GPT_HW_PREDEFTIMER_NUM]= { NULL_PTR, NULL_PTR, NULL_PTR, NULL_PTR }; #endif /*GPT_PREDEFTIMER_FUNCTIONALITY_API == STD_ON*/ static const Gpt_ChannelConfigType Gpt_InitChannel[GPT_CONF_CHANNELS_PB] = { { /*!