Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Arduino Core for SAMD21 CPU
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
josc941e
Arduino Core for SAMD21 CPU
Commits
a5083011
Commit
a5083011
authored
10 years ago
by
Cristian Maglie
Committed by
Cristian Maglie
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fixed USB-PID for zero
parent
6333d0c4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
boards.txt
+2
-2
2 additions, 2 deletions
boards.txt
cores/arduino/USB/USBCore.cpp
+3
-14
3 additions, 14 deletions
cores/arduino/USB/USBCore.cpp
with
5 additions
and
16 deletions
boards.txt
+
2
−
2
View file @
a5083011
...
...
@@ -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=0x
03eb
arduino_zero_edbg.build.pid=0x
2111
arduino_zero_edbg.build.vid=0x
2341
arduino_zero_edbg.build.pid=0x
004d
arduino_zero_edbg.bootloader.tool=openocd
arduino_zero_edbg.bootloader.file=zero/Release/Exe/samd21_sam_ba.bin
...
...
This diff is collapsed.
Click to expand it.
cores/arduino/USB/USBCore.cpp
+
3
−
14
View file @
a5083011
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment