Subversion Repositories Tronxy-X3A-Marlin

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 ron 1
#
2
# Marlin Firmware
3
# PlatformIO Configuration File
4
#
5
# For detailed documentation with EXAMPLES:
6
#
7
# http://docs.platformio.org/en/latest/projectconf.html
8
#
9
 
10
# Automatic targets - enable auto-uploading
11
# targets = upload
12
 
13
#
14
# By default platformio build will abort after 5 errors.
15
# Remove '-fmax-errors=5' from build_flags below to see all.
16
#
17
 
18
[platformio]
19
src_dir     = Marlin
20
build_dir   = .pioenvs
21
lib_dir     = .piolib
22
libdeps_dir = .piolibdeps
23
env_default = megaatmega2560
24
 
25
[common]
26
build_flags = -fmax-errors=5
27
  -g
28
  -ggdb
29
lib_deps =
30
  https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
31
  LiquidCrystal_I2C@1.1.2
32
  TMC2130Stepper
33
  https://github.com/teemuatlut/TMC2208Stepper/archive/v0.1.1.zip
34
  Adafruit NeoPixel@1.1.3
35
  https://github.com/lincomatic/LiquidTWI2/archive/30aa480.zip
36
  https://github.com/ameyer/Arduino-L6470/archive/master.zip
37
  https://github.com/trinamic/TMC26XStepper/archive/c1921b4.zip
38
 
39
#################################
40
#                               #
41
#   Unique Core Architectures   #
42
#                               #
43
#  Add a new "env" below if no  #
44
# entry has values suitable to  #
45
#   build for a given board.    #
46
#                               #
47
#################################
48
 
49
#
50
# ATmega2560
51
#
52
[env:megaatmega2560]
53
platform          = atmelavr
54
framework         = arduino
55
board             = megaatmega2560
56
build_flags       = ${common.build_flags}
57
board_build.f_cpu = 16000000L
58
lib_deps          = ${common.lib_deps}
59
monitor_speed     = 250000
60
 
61
#
62
# ATmega1280
63
#
64
[env:megaatmega1280]
65
platform          = atmelavr
66
framework         = arduino
67
board             = megaatmega1280
68
build_flags       = ${common.build_flags}
69
board_build.f_cpu = 16000000L
70
lib_deps          = ${common.lib_deps}
71
monitor_speed     = 250000
72
 
73
#
74
# AT90USB1286 boards using CDC bootloader
75
# - BRAINWAVE
76
# - BRAINWAVE_PRO
77
# - SAV_MKI
78
# - TEENSYLU
79
#
80
[env:at90USB1286_CDC]
81
platform      = teensy
82
framework     = arduino
83
board         = at90USB1286
84
build_flags   = ${common.build_flags}
85
lib_deps      = ${common.lib_deps}
86
lib_ldf_mode  = deep+
87
extra_scripts = pre:buildroot/share/atom/create_custom_upload_command_CDC.py
88
 
89
#
90
# AT90USB1286 boards using DFU bootloader
91
# - PrintrBoard
92
# - PrintrBoard Rev.F
93
# - ? 5DPRINT ?
94
#
95
[env:at90USB1286_DFU]
96
platform      = teensy
97
framework     = arduino
98
board         = at90USB1286
99
build_flags   = ${common.build_flags}
100
lib_deps      = ${common.lib_deps}
101
lib_ldf_mode  = deep+
102
extra_scripts = pre:buildroot/share/atom/create_custom_upload_command_DFU.py
103
 
104
#
105
# Melzi and clones (ATmega1284p)
106
#
107
[env:melzi]
108
platform      = atmelavr
109
framework     = arduino
110
board         = sanguino_atmega1284p
111
build_flags   = ${common.build_flags}
112
upload_speed  = 57600
113
lib_deps      = ${common.lib_deps}
114
monitor_speed = 250000
115
 
116
#
117
# Melzi and clones (Optiboot bootloader)
118
#
119
[env:melzi_optiboot]
120
platform      = atmelavr
121
framework     = arduino
122
board         = sanguino_atmega1284p
123
build_flags   = ${common.build_flags}
124
upload_speed  = 115200
125
lib_deps      = ${common.lib_deps}
126
monitor_speed = 250000
127
 
128
#
129
# RAMBo
130
#
131
[env:rambo]
132
platform          = atmelavr
133
framework         = arduino
134
board             = reprap_rambo
135
build_flags       = ${common.build_flags}
136
board_build.f_cpu = 16000000L
137
lib_deps          = ${common.lib_deps}
138
monitor_speed     = 250000
139
 
140
#
141
# Sanguinololu (ATmega644p)
142
#
143
[env:sanguino_atmega644p]
144
platform      = atmelavr
145
framework     = arduino
146
board         = sanguino_atmega644p
147
build_flags   = ${common.build_flags}
148
lib_deps      = ${common.lib_deps}
149
monitor_speed = 250000
150
 
151
#
152
# Sanguinololu (ATmega1284p)
153
#
154
[env:sanguino_atmega1284p]
155
platform      = atmelavr
156
framework     = arduino
157
board         = sanguino_atmega1284p
158
build_flags   = ${common.build_flags}
159
lib_deps      = ${common.lib_deps}
160
monitor_speed = 250000
161
 
162
#
163
# Teensy++ 2.0
164
#
165
[env:teensy20]
166
platform          = teensy
167
framework         = arduino
168
board             = teensy20pp
169
build_flags       = ${common.build_flags}
170
#board_build.f_cpu = 20000000L     ; Bug in Arduino framework disallows boards running at 20Mhz
171
lib_deps          = ${common.lib_deps}
172
lib_ldf_mode      = deep+
173
monitor_speed     = 250000