From fa7b91bcc568fa06cbd2c512af24bcdbe24206c8 Mon Sep 17 00:00:00 2001 From: Marc Kleine-Budde Date: Thu, 17 Nov 2022 22:52:12 +0100 Subject: [PATCH] usbd_gs_can: USBD_GS_CAN_Transmit(): mark as static --- include/usbd_gs_can.h | 1 - src/usbd_gs_can.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/usbd_gs_can.h b/include/usbd_gs_can.h index a514073..217537f 100644 --- a/include/usbd_gs_can.h +++ b/include/usbd_gs_can.h @@ -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); diff --git a/src/usbd_gs_can.c b/src/usbd_gs_can.c index 4ca7170..1c95144 100644 --- a/src/usbd_gs_can.c +++ b/src/usbd_gs_can.c @@ -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)) {