/* This function will initialize node with the given handle */ void CAN001_Init(void) { /* Calling CANGLOBAL App Initialization */ CANGLOBAL_Init(); /* Node1 initialization */ CAN001_lNodeInit(&CAN001_Handle0); /* LMO1 Initialization */ (void)CAN001_ConfigMsgObj(&CAN001_Handle0,&CAN001_MessageHandle0_1,1U); /* LMO2 Initialization */ (void)CAN001_ConfigMsgObj(&CAN001_Handle0,&CAN001_MessageHandle0_2,2U); /* Enable receive interrupt */ EnableMOInterrupt(CAN001_Handle0,(uint32_t)CAN_MO_RECEIVE_INTERRUPT,2); }
/* This function will initialize node with the given handle */ void CAN001_Init(void) { DBG002_FUNCTION_ENTRY(DBG002_GID_CAN001,CAN001_FUNCTION_ENTRY); /* Calling CANGLOBAL App Initialization */ CANGLOBAL_Init(); /* Node2 initialization */ CAN001_lNodeInit(&CAN001_Handle0); /* LMO1 Initialization */ (void)CAN001_ConfigMsgObj(&CAN001_Handle0,&CAN001_MessageHandle0_1,1U); /* Enable receive interrupt */ EnableMOInterrupt(CAN001_Handle0,(uint32_t)CAN_MO_RECEIVE_INTERRUPT,1); /* LMO2 Initialization */ (void)CAN001_ConfigMsgObj(&CAN001_Handle0,&CAN001_MessageHandle0_2,2U); DBG002_FUNCTION_EXIT(DBG002_GID_CAN001,CAN001_FUNCTION_EXIT); }