forked from Jyers/Marlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathavr.ini
137 lines (118 loc) · 2.78 KB
/
avr.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
#
# Marlin Firmware
# PlatformIO Configuration File
#
#################################
# #
# AVR Architecture #
# #
#################################
#
# AVR (8-bit) Common Environment values
#
[common_avr8]
platform = atmelavr@~3.4
build_flags = ${common.build_flags} -Wl,--relax
board_build.f_cpu = 16000000L
src_filter = ${common.default_src_filter} +<src/HAL/AVR>
#
# ATmega2560
#
[env:mega2560]
extends = common_avr8
board = megaatmega2560
#
# ATmega2560 with extended pins 70-85 defined
# BOARD_BQ_ZUM_MEGA_3D
# BOARD_ULTIMAIN_2
# BOARD_MIGHTYBOARD_REVE
# BOARD_EINSTART_S
#
[env:mega2560ext]
extends = env:mega2560
board_build.variant = MARLIN_MEGA_EXTENDED
extra_scripts = ${common.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
#
# ATmega1280
#
[env:mega1280]
extends = common_avr8
board = megaatmega1280
#
# MightyBoard AVR with extended pins
#
[mega_extended_optimized]
extends = common_avr8
board_build.variant = MARLIN_MEGA_EXTENDED
extra_scripts = ${env:mega2560ext.extra_scripts}
upload_speed = 57600
build_flags = ${common.build_flags} -fno-tree-scev-cprop -fno-split-wide-types -Wl,--relax -mcall-prologues
#
# MightyBoard ATmega1280
#
[env:MightyBoard1280]
extends = mega_extended_optimized
board = megaatmega1280
#
# MightyBoard ATmega2560
#
[env:MightyBoard2560]
extends = mega_extended_optimized
board = megaatmega2560
#
# RAMBo
#
[env:rambo]
extends = common_avr8
board = reprap_rambo
#
# FYSETC F6 V1.3 / V1.4
#
[env:FYSETC_F6]
extends = common_avr8
board = fysetc_f6_13
#
# Sanguinololu (ATmega644p)
#
[env:sanguino644p]
extends = common_avr8
board = sanguino_atmega644p
#
# Sanguinololu (ATmega1284p)
#
[env:sanguino1284p]
extends = common_avr8
board = sanguino_atmega1284p
board_upload.maximum_size = 126976
#
# Sanguinololu (ATmega1284p stock bootloader with tuned flags)
#
[tuned_1284p]
build_flags = ${common.build_flags} -fno-tree-scev-cprop -fno-split-wide-types -Wl,--relax -mcall-prologues
[env:sanguino1284p_optimized]
extends = env:sanguino1284p
build_flags = ${tuned_1284p.build_flags}
#
# Melzi and clones (ATmega1284p)
#
[env:melzi]
extends = env:sanguino1284p
upload_speed = 57600
[env:melzi_optimized]
extends = env:sanguino1284p_optimized
upload_speed = 57600
#
# Melzi and clones (Optiboot bootloader)
#
[env:melzi_optiboot]
extends = common_avr8
board = sanguino_atmega1284p
upload_speed = 115200
board_upload.maximum_size = 130048
#
# Melzi and clones (Zonestar Melzi2 with tuned flags)
#
[env:melzi_optiboot_optimized]
extends = env:melzi_optiboot
build_flags = ${tuned_1284p.build_flags}