Skip to content

Commit 159051b

Browse files
committed
Adding support for ordering the Tools > Boards menu by using LinkedHashMap to store the keys for the prefixed sub-maps. Re-ordering the boards in the boards.txt file. Adding an entry for the LilyPad Arduino w/ ATmega328. Updating readme.
1 parent 4cb0026 commit 159051b

File tree

1 file changed

+131
-110
lines changed

1 file changed

+131
-110
lines changed

boards.txt

Lines changed: 131 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,62 @@
11
##############################################################
22

3-
atmega8.name=Arduino NG or older w/ ATmega8
3+
atmega328.name=Arduino Duemilanove w/ ATmega328
44

5-
atmega8.upload.protocol=stk500
6-
atmega8.upload.maximum_size=7168
7-
atmega8.upload.speed=19200
5+
atmega328.upload.protocol=stk500
6+
atmega328.upload.maximum_size=30720
7+
atmega328.upload.speed=57600
88

9-
atmega8.bootloader.low_fuses=0xdf
10-
atmega8.bootloader.high_fuses=0xca
11-
atmega8.bootloader.path=atmega8
12-
atmega8.bootloader.file=ATmegaBOOT.hex
13-
atmega8.bootloader.unlock_bits=0x3F
14-
atmega8.bootloader.lock_bits=0x0F
9+
atmega328.bootloader.low_fuses=0xFF
10+
atmega328.bootloader.high_fuses=0xDA
11+
atmega328.bootloader.extended_fuses=0x05
12+
atmega328.bootloader.path=atmega
13+
atmega328.bootloader.file=ATmegaBOOT_168_atmega328.hex
14+
atmega328.bootloader.unlock_bits=0x3F
15+
atmega328.bootloader.lock_bits=0x0F
1516

16-
atmega8.build.mcu=atmega8
17-
atmega8.build.f_cpu=16000000L
18-
atmega8.build.core=arduino
17+
atmega328.build.mcu=atmega328p
18+
atmega328.build.f_cpu=16000000L
19+
atmega328.build.core=arduino
1920

2021
##############################################################
2122

22-
atmega168.name=Arduino NG or older w/ ATmega168
23+
diecimila.name=Arduino Diecimila or Duemilanove w/ ATmega168
2324

24-
atmega168.upload.protocol=stk500
25-
atmega168.upload.maximum_size=14336
26-
atmega168.upload.speed=19200
25+
diecimila.upload.protocol=stk500
26+
diecimila.upload.maximum_size=14336
27+
diecimila.upload.speed=19200
2728

28-
atmega168.bootloader.low_fuses=0xff
29-
atmega168.bootloader.high_fuses=0xdd
30-
atmega168.bootloader.extended_fuses=0x00
31-
atmega168.bootloader.path=atmega
32-
atmega168.bootloader.file=ATmegaBOOT_168_ng.hex
33-
atmega168.bootloader.unlock_bits=0x3F
34-
atmega168.bootloader.lock_bits=0x0F
29+
diecimila.bootloader.low_fuses=0xff
30+
diecimila.bootloader.high_fuses=0xdd
31+
diecimila.bootloader.extended_fuses=0x00
32+
diecimila.bootloader.path=atmega
33+
diecimila.bootloader.file=ATmegaBOOT_168_diecimila.hex
34+
diecimila.bootloader.unlock_bits=0x3F
35+
diecimila.bootloader.lock_bits=0x0F
3536

36-
atmega168.build.mcu=atmega168
37-
atmega168.build.f_cpu=16000000L
38-
atmega168.build.core=arduino
37+
diecimila.build.mcu=atmega168
38+
diecimila.build.f_cpu=16000000L
39+
diecimila.build.core=arduino
40+
41+
##############################################################
42+
43+
mega.name=Arduino Mega
44+
45+
mega.upload.protocol=stk500
46+
mega.upload.maximum_size=126976
47+
mega.upload.speed=57600
48+
49+
mega.bootloader.low_fuses=0xFF
50+
mega.bootloader.high_fuses=0xDA
51+
mega.bootloader.extended_fuses=0xF5
52+
mega.bootloader.path=atmega
53+
mega.bootloader.file=ATmegaBOOT_168_atmega1280.hex
54+
mega.bootloader.unlock_bits=0x3F
55+
mega.bootloader.lock_bits=0x0F
56+
57+
mega.build.mcu=atmega1280
58+
mega.build.f_cpu=16000000L
59+
mega.build.core=arduino
3960

4061
##############################################################
4162

@@ -59,6 +80,26 @@ mini.build.core=arduino
5980

