From e0f8b131e63b9449a95da4e821812f0db992a3fc Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Thu, 4 Jul 2019 06:53:24 +0200 Subject: [PATCH] common: Remove unused function USB_VcomWriteBlocking(). --- src/common/virtual_com.c | 13 ------------- src/common/virtual_com.h | 12 ------------ 2 files changed, 25 deletions(-) diff --git a/src/common/virtual_com.c b/src/common/virtual_com.c index 454e103..804c91a 100644 --- a/src/common/virtual_com.c +++ b/src/common/virtual_com.c @@ -600,19 +600,6 @@ usb_status_t USB_DeviceConfigureEndpointStatus(usb_device_handle handle, uint8_t } } -/* See virtual_com.h for documentation of this function. */ -void USB_VcomWriteBlocking(usb_device_handle baseAddr, const uint8_t *buf, size_t count) -{ - while ((s_cdcVcom.attach != 1) || (s_cdcVcom.startTransactions != 1)) - { - }; - USB_DeviceSendRequest((usb_device_handle)baseAddr, USB_CDC_VCOM_BULK_IN_ENDPOINT, (uint8_t *)buf, count); - while (!s_sendComplete) - { - }; - s_sendComplete = 0; -} - static ssize_t flush_tx_buffer (void *user_data, void *vbuf, size_t bufsiz, size_t count) { diff --git a/src/common/virtual_com.h b/src/common/virtual_com.h index 1b512ad..895b4c3 100644 --- a/src/common/virtual_com.h +++ b/src/common/virtual_com.h @@ -136,16 +136,4 @@ usb_device_handle USB_VcomInit(void); */ void USB_VcomDeinit(usb_device_handle deviceHandle); -/*! - * @brief USB send data to host using a blocking method. - * - * This function sends data to host by usb cdc protocol - * @param baseAddr pointer to USB device handle. - * @param buf pointer to the data. - * @param count size of the transfer. - * - * @return None. - */ -void USB_VcomWriteBlocking(usb_device_handle baseAddr, const uint8_t *buf, size_t count); - #endif /* _USB_CDC_VCOM_H_ */ -- 2.30.2