Skip to content

Commit be58b43

Browse files
committed
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 058ee20 commit be58b43

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

build/shared/revisions.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ ARDUINO 1.5.5 BETA
1616
(http://www.djerickson.com/arduino/)
1717
* avr: Fixed wrong extended fuses on Arduino Yún when using external programmer
1818
* avr: Added yun variant with LED_BUILTIN definition
19+
* avr: Refactored Mega* variants definitions in boards.txt (Kristian Sloth Lauszus)
1920

2021
ARDUINO 1.5.4 BETA 2013.09.10
2122

hardware/arduino/avr/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)