common: Implement USB0 interrupt handler.
authorTilman Sauerbeck <tilman@code-monkey.de>
Tue, 18 Jun 2019 05:02:01 +0000 (07:02 +0200)
committerTilman Sauerbeck <tilman@code-monkey.de>
Sun, 7 Jul 2019 18:34:52 +0000 (20:34 +0200)
With this change, the device successfully registers as a USB ACM device
and doesn't hard fault if it's disconnected from USB.

src/common/virtual_com.c

index 22e0437bbe4a886d3cc0d75075ce6ccf0101175b..abf0a322e9b3625251b7d4e078c986ca217b81f8 100644 (file)
@@ -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);
+}