Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d270874

Browse files
committedOct 9, 2013
Small fixes to avr/boards.txt:
- adjusted Mega board name - moved pid/vid to the proper place - defined default build.board prop (so the IDE stops warning about that) See #1605
1 parent 7ab3571 commit d270874

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed
 

‎boards.txt

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,12 @@ nano.menu.cpu.atmega168.build.mcu=atmega168
156156

157157
##############################################################
158158

159-
mega.name=Arduino Mega
159+
mega.name=Arduino Mega or Mega 2560
160+
161+
mega.vid.0=0x2341
162+
mega.pid.0=0x0010
163+
mega.vid.1=0x2341
164+
mega.pid.1=0x0042
160165

161166
mega.upload.tool=avrdude
162167
mega.upload.maximum_data_size=8192
@@ -169,16 +174,13 @@ mega.bootloader.lock_bits=0x0F
169174
mega.build.f_cpu=16000000L
170175
mega.build.core=arduino
171176
mega.build.variant=mega
177+
# default board may be overridden by the cpu menu
178+
mega.build.board=AVR_MEGA2560
172179

173180
## Arduino Mega w/ ATmega2560
174181
## -------------------------
175182
mega.menu.cpu.atmega2560=ATmega2560 (Mega 2560)
176183

177-
mega.menu.cpu.atmega2560.vid.0=0x2341
178-
mega.menu.cpu.atmega2560.pid.0=0x0010
179-
mega.menu.cpu.atmega2560.vid.1=0x2341
180-
mega.menu.cpu.atmega2560.pid.1=0x0042
181-
182184
mega.menu.cpu.atmega2560.upload.protocol=wiring
183185
mega.menu.cpu.atmega2560.upload.maximum_size=258048
184186
mega.menu.cpu.atmega2560.upload.speed=115200

0 commit comments

Comments
 (0)
Please sign in to comment.