Skip to content

Commit f5282f2

Browse files
author
Phil Manofsky
committed
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
1 parent afaea11 commit f5282f2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,14 @@ extern const PinDescription g_APinDescription[] ;
209209
#include "watchdog.h"
210210

211211
// USB Device
212+
#ifndef USB_VID
212213
#define USB_VID 0x2341 // arduino LLC vid
214+
#endif
215+
213216
#define USB_PID_LEONARDO 0x0034
214217
#define USB_PID_MICRO 0x0035
215218
#define USB_PID_DUE 0x003E
219+
216220
#include "USB/USBDesc.h"
217221
#include "USB/USBCore.h"
218222
#include "USB/USBAPI.h"

0 commit comments

Comments
 (0)