example clean up

This commit is contained in:
hathach
2019-07-26 20:27:06 +07:00
parent 77d3124a70
commit d79a209aef
7 changed files with 75 additions and 27 deletions

View File

@@ -24,6 +24,7 @@
*/
#include "tusb.h"
#include "usb_descriptors.h"
/* A combination of interfaces must have a unique product id, since PC will save device driver after the first plug.
* Same VID/PID with different interface e.g MSC (first), then CDC (later) will possibly cause system error on PC.
@@ -79,13 +80,7 @@ uint8_t const * tud_descriptor_device_cb(void)
//--------------------------------------------------------------------+
// HID Report Descriptor
//--------------------------------------------------------------------+
#if CFG_TUD_HID
enum
{
REPORT_ID_KEYBOARD = 1,
REPORT_ID_MOUSE
};
uint8_t const desc_hid_report[] =
{