summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
71d1d82)
This removes the function's argument.
}
/* See virtual_com.h for documentation of this function. */
}
/* See virtual_com.h for documentation of this function. */
-void USB_VcomDeinit(usb_device_handle deviceHandle)
+void
+USB_VcomDeinit (void)
- USB_DeviceStop(deviceHandle);
- USB_DeviceDeinit(deviceHandle);
+ if (s_cdcVcom.deviceHandle == NULL)
+ return;
+
+ USB_DeviceStop (s_cdcVcom.deviceHandle);
+ USB_DeviceDeinit (s_cdcVcom.deviceHandle);
s_cdcVcom.deviceHandle = NULL;
/* XXX: We are not stopping the USBOTG clock yet. */
s_cdcVcom.deviceHandle = NULL;
/* XXX: We are not stopping the USBOTG clock yet. */
*
* @return pointer to USB device handle.
*/
*
* @return pointer to USB device handle.
*/
-void USB_VcomDeinit(usb_device_handle deviceHandle);
+void USB_VcomDeinit (void);
#endif /* _USB_CDC_VCOM_H_ */
#endif /* _USB_CDC_VCOM_H_ */