mirror of
https://github.com/candle-usb/candleLight_fw.git
synced 2025-01-28 06:02:52 +08:00
usbd_gs_can: USBD_GS_CAN_Transmit(): mark as static
This commit is contained in:
parent
5b9c788ac6
commit
fa7b91bcc5
@ -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);
|
||||
|
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user