From: Tilman Sauerbeck Date: Mon, 8 Jul 2019 19:00:56 +0000 (+0200) Subject: common: Don't attempt to stop the USB clock in USB_VcomDeinit(). X-Git-Url: http://git.code-monkey.de/?a=commitdiff_plain;h=71d1d829ea38645690ab199d25ae091b6f6984c6;p=gps-watch.git common: Don't attempt to stop the USB clock in USB_VcomDeinit(). We don't implement that functionality yet. --- diff --git a/src/common/virtual_com.c b/src/common/virtual_com.c index 3707678..aa25cd7 100644 --- a/src/common/virtual_com.c +++ b/src/common/virtual_com.c @@ -665,20 +665,8 @@ void USB_VcomDeinit(usb_device_handle deviceHandle) USB_DeviceStop(deviceHandle); USB_DeviceDeinit(deviceHandle); s_cdcVcom.deviceHandle = NULL; -#if defined(USB_DEVICE_CONFIG_EHCI) && (USB_DEVICE_CONFIG_EHCI > 0) - USB_EhciPhyDeinit(CONTROLLER_ID); -#endif -#if defined(USB_DEVICE_CONFIG_KHCI) && (USB_DEVICE_CONFIG_KHCI > 0) - CLOCK_DisableUsbfs0Clock(); -#endif -#if defined(USB_DEVICE_CONFIG_LPCIP3511FS) && (USB_DEVICE_CONFIG_LPCIP3511FS > 0U) - /* enable USB IP clock, user code. */ - CLOCK_DisableClock(kCLOCK_Usbd0); -#endif /* USB_DEVICE_CONFIG_LPCIP3511FS */ - -#if defined(USB_DEVICE_CONFIG_LPCIP3511HS) && (USB_DEVICE_CONFIG_LPCIP3511HS > 0U) -/* enable USB IP clock,user code. */ -#endif /* USB_DEVICE_CONFIG_LPCIP3511HS */ + + /* XXX: We are not stopping the USBOTG clock yet. */ } void