}
}
- rpp_sci_printf("Messages transmitted: %d/100\r\n", messagesTransmitted);
- rpp_sci_printf("Messages received: %d/100\r\n", messagesReceived);
- rpp_sci_printf("TX timeouts: %d\r\n", txTimeOutCnt);
- rpp_sci_printf("RX timeouts: %d\r\n", rxTimeOutCnt);
- rpp_sci_printf("Src TX error counter: %d\r\n", canSrc->EERC & 0xFFU);
- rpp_sci_printf("Src RX error counter: %d\r\n", (canSrc->EERC & 0xFF00U) >> 8);
- rpp_sci_printf("Dst TX error counter: %d\r\n", canDst->EERC & 0xFFU);
- rpp_sci_printf("Dst RX error counter: %d\r\n", (canDst->EERC & 0xFF00U) >> 8);
- canPrintStatus(can_src, canSendError);
- canPrintStatus(can_dst, canRecError);
-
- canDisableErrorNotification(canDst);
- canDisableErrorNotification(canSrc);
- vSemaphoreDelete(canMsgReceived);
- vSemaphoreDelete(canMsgSent);
- return 0;
-}
+ rpp_sci_printf("Messages transmitted: %d/100\r\n", messagesTransmitted);
+ rpp_sci_printf("Messages received: %d/100\r\n", messagesReceived);
+ rpp_sci_printf("TX timeouts: %d\r\n", txTimeOutCnt);
+ rpp_sci_printf("RX timeouts: %d\r\n", rxTimeOutCnt);
+ rpp_sci_printf("Src TX error counter: %d\r\n", canSrc->EERC & 0xFFU);
+ rpp_sci_printf("Src RX error counter: %d\r\n", (canSrc->EERC & 0xFF00U) >> 8);
+ rpp_sci_printf("Dst TX error counter: %d\r\n", canDst->EERC & 0xFFU);
+ rpp_sci_printf("Dst RX error counter: %d\r\n", (canDst->EERC & 0xFF00U) >> 8);
+ canPrintStatus(can_src, canSendError);
+ canPrintStatus(can_dst, canRecError);
+
+ canDisableErrorNotification(canDst);
+ canDisableErrorNotification(canSrc);
+ vSemaphoreDelete(canMsgReceived);
+ vSemaphoreDelete(canMsgSent);
+ return 0;
+ }
}