Skip to content
Snippets Groups Projects
Commit a5083011 authored by Cristian Maglie's avatar Cristian Maglie Committed by Cristian Maglie
Browse files

Fixed USB-PID for zero

parent 6333d0c4
No related branches found
No related tags found
No related merge requests found
......@@ -17,8 +17,8 @@ arduino_zero_edbg.build.ldscript=linker_scripts/gcc/flash_with_bootloader.ld
arduino_zero_edbg.build.openocdscript=openocd_scripts/arduino_zero.cfg
arduino_zero_edbg.build.variant=arduino_zero
arduino_zero_edbg.build.variant_system_lib=
arduino_zero_edbg.build.vid=0x03eb
arduino_zero_edbg.build.pid=0x2111
arduino_zero_edbg.build.vid=0x2341
arduino_zero_edbg.build.pid=0x004d
arduino_zero_edbg.bootloader.tool=openocd
arduino_zero_edbg.bootloader.file=zero/Release/Exe/samd21_sam_ba.bin
......
......@@ -32,21 +32,8 @@
//==================================================================
#define USB_PID_LEONARDO 0x0034
#define USB_PID_MICRO 0x0035
#define USB_PID_DUE 0x003E
#if (defined CDC_ENABLED) && defined(HID_ENABLED)
//#define USB_PID_ZERO 0x004B // CDC and HID
#define USB_PID_ZERO 0x003B // CDC only
#else
#if (defined CDC_ENABLED)
#define USB_PID_ZERO 0x003B // CDC only usbserial.name
#else
#define USB_PID_ZERO 0x0045 // HID only
#endif
#endif
#define USB_PID_ZERO 0x004D
// USB Device
#define USB_VID 0x2341 // arduino LLC vid
......@@ -68,6 +55,8 @@ const uint16_t STRING_LANGUAGE[2] = {
// Use a hardcoded product name if none is provided
#if USB_PID == USB_PID_DUE
#define USB_PRODUCT "Arduino Due"
#elif USB_PID == USB_PID_ZERO
#define USB_PRODUCT "Arduino Zero"
#else
#define USB_PRODUCT "USB IO Board"
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment