From 18250aec5758725b0bef54e1b06431cded3d8b60 Mon Sep 17 00:00:00 2001 From: Phil Manofsky Date: Mon, 14 Mar 2016 23:20:46 -0400 Subject: [PATCH] allows use of "myboard.build.pid" in boards.txt 3rd party boards that use sam core can have their own USB product ID that is defined in "boards.txt" --- hardware/arduino/sam/cores/arduino/Arduino.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hardware/arduino/sam/cores/arduino/Arduino.h b/hardware/arduino/sam/cores/arduino/Arduino.h index 6194bcc2f..015c11562 100644 --- a/hardware/arduino/sam/cores/arduino/Arduino.h +++ b/hardware/arduino/sam/cores/arduino/Arduino.h @@ -210,12 +210,12 @@ extern const PinDescription g_APinDescription[] ; // USB Device #ifndef USB_VID -#define USB_VID 0x2341 // arduino LLC vid +#define USB_VID 0x2341 // arduino LLC vid #endif -#define USB_PID_LEONARDO 0x0034 -#define USB_PID_MICRO 0x0035 -#define USB_PID_DUE 0x003E +#ifndef USB_PID +#define USB_PID 0x003E // arduino Due pid +#endif #include "USB/USBDesc.h" #include "USB/USBCore.h"