]> rtime.felk.cvut.cz Git - arc.git/blobdiff - communication/CanIf/CanIf.c
LED Blinker example made running for the RPP Board.
[arc.git] / communication / CanIf / CanIf.c
index 91992780b3946c5a56e2c93aad26d8c05498ed58..7f27d79299b517ec977af4baf2f8abea6c088db7 100644 (file)
@@ -463,7 +463,7 @@ Std_ReturnType CanIf_Transmit(PduIdType CanTxPduId,
 \r
   canPdu.length = PduInfoPtr->SduLength;\r
   canPdu.sdu = PduInfoPtr->SduDataPtr;\r
-  canPdu.swPduHandle = CanTxPduId;\r
+  canPdu.swPduHandle = CanTxPduId;             // e.g. ARC_PDUR_CANIF\r
 \r
   Can_ReturnType rVal = Can_Write(txEntry->CanIfCanTxPduHthRef->CanIfHthIdSymRef, &canPdu);\r
 \r
@@ -978,12 +978,6 @@ void CanIf_Arc_Error(uint8 Controller, Can_Arc_ErrorType Error)
 \r
   VALIDATE_NO_RV( channel < CANIF_CHANNEL_CNT, CANIF_ARCERROR_ID, CANIF_E_PARAM_CONTROLLER );\r
 \r
-  /* Same handling for Arc error as for BUS_OFF even if not in AR req.\r
-   * This because we do want same handling for upper layer for restart of channel\r
-   * According to figure 35 in canif spec this should be done in\r
-   * Can driver but it is better to do it here */\r
-  CanIf_SetControllerMode(channel, CANIF_CS_STOPPED);\r
-\r
   if (CanIf_ConfigPtr->DispatchConfig->CanIfErrorNotificaton != NULL)\r
   {\r
     CanIf_ConfigPtr->DispatchConfig->CanIfErrorNotificaton(Controller, Error);\r