projects
/
gps-watch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cec0c36
)
common: Implement USB0 interrupt handler.
author
Tilman Sauerbeck
<tilman@code-monkey.de>
Tue, 18 Jun 2019 05:02:01 +0000
(07:02 +0200)
committer
Tilman 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
patch
|
blob
|
history
diff --git
a/src/common/virtual_com.c
b/src/common/virtual_com.c
index 22e0437bbe4a886d3cc0d75075ce6ccf0101175b..abf0a322e9b3625251b7d4e078c986ca217b81f8 100644
(file)
--- 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);
+}