#include "main.h" #include "Gpt.h" #include "can_func.h" #define CAN_START_SEC_VAR_INIT_BOOLEAN #include "Can_MemMap.h" #define CAN_STOP_SEC_VAR_INIT_BOOLEAN #include "Can_MemMap.h" #define CAN_START_SEC_VAR_INIT_8 #include "Can_MemMap.h" static uint8 Ex_Can_PeriodTime = 0; #define CAN_STOP_SEC_VAR_INIT_8 #include "Can_MemMap.h" #define CAN_START_SEC_CODE #include "Can_MemMap.h" boolean CAN_LPduRxFunc(uint8 Hrh, Can_IdType CanId, uint8 CanDataLegth, const uint8* CanSduPtr) { //Autosar Stub return TRUE; } void CanIf_ErrorNotification (uint8 ControllerId,Can_ErrorType CanErrorType) { } void CanIf_ControllerErrorStatePassive (uint8 ControllerId,uint16 RxErrorCounter,uint16 TxErrorCounter) { } void Can1_ErrNotifyFunc (void) { } void Can1_HostMemNotify(void) { } void Can1_MemNotify(void) { } void Can1_CorrMemNotify(void) { } void Ex_Can_StimCallback(void) { static uint32 interruptCount = 0U; #if EN_CAN /* interrupt */ if (++interruptCount == (CAN_MAINFUNCTION_MODE_PERIOD * 1000)) { /* period task flag */ interruptCount = 0U; Ex_Can_PeriodTime = 1; } #endif }