summaryrefslogtreecommitdiff
path: root/stmhal/usb.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-29 21:57:30 +0000
committerDamien George <damien.p.george@gmail.com>2014-03-29 21:57:30 +0000
commit64563e39b3b6456a50b3ad04a61809ebb7b61b4b (patch)
tree3caaf053d945342fb6d9d5aa97617432ee0f05cb /stmhal/usb.c
parentf4417a1f95eca0ef0a9446059e3ed070dd5e4b6f (diff)
stmhal: Add CDC+HID USB device.
The HID device must appear before the CDC in order for both to work at the same time. Whilst the code is working, it's not currently used.
Diffstat (limited to 'stmhal/usb.c')
-rw-r--r--stmhal/usb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/stmhal/usb.c b/stmhal/usb.c
index aa006b8b8..79f9b85f3 100644
--- a/stmhal/usb.c
+++ b/stmhal/usb.c
@@ -102,9 +102,7 @@ void usb_vcp_send_strn_cooked(const char *str, int len) {
void usb_hid_send_report(uint8_t *buf) {
#ifdef USE_DEVICE_MODE
- #if 0
- USBD_HID_SendReport(&USB_OTG_Core, buf, 4);
- #endif
+ USBD_HID_SendReport(&hUSBDDevice, buf, 4);
#endif
}