]> rtime.felk.cvut.cz Git - arc.git/blobdiff - communication/PduR/PduR_CanIf.c
Starting 'pdur2' branch with copied content from remote repository.
[arc.git] / communication / PduR / PduR_CanIf.c
index 513aa64a2c559029dbc7d11a534bd80fc0d040a3..cd596c28d023c2e1a83b3c55480ffd02e6a12850 100644 (file)
  * -------------------------------- Arctic Core ------------------------------*/\r
 \r
 \r
-\r
-\r
-\r
-\r
 #include "PduR.h"\r
 \r
-#if (PDUR_ZERO_COST_OPERATION == STD_OFF)\r
-\r
-#include "Det.h"\r
-#include "debug.h"\r
-\r
-void PduR_CanIfRxIndication(PduIdType CanRxPduId,const uint8* CanSduPtr) {\r
-#if (PDUR_CANIF_SUPPORT == STD_ON)\r
-       PduR_DevCheck(CanRxPduId,CanSduPtr,0x0e);\r
-\r
-       DEBUG(DEBUG_LOW,"----------------------\n");\r
-       DEBUG(DEBUG_LOW,"PduR_CanIfRxIndication: received indication with id %d and data %d\n", CanRxPduId, *CanSduPtr);\r
+#if PDUR_ZERO_COST_OPERATION == STD_OFF\r
 \r
-       PduR_LoIfRxIndication(CanRxPduId, CanSduPtr);\r
-\r
-       DEBUG(DEBUG_LOW,"----------------------\n");\r
-#endif\r
+void PduR_CanIfRxIndication(PduIdType CanRxPduId,const PduInfoType* PduInfoPtr) {\r
+       PduR_ARC_RxIndication(CanRxPduId, PduInfoPtr, 0x01);\r
 }\r
 \r
 void PduR_CanIfTxConfirmation(PduIdType CanTxPduId) {\r
-#if (PDUR_CANIF_SUPPORT == STD_ON)\r
-       PduR_DevCheck(CanTxPduId,1,0x0f);\r
-\r
-       DEBUG(DEBUG_LOW,"----------------------\n");\r
-       DEBUG(DEBUG_LOW,"PduR_CanIfTxConfirmation: received confirmation with id %d\n", CanTxPduId);\r
-\r
-       PduR_LoIfTxConfirmation(CanTxPduId);\r
-\r
-       DEBUG(DEBUG_LOW,"----------------------\n");\r
-#endif\r
+       uint8 dummy = 0;\r
+       PduR_ARC_TxConfirmation(CanTxPduId,dummy,0x02);\r
 }\r
 \r
 #endif\r