@@ -40,7 +40,7 @@ arduino_zero_edbg.build.usb_product="Arduino Zero"
40
40
arduino_zero_edbg.build.usb_manufacturer="Arduino LLC"
41
41
arduino_zero_edbg.build.board=SAMD_ZERO
42
42
arduino_zero_edbg.build.core=arduino
43
- arduino_zero_edbg.build.extra_flags=-D__SAMD21G18A__ {build.usb_flags}
43
+ arduino_zero_edbg.build.extra_flags=-D__SAMD21G18A__ -DUSBCON {build.usb_flags}
44
44
arduino_zero_edbg.build.ldscript=linker_scripts/gcc/flash_with_bootloader.ld
45
45
arduino_zero_edbg.build.openocdscript=openocd_scripts/arduino_zero.cfg
46
46
arduino_zero_edbg.build.variant=arduino_zero
@@ -149,6 +149,11 @@ mkr1000.bootloader.tool=openocd
149
149
mkr1000.bootloader.tool.default=openocd
150
150
mkr1000.bootloader.file=mkr1000/samd21_sam_ba_arduino_mkr1000.bin
151
151
152
+ mkr1000.menu.usbstack.enabled=Enabled
153
+ mkr1000.menu.usbstack.enabled.build.flags.usbstack=-DUSBCON
154
+ mkr1000.menu.usbstack.disabled=Disabled
155
+ mkr1000.menu.usbstack.disabled.build.flags.usbstack=-CDC_DISABLED
156
+
152
157
# Arduino MKRZero
153
158
# ---------------
154
159
mkrzero.name=Arduino MKRZERO
@@ -187,6 +192,11 @@ mkrzero.bootloader.tool=openocd
187
192
mkrzero.bootloader.tool.default=openocd
188
193
mkrzero.bootloader.file=mkrzero/samd21_sam_ba_arduino_mkrzero.bin
189
194
195
+ mkrzero.menu.usbstack.enabled=Enabled
196
+ mkrzero.menu.usbstack.enabled.build.flags.usbstack=-DUSBCON
197
+ mkrzero.menu.usbstack.disabled=Disabled
198
+ mkrzero.menu.usbstack.disabled.build.flags.usbstack=-CDC_DISABLED
199
+
190
200
# Arduino MKR WiFi 1010
191
201
# --------------------
192
202
mkrwifi1010.name=Arduino MKR WiFi 1010
@@ -226,6 +236,11 @@ mkrwifi1010.bootloader.tool.default=openocd
226
236
mkrwifi1010.bootloader.file=mkrwifi1010/samd21_sam_ba_arduino_mkrwifi1010.bin
227
237
#mkrwifi1010.arduinoota.extraflags=-d
228
238
239
+ mkrzero.menu.usbstack.enabled=Enabled
240
+ mkrzero.menu.usbstack.enabled.build.flags.usbstack=-DUSBCON
241
+ mkrzero.menu.usbstack.disabled=Disabled
242
+ mkrzero.menu.usbstack.disabled.build.flags.usbstack=-CDC_DISABLED
243
+
229
244
# Arduino NANO 33 IoT
230
245
# --------------------
231
246
nano_33_iot.name=Arduino NANO 33 IoT
@@ -264,6 +279,11 @@ nano_33_iot.bootloader.tool=openocd
264
279
nano_33_iot.bootloader.tool.default=openocd
265
280
nano_33_iot.bootloader.file=nano_33_iot/samd21_sam_ba_arduino_nano_33_iot.bin
266
281
282
+ nano_33_iot.menu.usbstack.enabled=Enabled
283
+ nano_33_iot.menu.usbstack.enabled.build.flags.usbstack=-DUSBCON
284
+ nano_33_iot.menu.usbstack.disabled=Disabled
285
+ nano_33_iot.menu.usbstack.disabled.build.flags.usbstack=-CDC_DISABLED
286
+
267
287
# Arduino MKR FOX 1200
268
288
# --------------------
269
289
mkrfox1200.name=Arduino MKR FOX 1200
@@ -302,6 +322,11 @@ mkrfox1200.bootloader.tool=openocd
302
322
mkrfox1200.bootloader.tool.default=openocd
303
323
mkrfox1200.bootloader.file=mkrfox1200/samd21_sam_ba_arduino_mkrfox1200.bin
304
324
325
+ mkrfox1200.menu.usbstack.enabled=Enabled
326
+ mkrfox1200.menu.usbstack.enabled.build.flags.usbstack=-DUSBCON
327
+ mkrfox1200.menu.usbstack.disabled=Disabled
328
+ mkrfox1200.menu.usbstack.disabled.build.flags.usbstack=-CDC_DISABLED
329
+
305
330
# Arduino MKR WAN 1300
306
331
# --------------------
307
332
mkrwan1300.name=Arduino MKR WAN 1300
@@ -340,6 +365,11 @@ mkrwan1300.bootloader.tool=openocd
340
365
mkrwan1300.bootloader.tool.default=openocd
341
366
mkrwan1300.bootloader.file=mkrwan1300/samd21_sam_ba_arduino_mkrwan1300.bin
342
367
368
+ mkrwan1300.menu.usbstack.enabled=Enabled
369
+ mkrwan1300.menu.usbstack.enabled.build.flags.usbstack=-DUSBCON
370
+ mkrwan1300.menu.usbstack.disabled=Disabled
371
+ mkrwan1300.menu.usbstack.disabled.build.flags.usbstack=-CDC_DISABLED
372
+
343
373
# Arduino MKR WAN 1310
344
374
# --------------------
345
375
mkrwan1310.name=Arduino MKR WAN 1310
@@ -378,6 +408,11 @@ mkrwan1310.bootloader.tool=openocd
378
408
mkrwan1310.bootloader.tool.default=openocd
379
409
mkrwan1310.bootloader.file=mkrwan1300/samd21_sam_ba_arduino_mkrwan1310.bin
380
410
411
+ mkrwan1310.menu.usbstack.enabled=Enabled
412
+ mkrwan1310.menu.usbstack.enabled.build.flags.usbstack=-DUSBCON
413
+ mkrwan1310.menu.usbstack.disabled=Disabled
414
+ mkrwan1310.menu.usbstack.disabled.build.flags.usbstack=-CDC_DISABLED
415
+
381
416
# Arduino MKR GSM 1400
382
417
# --------------------
383
418
mkrgsm1400.name=Arduino MKR GSM 1400
@@ -416,6 +451,11 @@ mkrgsm1400.bootloader.tool=openocd
416
451
mkrgsm1400.bootloader.tool.default=openocd
417
452
mkrgsm1400.bootloader.file=mkrgsm1400/samd21_sam_ba_arduino_mkrgsm1400.bin
418
453
454
+ mkrgsm1400.menu.usbstack.enabled=Enabled
455
+ mkrgsm1400.menu.usbstack.enabled.build.flags.usbstack=-DUSBCON
456
+ mkrgsm1400.menu.usbstack.disabled=Disabled
457
+ mkrgsm1400.menu.usbstack.disabled.build.flags.usbstack=-CDC_DISABLED
458
+
419
459
# Arduino MKR NB 1500
420
460
# --------------------
421
461
mkrnb1500.name=Arduino MKR NB 1500
@@ -454,6 +494,11 @@ mkrnb1500.bootloader.tool=openocd
454
494
mkrnb1500.bootloader.tool.default=openocd
455
495
mkrnb1500.bootloader.file=mkrnb1500/samd21_sam_ba_arduino_mkrnb1500.bin
456
496
497
+ mkrnb1500.menu.usbstack.enabled=Enabled
498
+ mkrnb1500.menu.usbstack.enabled.build.flags.usbstack=-DUSBCON
499
+ mkrnb1500.menu.usbstack.disabled=Disabled
500
+ mkrnb1500.menu.usbstack.disabled.build.flags.usbstack=-CDC_DISABLED
501
+
457
502
# Arduino MKR Vidor 4000
458
503
# --------------------
459
504
mkrvidor4000.name=Arduino MKR Vidor 4000
@@ -492,6 +537,11 @@ mkrvidor4000.bootloader.tool=openocd
492
537
mkrvidor4000.bootloader.tool.default=openocd
493
538
mkrvidor4000.bootloader.file=mkrvidor4000/samd21_sam_ba_arduino_mkrvidor4000.bin
494
539
540
+ mkrvidor4000.menu.usbstack.enabled=Enabled
541
+ mkrvidor4000.menu.usbstack.enabled.build.flags.usbstack=-DUSBCON
542
+ mkrvidor4000.menu.usbstack.disabled=Disabled
543
+ mkrvidor4000.menu.usbstack.disabled.build.flags.usbstack=-CDC_DISABLED
544
+
495
545
# Adafruit Circuit Playground M0
496
546
# ------------------------------
497
547
adafruit_circuitplayground_m0.name=Adafruit Circuit Playground Express
@@ -530,6 +580,11 @@ adafruit_circuitplayground_m0.bootloader.tool=openocd
530
580
adafruit_circuitplayground_m0.bootloader.tool.default=openocd
531
581
adafruit_circuitplayground_m0.bootloader.file=circuitplay/circuitplay_m0_samd21g18_sam_ba.bin
532
582
583
+ adafruit_circuitplayground_m0.menu.usbstack.enabled=Enabled
584
+ adafruit_circuitplayground_m0.menu.usbstack.enabled.build.flags.usbstack=-DUSBCON
585
+ adafruit_circuitplayground_m0.menu.usbstack.disabled=Disabled
586
+ adafruit_circuitplayground_m0.menu.usbstack.disabled.build.flags.usbstack=-CDC_DISABLED
587
+
533
588
# Arduino M0 PRO (with) bootloader - Programming port
534
589
# ---------------------------------------------------
535
590
mzero_pro_bl_dbg.name=Arduino M0 Pro (Programming Port)
@@ -550,7 +605,7 @@ mzero_pro_bl_dbg.build.f_cpu=48000000L
550
605
mzero_pro_bl_dbg.build.usb_product="Arduino M0 Pro"
551
606
mzero_pro_bl_dbg.build.board=SAM_ZERO
552
607
mzero_pro_bl_dbg.build.core=arduino
553
- mzero_pro_bl_dbg.build.extra_flags=-D__SAMD21G18A__ -mthumb {build.usb_flags}
608
+ mzero_pro_bl_dbg.build.extra_flags=-D__SAMD21G18A__ -mthumb -DUSBCON {build.usb_flags}
554
609
mzero_pro_bl_dbg.build.ldscript=linker_scripts/gcc/flash_with_bootloader.ld
555
610
mzero_pro_bl_dbg.build.openocdscript=openocd_scripts/arduino_zero.cfg
556
611
mzero_pro_bl_dbg.build.variant=arduino_mzero
@@ -617,6 +672,11 @@ mzero_pro_bl.bootloader.tool.default=openocd-withbootsize
617
672
mzero_pro_bl.bootloader.file=mzero/Bootloader_D21_M0_Pro_150427.hex
618
673
mzero_pro_bl.bootloader.low_fuses=0xff
619
674
675
+ mzero_pro_bl.menu.usbstack.enabled=Enabled
676
+ mzero_pro_bl.menu.usbstack.enabled.build.flags.usbstack=-DUSBCON
677
+ mzero_pro_bl.menu.usbstack.disabled=Disabled
678
+ mzero_pro_bl.menu.usbstack.disabled.build.flags.usbstack=-CDC_DISABLED
679
+
620
680
# Arduino M0 (with) Bootloader
621
681
# ----------------------------
622
682
mzero_bl.name=Arduino M0
@@ -667,6 +727,11 @@ mzero_bl.bootloader.tool.default=openocd-withbootsize
667
727
mzero_bl.bootloader.low_fuses=0xff
668
728
mzero_bl.bootloader.file=mzero/Bootloader_D21_M0_150515.hex
669
729
730
+ mzero_bl.menu.usbstack.enabled=Enabled
731
+ mzero_bl.menu.usbstack.enabled.build.flags.usbstack=-DUSBCON
732
+ mzero_bl.menu.usbstack.disabled=Disabled
733
+ mzero_bl.menu.usbstack.disabled.build.flags.usbstack=-CDC_DISABLED
734
+
670
735
# Arduino Tian (with) Bootloader
671
736
# ------------------------------
672
737
tian.name=Arduino Tian
@@ -710,6 +775,11 @@ tian.bootloader.low_fuses=0xff
710
775
tian.bootloader.file=sofia/Sofia_Tian_151118.hex
711
776
tian.drivers=SiliconLabs-CP2105/Silicon Labs VCP Driver.pkg
712
777
778
+ tian.menu.usbstack.enabled=Enabled
779
+ tian.menu.usbstack.enabled.build.flags.usbstack=-DUSBCON
780
+ tian.menu.usbstack.disabled=Disabled
781
+ tian.menu.usbstack.disabled.build.flags.usbstack=-CDC_DISABLED
782
+
713
783
# Arduino Tian Console port (not for upload)
714
784
# ------------------------------------------
715
785
tian_cons.name=Arduino Tian (MIPS Console port)
0 commit comments