USBD_GS_CAN_GetProtocolVersion(): remove unused function

Signed-off-by: Marc Kleine-Budde <mkl@blackshift.org>
This commit is contained in:
Marc Kleine-Budde 2022-08-28 00:27:52 +02:00
parent c105ca4847
commit 7860fef8fd
2 changed files with 0 additions and 11 deletions

View File

@ -75,4 +75,3 @@ bool USBD_GS_CAN_CustomInterfaceRequest(USBD_HandleTypeDef *pdev, USBD_SetupReqT
bool USBD_GS_CAN_DfuDetachRequested(USBD_HandleTypeDef *pdev);
uint8_t USBD_GS_CAN_SendFrame(USBD_HandleTypeDef *pdev, struct gs_host_frame *frame);
uint8_t USBD_GS_CAN_Transmit(USBD_HandleTypeDef *pdev, uint8_t *buf, uint16_t len);
uint8_t USBD_GS_CAN_GetProtocolVersion(USBD_HandleTypeDef *pdev);

View File

@ -664,16 +664,6 @@ uint8_t USBD_GS_CAN_Transmit(USBD_HandleTypeDef *pdev, uint8_t *buf, uint16_t le
}
}
uint8_t USBD_GS_CAN_GetProtocolVersion(USBD_HandleTypeDef *pdev)
{
USBD_GS_CAN_HandleTypeDef *hcan = (USBD_GS_CAN_HandleTypeDef*)pdev->pClassData;
if (hcan->timestamps_enabled) {
return 2;
} else {
return 1;
}
}
uint8_t USBD_GS_CAN_SendFrame(USBD_HandleTypeDef *pdev, struct gs_host_frame *frame)
{
uint8_t buf[CAN_DATA_MAX_PACKET_SIZE],*send_addr;