machine/usb: set the vid and pid to valid values supplied by Adafruit and Arduino for boards that support USB CDC

Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
Ron Evans
2020-01-28 23:31:35 +01:00
committed by Ayke
parent fbb8efd24c
commit 0312f12696
11 changed files with 111 additions and 6 deletions
+1 -6
View File
@@ -395,12 +395,7 @@ func strToUTF16LEDescriptor(in string) []byte {
var (
// TODO: allow setting these
usb_STRING_LANGUAGE = [2]uint16{(3 << 8) | (2 + 2), 0x0409} // English
usb_STRING_PRODUCT = "Arduino Zero"
usb_STRING_MANUFACTURER = "Arduino"
usb_VID uint16 = 0x2341
usb_PID uint16 = 0x004d
usb_STRING_LANGUAGE = [2]uint16{(3 << 8) | (2 + 2), 0x0409} // English
)
const (