1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-27 05:48:43 +00:00

Update platformio.ini for parity with AVR in 2.0.x

This commit is contained in:
Scott Lahteine 2018-05-19 17:43:06 -05:00
parent 4e3793988a
commit 17aa0a7303

View File

@ -1,124 +1,184 @@
# #
# Project Configuration File # Marlin Firmware
# PlatformIO Configuration File
#
# For detailed documentation with EXAMPLES:
# #
# A detailed documentation with the EXAMPLES is located here:
# http://docs.platformio.org/en/latest/projectconf.html # http://docs.platformio.org/en/latest/projectconf.html
# #
# Automatic targets - enable auto-uploading
# targets = upload
# #
# By default platformio build will abort after 5 errors. # By default platformio build will abort after 5 errors.
# Remove '-fmax-errors=5' from build_flags below to see all. # Remove '-fmax-errors=5' from build_flags below to see all.
# #
# Automatic targets - enable auto-uploading
# targets = upload
[platformio] [platformio]
src_dir = Marlin src_dir = Marlin
envs_dir = .pioenvs build_dir = .pioenvs
lib_dir = .piolib lib_dir = .piolib
libdeps_dir = .piolibdeps libdeps_dir = .piolibdeps
env_default = megaatmega2560 env_default = megaatmega2560
[common] [common]
default_src_filter = +<src/*> -<src/config>
build_flags = -fmax-errors=5
-g
-ggdb
lib_deps = lib_deps =
U8glib@1.19.1 https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
LiquidCrystal_I2C@1.1.2
TMC2130Stepper TMC2130Stepper
Adafruit NeoPixel https://github.com/teemuatlut/TMC2208Stepper/archive/v0.1.1.zip
https://github.com/lincomatic/LiquidTWI2.git Adafruit NeoPixel@1.1.3
https://github.com/trinamic/TMC26XStepper.git https://github.com/lincomatic/LiquidTWI2/archive/30aa480.zip
https://github.com/ameyer/Arduino-L6470.git https://github.com/ameyer/Arduino-L6470/archive/master.zip
build_flags = -I $BUILDSRC_DIR -fmax-errors=5 https://github.com/trinamic/TMC26XStepper/archive/c1921b4.zip
#################################
# #
# Unique Core Architectures #
# #
# Add a new "env" below if no #
# entry has values suitable to #
# build for a given board. #
# #
#################################
# #
# ATmega2560 # ATmega2560
# #
[env:megaatmega2560] [env:megaatmega2560]
platform = atmelavr platform = atmelavr
framework = arduino framework = arduino
board = megaatmega2560 board = megaatmega2560
build_flags = ${common.build_flags} build_flags = ${common.build_flags}
board_f_cpu = 16000000L board_f_cpu = 16000000L
lib_deps = ${common.lib_deps} lib_deps = ${common.lib_deps}
src_filter = ${common.default_src_filter}
monitor_speed = 250000 monitor_speed = 250000
# #
# ATmega1280 # ATmega1280
# #
[env:megaatmega1280] [env:megaatmega1280]
platform = atmelavr platform = atmelavr
framework = arduino framework = arduino
board = megaatmega1280 board = megaatmega1280
build_flags = ${common.build_flags} build_flags = ${common.build_flags}
board_f_cpu = 16000000L board_f_cpu = 16000000L
lib_deps = ${common.lib_deps} lib_deps = ${common.lib_deps}
src_filter = ${common.default_src_filter}
monitor_speed = 250000
#
# AT90USB1286 boards using CDC bootloader
# - BRAINWAVE
# - BRAINWAVE_PRO
# - SAV_MKI
# - TEENSYLU
#
[env:at90USB1286_CDC]
platform = teensy
framework = arduino
board = at90USB1286
build_flags = ${common.build_flags}
lib_deps = ${common.lib_deps}
lib_ldf_mode = deep+
src_filter = ${common.default_src_filter}
extra_scripts = pre:buildroot/share/atom/create_custom_upload_command_CDC.py
#
# AT90USB1286 boards using DFU bootloader
# - PrintrBoard
# - PrintrBoard Rev.F
# - ? 5DPRINT ?
#
[env:at90USB1286_DFU]
platform = teensy
framework = arduino
board = at90USB1286
build_flags = ${common.build_flags}
lib_deps = ${common.lib_deps}
lib_ldf_mode = deep+
src_filter = ${common.default_src_filter}
extra_scripts = pre:buildroot/share/atom/create_custom_upload_command_DFU.py
# #
# Melzi and clones (ATmega1284p) # Melzi and clones (ATmega1284p)
# #
[env:melzi] [env:melzi]
platform = atmelavr platform = atmelavr
framework = arduino framework = arduino
board = sanguino_atmega1284p board = sanguino_atmega1284p
build_flags = ${common.build_flags} build_flags = ${common.build_flags}
upload_speed = 57600 upload_speed = 57600
lib_deps = ${common.lib_deps} lib_deps = ${common.lib_deps}
src_filter = ${common.default_src_filter}
monitor_speed = 250000
# #
# Melzi and clones (ATmega1284p) # Melzi and clones (Optiboot bootloader)
# with Optiboot bootloader
# #
[env:melzi_optiboot] [env:melzi_optiboot]
platform = atmelavr platform = atmelavr
framework = arduino framework = arduino
board = sanguino_atmega1284p board = sanguino_atmega1284p
build_flags = ${common.build_flags} build_flags = ${common.build_flags}
upload_speed = 115200 upload_speed = 115200
lib_deps = ${common.lib_deps} lib_deps = ${common.lib_deps}
src_filter = ${common.default_src_filter}
monitor_speed = 250000
# #
# RAMBo # RAMBo
# #
[env:rambo] [env:rambo]
platform = atmelavr platform = atmelavr
framework = arduino framework = arduino
board = reprap_rambo board = reprap_rambo
build_flags = ${common.build_flags} build_flags = ${common.build_flags}
board_f_cpu = 16000000L board_f_cpu = 16000000L
lib_deps = ${common.lib_deps} lib_deps = ${common.lib_deps}
src_filter = ${common.default_src_filter}
monitor_speed = 250000
# #
# Sanguinololu (ATmega644p) # Sanguinololu (ATmega644p)
# #
[env:sanguino_atmega644p] [env:sanguino_atmega644p]
platform = atmelavr platform = atmelavr
framework = arduino framework = arduino
board = sanguino_atmega644p board = sanguino_atmega644p
build_flags = ${common.build_flags} build_flags = ${common.build_flags}
lib_deps = ${common.lib_deps} lib_deps = ${common.lib_deps}
src_filter = ${common.default_src_filter}
monitor_speed = 250000
# #
# Sanguinololu (ATmega1284p) # Sanguinololu (ATmega1284p)
# #
[env:sanguino_atmega1284p] [env:sanguino_atmega1284p]
platform = atmelavr platform = atmelavr
framework = arduino framework = arduino
board = sanguino_atmega1284p board = sanguino_atmega1284p
build_flags = ${common.build_flags} build_flags = ${common.build_flags}
lib_deps = ${common.lib_deps} lib_deps = ${common.lib_deps}
src_filter = ${common.default_src_filter}
monitor_speed = 250000
# #
# Teensy++ 2.0 # Teensy++ 2.0
# #
# - PrintrBoard
# - PrintrBoard Rev.F
# - Brainwave Pro
#
[env:teensy20] [env:teensy20]
platform = teensy platform = teensy
framework = arduino framework = arduino
board = teensy20pp board = teensy20pp
build_flags = ${common.build_flags} build_flags = ${common.build_flags}
lib_deps = ${common.lib_deps} #board_f_cpu = 20000000L ; Bug in Arduino framework disallows boards running at 20Mhz
lib_deps = ${common.lib_deps}
lib_ldf_mode = deep+
src_filter = ${common.default_src_filter}
monitor_speed = 250000