Skip to content

Commit 18250ae

Browse files
author
Phil Manofsky
committed
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"
1 parent 4be3e49 commit 18250ae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hardware/arduino/sam/cores/arduino/Arduino.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,12 @@ extern const PinDescription g_APinDescription[] ;
210210

211211
// USB Device
212212
#ifndef USB_VID
213-
#define USB_VID 0x2341 // arduino LLC vid
213+
#define USB_VID 0x2341 // arduino LLC vid
214214
#endif
215215

216-
#define USB_PID_LEONARDO 0x0034
217-
#define USB_PID_MICRO 0x0035
218-
#define USB_PID_DUE 0x003E
216+
#ifndef USB_PID
217+
#define USB_PID 0x003E // arduino Due pid
218+
#endif
219219

220220
#include "USB/USBDesc.h"
221221
#include "USB/USBCore.h"

0 commit comments

Comments
 (0)