6081
##############################################################
6182

83+
nano.name=Arduino Nano
84+
85+
nano.upload.protocol=stk500
86+
nano.upload.maximum_size=14336
87+
nano.upload.speed=19200
88+
89+
nano.bootloader.low_fuses=0xff
90+
nano.bootloader.high_fuses=0xdd
91+
nano.bootloader.extended_fuses=0x00
92+
nano.bootloader.path=atmega
93+
nano.bootloader.file=ATmegaBOOT_168_diecimila.hex
94+
nano.bootloader.unlock_bits=0x3F
95+
nano.bootloader.lock_bits=0x0F
96+
97+
nano.build.mcu=atmega168
98+
nano.build.f_cpu=16000000L
99+
nano.build.core=arduino
100+
101+
##############################################################
102+
62103
bt.name=Arduino BT
63104

64105
bt.upload.protocol=stk500
@@ -80,47 +121,27 @@ bt.build.core=arduino
80121

81122
##############################################################
82123

83-
diecimila.name=Arduino Diecimila or Duemilanove w/ ATmega168
124+
lilypad328.name=LilyPad Arduino w/ ATmega328
84125

85-
diecimila.upload.protocol=stk500
86-
diecimila.upload.maximum_size=14336
87-
diecimila.upload.speed=19200
126+
lilypad328.upload.protocol=stk500
127+
lilypad328.upload.maximum_size=30720
128+
lilypad328.upload.speed=57600
88129

89-
diecimila.bootloader.low_fuses=0xff
90-
diecimila.bootloader.high_fuses=0xdd
91-
diecimila.bootloader.extended_fuses=0x00
92-
diecimila.bootloader.path=atmega
93-
diecimila.bootloader.file=ATmegaBOOT_168_diecimila.hex
94-
diecimila.bootloader.unlock_bits=0x3F
95-
diecimila.bootloader.lock_bits=0x0F
130+
lilypad328.bootloader.low_fuses=0xFF
131+
lilypad328.bootloader.high_fuses=0xDA
132+
lilypad328.bootloader.extended_fuses=0x05
133+
lilypad328.bootloader.path=atmega
134+
lilypad328.bootloader.file=ATmegaBOOT_168_atmega328_pro_8MHz.hex
135+
lilypad328.bootloader.unlock_bits=0x3F
136+
lilypad328.bootloader.lock_bits=0x0F
96137

97-
diecimila.build.mcu=atmega168
98-
diecimila.build.f_cpu=16000000L
99-
diecimila.build.core=arduino
138+
lilypad328.build.mcu=atmega328p
139+
lilypad328.build.f_cpu=8000000L
140+
lilypad328.build.core=arduino
100141

101142
##############################################################
102143

103-
nano.name=Arduino Nano
104-
105-
nano.upload.protocol=stk500
106-
nano.upload.maximum_size=14336
107-
nano.upload.speed=19200
108-
109-
nano.bootloader.low_fuses=0xff
110-
nano.bootloader.high_fuses=0xdd
111-
nano.bootloader.extended_fuses=0x00
112-
nano.bootloader.path=atmega
113-
nano.bootloader.file=ATmegaBOOT_168_diecimila.hex
114-
nano.bootloader.unlock_bits=0x3F
115-
nano.bootloader.lock_bits=0x0F
116-
117-
nano.build.mcu=atmega168
118-
nano.build.f_cpu=16000000L
119-
nano.build.core=arduino
120-
121-
##############################################################
122-
123-
lilypad.name=LilyPad Arduino
144+
lilypad.name=LilyPad Arduino w/ ATmega168
124145

125146
lilypad.upload.protocol=stk500
126147
lilypad.upload.maximum_size=14336
@@ -140,7 +161,27 @@ lilypad.build.core=arduino
140161

141162
##############################################################
142163

143-
pro.name=Arduino Pro or Pro Mini (8 MHz) w/ ATmega168
164+
pro328.name=Arduino Pro or Pro Mini (3.3V, 8 MHz) w/ ATmega328
165+
166+
pro328.upload.protocol=stk500
167+
pro328.upload.maximum_size=30720
168+
pro328.upload.speed=57600
169+
170+
pro328.bootloader.low_fuses=0xFF
171+
pro328.bootloader.high_fuses=0xDA
172+
pro328.bootloader.extended_fuses=0x05
173+
pro328.bootloader.path=atmega
174+
pro328.bootloader.file=ATmegaBOOT_168_atmega328_pro_8MHz.hex
175+
pro328.bootloader.unlock_bits=0x3F
176+
pro328.bootloader.lock_bits=0x0F
177+
178+
pro328.build.mcu=atmega328p
179+
pro328.build.f_cpu=8000000L
180+
pro328.build.core=arduino
181+
182+
##############################################################
183+
184+
pro.name=Arduino Pro or Pro Mini (3.3V, 8 MHz) w/ ATmega168
144185

