From: Tilman Sauerbeck Date: Tue, 18 Jun 2019 05:02:01 +0000 (+0200) Subject: common: Implement USB0 interrupt handler. X-Git-Url: http://git.code-monkey.de/?p=gps-watch.git;a=commitdiff_plain;h=2cc01363b3fbb2e6b9c993aec1ad11c7f340cbf9 common: Implement USB0 interrupt handler. With this change, the device successfully registers as a USB ACM device and doesn't hard fault if it's disconnected from USB. --- diff --git a/src/common/virtual_com.c b/src/common/virtual_com.c index 22e0437..abf0a32 100644 --- a/src/common/virtual_com.c +++ b/src/common/virtual_com.c @@ -684,3 +684,9 @@ void USB_VcomDeinit(usb_device_handle deviceHandle) /* enable USB IP clock,user code. */ #endif /* USB_DEVICE_CONFIG_LPCIP3511HS */ } + +void +USB0_IRQHandler (void) +{ + USB_DeviceKhciIsrFunction (s_cdcVcom.deviceHandle); +}