X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fcommon%2Fvirtual_com.h;h=84acdfa4b31d55a0edc24a6e21abda5889218289;hb=8a9287055902491a840a528de67a0d9d7e6d67da;hp=5c15353831ef89cabc34286b186492812499b239;hpb=7ce8e4b114b9633a21ff79c88614aa6dfe27959f;p=gps-watch.git diff --git a/src/common/virtual_com.h b/src/common/virtual_com.h index 5c15353..84acdfa 100644 --- a/src/common/virtual_com.h +++ b/src/common/virtual_com.h @@ -125,7 +125,7 @@ typedef struct _usb_cdc_acm_info * * @return pointer to USB device handle. */ -usb_device_handle USB_VcomInit(void); +usb_device_handle USB_VcomInit (uint16_t vid, uint16_t pid); /*! * @brief Application initialization function. @@ -134,30 +134,6 @@ usb_device_handle USB_VcomInit(void); * * @return pointer to USB device handle. */ -void USB_VcomDeinit(usb_device_handle deviceHandle); - -/*! - * @brief USB recive data from host using a blocking method. - * - * This function recives data from 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 A USB error code or kStatus_USB_Success. - */ -status_t USB_VcomReadBlocking(usb_device_handle baseAddr, uint8_t *buf, size_t count); - -/*! - * @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); +void USB_VcomDeinit (void); #endif /* _USB_CDC_VCOM_H_ */