From 64563e39b3b6456a50b3ad04a61809ebb7b61b4b Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 29 Mar 2014 21:57:30 +0000 Subject: 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. --- stmhal/usb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'stmhal/usb.c') 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 } -- cgit v1.2.3