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
747476d7
Commit
747476d7
authored
9 years ago
by
Cristian Maglie
Browse files
Options
Downloads
Plain Diff
Merge branch 'zero-core' into zero-package
parents
c3e5bc75
50bc7867
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cores/arduino/USB/USBCore.cpp
+8
-24
8 additions, 24 deletions
cores/arduino/USB/USBCore.cpp
with
8 additions
and
24 deletions
cores/arduino/USB/USBCore.cpp
+
8
−
24
View file @
747476d7
...
...
@@ -30,45 +30,29 @@
//#define TRACE_CORE(x) x
#define TRACE_CORE(x)
//==================================================================
#define USB_PID_DUE 0x003E
#define USB_PID_ZERO 0x804D
// USB Device
#define USB_VID 0x2341 // arduino LLC vid
#undef USB_PID
#define USB_PID USB_PID_ZERO
//==================================================================
static
char
isRemoteWakeUpEnabled
=
0
;
static
char
isEndpointHalt
=
0
;
const
uint16_t
STRING_LANGUAGE
[
2
]
=
{
(
3
<<
8
)
|
(
2
+
2
),
0x0409
// English
};
#ifndef USB_PRODUCT
// 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
// If no product is provided, use USB IO Board
#define USB_PRODUCT "USB IO Board"
#endif
const
uint8_t
STRING_PRODUCT
[]
=
USB_PRODUCT
;
#if USB_VID == 0x2341
#define USB_MANUFACTURER "Arduino LLC"
# if defined(USB_MANUFACTURER)
# undef USB_MANUFACTURER
# endif
# define USB_MANUFACTURER "Arduino LLC"
#elif !defined(USB_MANUFACTURER)
// Fall through to unknown if no manufacturer name was provided in a macro
#define USB_MANUFACTURER "Unknown"
// Fall through to unknown if no manufacturer name was provided in a macro
#
define USB_MANUFACTURER "Unknown"
#endif
const
uint8_t
STRING_MANUFACTURER
[
12
]
=
USB_MANUFACTURER
;
...
...
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