Skip to content

Commit e1fdc36

Browse files
committed
Changes for all boards
1 parent e5fc960 commit e1fdc36

File tree

1 file changed

+72
-2
lines changed

1 file changed

+72
-2
lines changed

boards.txt

+72-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ arduino_zero_edbg.build.usb_product="Arduino Zero"
4040
arduino_zero_edbg.build.usb_manufacturer="Arduino LLC"
4141
arduino_zero_edbg.build.board=SAMD_ZERO
4242
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}
4444
arduino_zero_edbg.build.ldscript=linker_scripts/gcc/flash_with_bootloader.ld
4545
arduino_zero_edbg.build.openocdscript=openocd_scripts/arduino_zero.cfg
4646
arduino_zero_edbg.build.variant=arduino_zero
@@ -149,6 +149,11 @@ mkr1000.bootloader.tool=openocd
149149
mkr1000.bootloader.tool.default=openocd
150150
mkr1000.bootloader.file=mkr1000/samd21_sam_ba_arduino_mkr1000.bin
151151

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+
152157
# Arduino MKRZero
153158
# ---------------
154159
mkrzero.name=Arduino MKRZERO
@@ -187,6 +192,11 @@ mkrzero.bootloader.tool=openocd
187192
mkrzero.bootloader.tool.default=openocd
188193
mkrzero.bootloader.file=mkrzero/samd21_sam_ba_arduino_mkrzero.bin
189194

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+
190200
# Arduino MKR WiFi 1010
191201
# --------------------
192202
mkrwifi1010.name=Arduino MKR WiFi 1010
@@ -226,6 +236,11 @@ mkrwifi1010.bootloader.tool.default=openocd
226236
mkrwifi1010.bootloader.file=mkrwifi1010/samd21_sam_ba_arduino_mkrwifi1010.bin
227237
#mkrwifi1010.arduinoota.extraflags=-d
228238

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+
229244
# Arduino NANO 33 IoT
230245
# --------------------
231246
nano_33_iot.name=Arduino NANO 33 IoT
@@ -264,6 +279,11 @@ nano_33_iot.bootloader.tool=openocd
264279
nano_33_iot.bootloader.tool.default=openocd
265280
nano_33_iot.bootloader.file=nano_33_iot/samd21_sam_ba_arduino_nano_33_iot.bin
266281

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+
267287
# Arduino MKR FOX 1200
268288
# --------------------
269289
mkrfox1200.name=Arduino MKR FOX 1200
@@ -302,6 +322,11 @@ mkrfox1200.bootloader.tool=openocd
302322
mkrfox1200.bootloader.tool.default=openocd
303323
mkrfox1200.bootloader.file=mkrfox1200/samd21_sam_ba_arduino_mkrfox1200.bin
304324

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+
305330
# Arduino MKR WAN 1300
306331
# --------------------
307332
mkrwan1300.name=Arduino MKR WAN 1300
@@ -340,6 +365,11 @@ mkrwan1300.bootloader.tool=openocd
340365
mkrwan1300.bootloader.tool.default=openocd
341366
mkrwan1300.bootloader.file=mkrwan1300/samd21_sam_ba_arduino_mkrwan1300.bin
342367

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+
343373
# Arduino MKR WAN 1310
344374
# --------------------
345375
mkrwan1310.name=Arduino MKR WAN 1310
@@ -378,6 +408,11 @@ mkrwan1310.bootloader.tool=openocd
378408
mkrwan1310.bootloader.tool.default=openocd
379409
mkrwan1310.bootloader.file=mkrwan1300/samd21_sam_ba_arduino_mkrwan1310.bin
380410

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+
381416
# Arduino MKR GSM 1400
382417
# --------------------
383418
mkrgsm1400.name=Arduino MKR GSM 1400
@@ -416,6 +451,11 @@ mkrgsm1400.bootloader.tool=openocd
416451
mkrgsm1400.bootloader.tool.default=openocd
417452
mkrgsm1400.bootloader.file=mkrgsm1400/samd21_sam_ba_arduino_mkrgsm1400.bin
418453

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+
419459
# Arduino MKR NB 1500
420460
# --------------------
421461
mkrnb1500.name=Arduino MKR NB 1500
@@ -454,6 +494,11 @@ mkrnb1500.bootloader.tool=openocd
454494
mkrnb1500.bootloader.tool.default=openocd
455495
mkrnb1500.bootloader.file=mkrnb1500/samd21_sam_ba_arduino_mkrnb1500.bin
456496

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+
457502
# Arduino MKR Vidor 4000
458503
# --------------------
459504
mkrvidor4000.name=Arduino MKR Vidor 4000
@@ -492,6 +537,11 @@ mkrvidor4000.bootloader.tool=openocd
492537
mkrvidor4000.bootloader.tool.default=openocd
493538
mkrvidor4000.bootloader.file=mkrvidor4000/samd21_sam_ba_arduino_mkrvidor4000.bin
494539

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+
495545
# Adafruit Circuit Playground M0
496546
# ------------------------------
497547
adafruit_circuitplayground_m0.name=Adafruit Circuit Playground Express
@@ -530,6 +580,11 @@ adafruit_circuitplayground_m0.bootloader.tool=openocd
530580
adafruit_circuitplayground_m0.bootloader.tool.default=openocd
531581
adafruit_circuitplayground_m0.bootloader.file=circuitplay/circuitplay_m0_samd21g18_sam_ba.bin
532582

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+
533588
# Arduino M0 PRO (with) bootloader - Programming port
534589
# ---------------------------------------------------
535590
mzero_pro_bl_dbg.name=Arduino M0 Pro (Programming Port)
@@ -550,7 +605,7 @@ mzero_pro_bl_dbg.build.f_cpu=48000000L
550605
mzero_pro_bl_dbg.build.usb_product="Arduino M0 Pro"
551606
mzero_pro_bl_dbg.build.board=SAM_ZERO
552607
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}
554609
mzero_pro_bl_dbg.build.ldscript=linker_scripts/gcc/flash_with_bootloader.ld
555610
mzero_pro_bl_dbg.build.openocdscript=openocd_scripts/arduino_zero.cfg
556611
mzero_pro_bl_dbg.build.variant=arduino_mzero
@@ -617,6 +672,11 @@ mzero_pro_bl.bootloader.tool.default=openocd-withbootsize
617672
mzero_pro_bl.bootloader.file=mzero/Bootloader_D21_M0_Pro_150427.hex
618673
mzero_pro_bl.bootloader.low_fuses=0xff
619674

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+
620680
# Arduino M0 (with) Bootloader
621681
# ----------------------------
622682
mzero_bl.name=Arduino M0
@@ -667,6 +727,11 @@ mzero_bl.bootloader.tool.default=openocd-withbootsize
667727
mzero_bl.bootloader.low_fuses=0xff
668728
mzero_bl.bootloader.file=mzero/Bootloader_D21_M0_150515.hex
669729

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+
670735
# Arduino Tian (with) Bootloader
671736
# ------------------------------
672737
tian.name=Arduino Tian
@@ -710,6 +775,11 @@ tian.bootloader.low_fuses=0xff
710775
tian.bootloader.file=sofia/Sofia_Tian_151118.hex
711776
tian.drivers=SiliconLabs-CP2105/Silicon Labs VCP Driver.pkg
712777

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+
713783
# Arduino Tian Console port (not for upload)
714784
# ------------------------------------------
715785
tian_cons.name=Arduino Tian (MIPS Console port)

0 commit comments

Comments
 (0)