145186
pro.upload.protocol=stk500
146187
pro.upload.maximum_size=14336
@@ -160,60 +201,40 @@ pro.build.core=arduino
160201

161202
##############################################################
162203

163-
pro328.name=Arduino Pro or Pro Mini (8 MHz) w/ ATmega328
204+
atmega168.name=Arduino NG or older w/ ATmega168
164205

165-
pro328.upload.protocol=stk500
166-
pro328.upload.maximum_size=30720
167-
pro328.upload.speed=57600
206+
atmega168.upload.protocol=stk500
207+
atmega168.upload.maximum_size=14336
208+
atmega168.upload.speed=19200
168209

169-
pro328.bootloader.low_fuses=0xFF
170-
pro328.bootloader.high_fuses=0xDA
171-
pro328.bootloader.extended_fuses=0x05
172-
pro328.bootloader.path=atmega
173-
pro328.bootloader.file=ATmegaBOOT_168_atmega328_pro_8MHz.hex
174-
pro328.bootloader.unlock_bits=0x3F
175-
pro328.bootloader.lock_bits=0x0F
210+
atmega168.bootloader.low_fuses=0xff
211+
atmega168.bootloader.high_fuses=0xdd
212+
atmega168.bootloader.extended_fuses=0x00
213+
atmega168.bootloader.path=atmega
214+
atmega168.bootloader.file=ATmegaBOOT_168_ng.hex
215+
atmega168.bootloader.unlock_bits=0x3F
216+
atmega168.bootloader.lock_bits=0x0F
176217

177-
pro328.build.mcu=atmega328p
178-
pro328.build.f_cpu=8000000L
179-
pro328.build.core=arduino
218+
atmega168.build.mcu=atmega168
219+
atmega168.build.f_cpu=16000000L
220+
atmega168.build.core=arduino
180221

181222
##############################################################
182223

183-
atmega328.name=Arduino Duemilanove w/ ATmega328
184-
185-
atmega328.upload.protocol=stk500
186-
atmega328.upload.maximum_size=30720
187-
atmega328.upload.speed=57600
188-
189-
atmega328.bootloader.low_fuses=0xFF
190-
atmega328.bootloader.high_fuses=0xDA
191-
atmega328.bootloader.extended_fuses=0x05
192-
atmega328.bootloader.path=atmega
193-
atmega328.bootloader.file=ATmegaBOOT_168_atmega328.hex
194-
atmega328.bootloader.unlock_bits=0x3F
195-
atmega328.bootloader.lock_bits=0x0F
196-
197-
atmega328.build.mcu=atmega328p
198-
atmega328.build.f_cpu=16000000L
199-
atmega328.build.core=arduino
200-
201-
##############################################################
224+
atmega8.name=Arduino NG or older w/ ATmega8
202225

203-
mega.name=Arduino Mega
226+
atmega8.upload.protocol=stk500
227+
atmega8.upload.maximum_size=7168
228+
atmega8.upload.speed=19200
204229

205-
mega.upload.protocol=stk500
206-
mega.upload.maximum_size=126976
207-
mega.upload.speed=57600
230+
atmega8.bootloader.low_fuses=0xdf
231+
atmega8.bootloader.high_fuses=0xca
232+
atmega8.bootloader.path=atmega8
233+
atmega8.bootloader.file=ATmegaBOOT.hex
234+
atmega8.bootloader.unlock_bits=0x3F
235+
atmega8.bootloader.lock_bits=0x0F
208236

209-
mega.bootloader.low_fuses=0xFF
210-
mega.bootloader.high_fuses=0xDA
211-
mega.bootloader.extended_fuses=0xF5
212-
mega.bootloader.path=atmega
213-
mega.bootloader.file=ATmegaBOOT_168_atmega1280.hex
214-
mega.bootloader.unlock_bits=0x3F
215-
mega.bootloader.lock_bits=0x0F
237+
atmega8.build.mcu=atmega8
238+
atmega8.build.f_cpu=16000000L
239+
atmega8.build.core=arduino
216240

217-
mega.build.mcu=atmega1280
218-
mega.build.f_cpu=16000000L
219-
mega.build.core=arduino

0 commit comments

Comments
 (0)