Преглед на файлове

Fix Archim 2 build for PIO

Scott Lahteine преди 4 години
родител
ревизия
723d4d6f61
променени са 3 файла, в които са добавени 21 реда и са изтрити 2 реда
  1. 1
    1
      Marlin/Makefile
  2. 1
    1
      Marlin/src/pins/pins.h
  3. 19
    0
      platformio.ini

+ 1
- 1
Marlin/Makefile Целия файл

@@ -686,7 +686,7 @@ ifeq ($(HARDWARE_VARIANT), Teensy)
686 686
 
687 687
 else ifeq ($(HARDWARE_VARIANT), archim)
688 688
   CDEFS      += -DARDUINO_SAM_ARCHIM -DARDUINO_ARCH_SAM -D__SAM3X8E__ -DUSB_VID=0x27b1 -DUSB_PID=0x0001 -DUSBCON '-DUSB_MANUFACTURER="UltiMachine"' '-DUSB_PRODUCT="Archim"'
689
-  LIB_CXXSRC += variant.cpp IPAddress.cpp Reset.cpp RingBuffer.cpp Stream.cpp UARTClass.cpp  USARTClass.cpp abi.cpp new.cpp watchdog.cpp CDC.cpp PluggableUSB.cpp  USBCore.cpp
689
+  LIB_CXXSRC += variant.cpp IPAddress.cpp Reset.cpp RingBuffer.cpp Stream.cpp UARTClass.cpp  USARTClass.cpp abi.cpp new.cpp watchdog.cpp CDC.cpp PluggableUSB.cpp USBCore.cpp
690 690
   LIB_SRC    += cortex_handlers.c iar_calls_sam3.c syscalls_sam3.c dtostrf.c itoa.c
691 691
 
692 692
   ifeq ($(U8GLIB), 1)

+ 1
- 1
Marlin/src/pins/pins.h Целия файл

@@ -454,7 +454,7 @@
454 454
 #elif MB(ARCHIM1)
455 455
   #include "sam/pins_ARCHIM1.h"                 // SAM3X8E                                env:DUE env:DUE_debug
456 456
 #elif MB(ARCHIM2)
457
-  #include "sam/pins_ARCHIM2.h"                 // SAM3X8E                                env:DUE env:DUE_debug
457
+  #include "sam/pins_ARCHIM2.h"                 // SAM3X8E                                env:DUE_archim env:DUE_archim_debug
458 458
 #elif MB(ALLIGATOR)
459 459
   #include "sam/pins_ALLIGATOR_R2.h"            // SAM3X8E                                env:DUE env:DUE_debug
460 460
 #elif MB(ADSK)

+ 19
- 0
platformio.ini Целия файл

@@ -207,6 +207,25 @@ build_flags   = ${common.build_flags}
207 207
   -mpoke-function-name
208 208
 
209 209
 #
210
+# Archim SAM
211
+#
212
+[env:DUE_archim]
213
+platform      = atmelsam
214
+board         = due
215
+src_filter    = ${common.default_src_filter} +<src/HAL/DUE>
216
+build_flags   = ${common.build_flags}
217
+  -DARDUINO_SAM_ARCHIM -DARDUINO_ARCH_SAM -D__SAM3X8E__ -DUSBCON
218
+
219
+[env:DUE_archim_debug]
220
+# Used when WATCHDOG_RESET_MANUAL is enabled
221
+platform      = atmelsam
222
+board         = due
223
+src_filter    = ${common.default_src_filter} +<src/HAL/DUE>
224
+build_flags   = ${common.build_flags}
225
+  -DARDUINO_SAM_ARCHIM -DARDUINO_ARCH_SAM -D__SAM3X8E__ -DUSBCON
226
+  -funwind-tables -mpoke-function-name
227
+
228
+#
210 229
 # NXP LPC176x ARM Cortex-M3
211 230
 #
212 231
 [env:LPC1768]

Loading…
Отказ
Запис