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
9e80d71c
Commit
9e80d71c
authored
9 years ago
by
Cristian Maglie
Browse files
Options
Downloads
Plain Diff
Merge branch 'genuino'
parents
32741f25
8ac61f5b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
boards.txt
+24
-2
24 additions, 2 deletions
boards.txt
bootloaders/zero/drivers/cdc_enumerate.c
+6
-0
6 additions, 0 deletions
bootloaders/zero/drivers/cdc_enumerate.c
bootloaders/zero/samd21_sam_ba_genuino.bin
+0
-0
0 additions, 0 deletions
bootloaders/zero/samd21_sam_ba_genuino.bin
with
30 additions
and
2 deletions
boards.txt
+
24
−
2
View file @
9e80d71c
...
...
@@ -14,9 +14,12 @@
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
arduino_zero_edbg.name=Arduino Zero (Programming Port)
# Arduino/Genuino Zero (Prorgamming Port)
# ---------------------------------------
arduino_zero_edbg.name=Arduino/Genuino Zero (Programming Port)
arduino_zero_edbg.vid.0=0x03eb
arduino_zero_edbg.pid.0=0x2157
arduino_zero_edbg.upload.tool=openocd
arduino_zero_edbg.upload.protocol=sam-ba
arduino_zero_edbg.upload.maximum_size=262144
...
...
@@ -39,11 +42,30 @@ arduino_zero_edbg.build.pid=0x804d
arduino_zero_edbg.bootloader.tool=openocd
arduino_zero_edbg.bootloader.file=zero/samd21_sam_ba.bin
arduino_zero_native.name=Arduino Zero (Native USB Port)
# Arduino/Genuino Zero (Native USB Port)
# ---------------------------------------
arduino_zero_native.name=Arduino/Genuino Zero (Native USB Port)
arduino_zero_native.vid.0=0x2341
arduino_zero_native.pid.0=0x804d
arduino_zero_native.vid.1=0x2341
arduino_zero_native.pid.1=0x004d
arduino_zero_native.vid.2=0x2341
arduino_zero_native.pid.2=0x824d
# If the board is a 2341:824d use 2341:824d for build and set other parameters as well
arduino_zero_native.vid.2.build.vid=0x2341
arduino_zero_native.vid.2.build.pid=0x824d
arduino_zero_native.vid.2.build.usb_product="Genuino Zero"
arduino_zero_native.vid.2.bootloader.file=zero/samd21_sam_ba_genuino.bin
arduino_zero_native.vid.3=0x2341
arduino_zero_native.pid.3=0x024d
# If the board is a 2341:024d use 2341:824d for build and set other parameters as well
arduino_zero_native.vid.3.build.vid=0x2341
arduino_zero_native.vid.3.build.pid=0x824d
arduino_zero_native.vid.3.build.usb_product="Genuino Zero"
arduino_zero_native.vid.3.bootloader.file=zero/samd21_sam_ba_genuino.bin
arduino_zero_native.upload.tool=bossac
arduino_zero_native.upload.protocol=sam-ba
arduino_zero_native.upload.maximum_size=262144
...
...
This diff is collapsed.
Click to expand it.
bootloaders/zero/drivers/cdc_enumerate.c
+
6
−
0
View file @
9e80d71c
...
...
@@ -32,6 +32,7 @@
#include
<compiler.h>
#include
<string.h>
//#define GENUINO_ZERO_PID
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
...
...
@@ -52,8 +53,13 @@ const char devDescriptor[] = {
0x40
,
// bMaxPacketSize0
0x41
,
// idVendorL
0x23
,
//
#if defined(GENUINO_ZERO_PID)
0x4D
,
// idProductL
0x02
,
//
#else
0x4D
,
// idProductL
0x00
,
//
#endif
0x10
,
// bcdDeviceL
0x01
,
//
0x00
,
// iManufacturer // 0x01
...
...
This diff is collapsed.
Click to expand it.
bootloaders/zero/samd21_sam_ba_genuino.bin
0 → 100644
+
0
−
0
View file @
9e80d71c
File added
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