From f5282f2ce6ddec1d1aca492153debc5505843426 Mon Sep 17 00:00:00 2001 From: Phil Manofsky Date: Mon, 14 Mar 2016 23:09:26 -0400 Subject: [PATCH] allows use of "myboard.build.vid" in boards.txt allows people to create board that depends on sam core to use their own Vendor ID instead of Arduino's --- hardware/arduino/sam/cores/arduino/Arduino.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hardware/arduino/sam/cores/arduino/Arduino.h b/hardware/arduino/sam/cores/arduino/Arduino.h index 4fae76a2a..6194bcc2f 100644 --- a/hardware/arduino/sam/cores/arduino/Arduino.h +++ b/hardware/arduino/sam/cores/arduino/Arduino.h @@ -209,10 +209,14 @@ extern const PinDescription g_APinDescription[] ; #include "watchdog.h" // USB Device +#ifndef USB_VID #define USB_VID 0x2341 // arduino LLC vid +#endif + #define USB_PID_LEONARDO 0x0034 #define USB_PID_MICRO 0x0035 #define USB_PID_DUE 0x003E + #include "USB/USBDesc.h" #include "USB/USBCore.h" #include "USB/USBAPI.h"