#
# Marlin Firmware
# PlatformIO Configuration File
#

#################################
#                               #
#      SAMD21 Architecture      #
#                               #
#################################

#
# ReprapWorld Minitronics (Atmel SAMD21J18 ARM Cortex-M0+)
#
[env:SAMD21_minitronics20]
platform         = atmelsam
board            = minitronics20
build_flags      = ${common.build_flags} -std=gnu++17
                   -DUSBCON -DUSBD_USE_CDC -D__SAMD21__ -DARDUINO_SAMD_MINITRONICS20  -Wno-deprecated-declarations -DDEBUG
                   -IMarlin/src/HAL/SAMD21/u8g
build_unflags    = -std=gnu++11
build_src_filter = ${common.default_src_filter} +<src/HAL/SAMD21>
lib_deps         = ${common.lib_deps}
extra_scripts    = ${common.extra_scripts}
                   pre:buildroot/share/PlatformIO/scripts/SAMD21_minitronics20.py
debug_tool       = atmel-ice
