X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fcommon%2Fvirtual_com.c;h=cc388c704778aa037805d3fb01ffd56428a7f6e9;hb=22de17136c8c5692e83d5d15ce09528d9afd3e13;hp=2427f9369564239c6fc83dbb0b0ebb30faba46ff;hpb=08e2e672414121f839ed0519c2e322d6a562e1c5;p=gps-watch.git diff --git a/src/common/virtual_com.c b/src/common/virtual_com.c index 2427f93..cc388c7 100644 --- a/src/common/virtual_com.c +++ b/src/common/virtual_com.c @@ -59,6 +59,7 @@ /* Provided by users. */ extern void USB_DeviceClockInit(void); extern void USB_DeviceIsrEnable(void); +extern void USB_DeviceIsrDisable(void); /******************************************************************************* * Definitions ******************************************************************************/ @@ -669,6 +670,8 @@ USB_VcomDeinit (void) USB_DeviceDeinit (s_cdcVcom.deviceHandle); s_cdcVcom.deviceHandle = NULL; + USB_DeviceIsrDisable(); + /* XXX: We are not stopping the USBOTG clock yet. */ }