From b6d0d95d0d1680467039ae6c841f7652e2699075 Mon Sep 17 00:00:00 2001 From: whowechina Date: Fri, 29 Nov 2024 19:03:21 +0800 Subject: [PATCH] Some cleanup --- firmware/src/usb_descriptors.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/firmware/src/usb_descriptors.c b/firmware/src/usb_descriptors.c index 47acd5f..3e167eb 100644 --- a/firmware/src/usb_descriptors.c +++ b/firmware/src/usb_descriptors.c @@ -27,18 +27,6 @@ #include "tusb.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. - * - * Auto ProductID layout's Bitmap: - * [MSB] HID | MSC | CDC [LSB] - */ -#define _PID_MAP(itf, n) ((CFG_TUD_##itf) << (n)) -#define USB_PID \ - (0x4000 | _PID_MAP(CDC, 0) | _PID_MAP(MSC, 1) | _PID_MAP(HID, 2) | \ - _PID_MAP(MIDI, 3) | _PID_MAP(VENDOR, 4)) - //--------------------------------------------------------------------+ // Device Descriptors //--------------------------------------------------------------------+