usbd_gs_can: USBD_GS_CAN_Transmit(): mark as static

This commit is contained in:
Marc Kleine-Budde 2022-11-17 22:52:12 +01:00 committed by Marc Kleine-Budde
parent 5b9c788ac6
commit fa7b91bcc5
2 changed files with 1 additions and 2 deletions

View File

@ -100,4 +100,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);

View File

@ -644,7 +644,7 @@ bool USBD_GS_CAN_TxReady(USBD_HandleTypeDef *pdev)
return result;
}
uint8_t USBD_GS_CAN_Transmit(USBD_HandleTypeDef *pdev, uint8_t *buf, uint16_t len)
static uint8_t USBD_GS_CAN_Transmit(USBD_HandleTypeDef *pdev, uint8_t *buf, uint16_t len)
{
USBD_GS_CAN_HandleTypeDef *hcan = (USBD_GS_CAN_HandleTypeDef*)pdev->pClassData;
if (hcan->TxState == 0 && (false == is_usb_suspend_cb)) {