/******************************************************************************* ** KPIT Technologies Limited ** ** ** ** KPIT Technologies Limited owns all the rights to this work. This ** ** work shall not be copied, reproduced, used, modified or its information ** ** disclosed without the prior written authorization of KPIT Technologies ** ** Limited. ** ** ** ** SRC-MODULE: WdgCallout.h ** ** ** ** TARGET : ** ** ** ** PRODUCT : AUTOSAR Application ** ** ** ** PURPOSE : Stub file ** ** ** ** PLATFORM DEPENDANT [yes/no]: no ** ** ** ** TO BE CHANGED BY USER [yes/no]: no ** ** ** *******************************************************************************/ /******************************************************************************* ** Revision History ** ******************************************************************************** ** Revision Date By Description ** ******************************************************************************** ** 1.2.0 19-Aug-2022 Tanmay S Test logic and runnable update ** ** 1.1.1 07-Feb-2022 Ilayaraja P Memory sections updated, ** ** coding guideline updated ** ** 1.1.0 22-Sep-2020 ManjunathB Updated for External Watchdog ** ** 1.0.0 16-Nov-2019 KPIT Initial Version ** *******************************************************************************/ #ifndef WDGCALLOUT_H #define WDGCALLOUT_H /******************************************************************************* ** Include Section ** *******************************************************************************/ #include "Compiler.h" #include "Std_Types.h" #include "WdgIf.h" #include "ExternalWatchdog.h" /******************************************************************************* ** Macros ** *******************************************************************************/ #define Wdg_SetTriggerCondition(Timeout) Cdd_SetExtWdgTriggerCondition(Timeout) #define Wdg_SetMode(WdgMode) Cdd_SetExtWdgMode(WdgMode) #define WdgM_Zero 0u #define WdgM_One 1u #define WdgM_Five 5u #define WdgM_Twenty 20u #define WdgM_Forty 40u #define WdgM_Fifty 50u #define WdgM_Eighty 80u #define Wdg_ZERO 0 #define Wdg_ONE 1 #define Wdg_DELAY_ONE 28 #define Wdg_DELAY_TWO 29 #define Wdg_DELAY_THREE 240 #define Wdg_DELAY_FOUR 1500 #define Wdg_DELAY_FIVE 180000 /******************************************************************************* ** Global Data ** *******************************************************************************/ #define watchDogApplication_START_SEC_VAR_INIT_16 #include "watchDogApplication_MemMap.h" extern uint16 Cdd_WdgM_MainFncCnt_FIVE; extern uint16 Cdd_WdgM_MainFncCnt_TWENTY; extern uint16 Cdd_WdgM_MainFncCnt_FORTY; extern uint16 Cdd_WdgM_MainFncCnt_FIFTY; extern uint16 Cdd_WdgM_MainFncCnt_EIGHTY; extern uint16 Cdd_WdgM_AliveIndications_rpCddLed20ms; extern uint16 Cdd_WdgM_AliveIndications_rpCddSpi1ms; extern uint16 Cdd_WdgM_AliveIndications_rpIoHwAbUser10ms; extern uint16 Cdd_WdgM_AliveIndications_rpIoHwAbUser5ms; extern uint16 Cdd_WdgM_AliveIndications_rpSysMon10ms; extern uint16 Cdd_WdgM_AliveIndications_BswM_MainFunction; extern uint16 Cdd_WdgM_AliveIndications_ComM_MainFunction; extern uint16 Cdd_WdgM_AliveIndications_Com_MainFunctionTx; extern uint16 Cdd_WdgM_AliveIndications_Com_MainFunctionRx; extern uint16 Cdd_WdgM_AliveIndications_WdgM_MainFunction; extern uint16 Cdd_WdgM_AliveIndications_rpCddMlc1ms; extern uint16 Cdd_WdgM_AliveIndications_rpCddMlc10ms; extern uint16 Cdd_WdgM_AliveIndications_rpCddSwi10ms; extern uint16 Cdd_WdgM_AliveIndications_rpCddBoostCycle20ms; extern uint16 AliveIndications_rpCddLed20ms; extern uint16 AliveIndications_rpCddSpi1ms; extern uint16 AliveIndications_rpIoHwAbUser10ms; extern uint16 AliveIndications_rpIoHwAbUser5ms; extern uint16 AliveIndications_rpSysMon10ms; extern uint16 AliveIndications_BswM_MainFunction; extern uint16 AliveIndications_ComM_MainFunction; extern uint16 AliveIndications_Com_MainFunctionTx; extern uint16 AliveIndications_Com_MainFunctionRx; extern uint16 AliveIndications_WdgM_MainFunction; extern uint16 AliveIndications_rpCddMlc1ms; extern uint16 AliveIndications_rpCddMlc10ms; extern uint16 AliveIndications_rpCddSwi10ms; extern uint16 AliveIndications_rpCddBoostCycle20ms; #define watchDogApplication_STOP_SEC_VAR_INIT_16 #include "watchDogApplication_MemMap.h" /******************************************************************************* ** Function Prototypes ** *******************************************************************************/ #define CDD_START_SEC_VAR_INIT_8 #include "MemMap.h" extern volatile uint8 Cdd_GucWdgMInitialised; extern volatile uint8 Cdd_GSucBswModuleInitialiseCntr; extern uint8 Cdd_NvMWriteAllInitiated; #define CDD_STOP_SEC_VAR_INIT_8 #include "MemMap.h" #define CDD_START_SEC_CODE #include "MemMap.h" extern void Cdd_StartWatchdogInWdwMode(void); extern void Cdd_SetExtWdgTriggerCondition(uint16 timeout); extern Std_ReturnType Cdd_SetExtWdgMode(WdgIf_ModeType Mode); extern void Cdd_ServiceExternalWdg(void); #define CDD_STOP_SEC_CODE #include "MemMap.h" #define WRAPPER_START_SEC_CODE #include "MemMap.h" extern void WdgM_MainFunction(void); extern void Com_MainFunctionRx(void); extern void Com_MainFunctionTx(void); extern void BswM_MainFunction_Wrapper(void); extern void ComM_MainFunction_0_Wrapper(void); extern void Com_MainFunctionTx_Wrapper(void); extern void Com_MainFunctionRx_Wrapper(void); extern void WdgM_MainFunction_Wrapper(void); #define WRAPPER_STOP_SEC_CODE #include "MemMap.h" extern uint8 Cdd_GucSwitchToTimeout; #endif /******************************************************************************* ** End of File ** *******************************************************************************/