Skip to content

Commit 295043d

Browse files
committed
Merge remote-tracking branch 'origin/ide-1.5.x' into ide-1.5.x
2 parents 8c7c1c7 + d270874 commit 295043d

File tree

5 files changed

+104
-44
lines changed

5 files changed

+104
-44
lines changed

boards.txt

Lines changed: 70 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ yun.upload.wait_for_upload_port=true
2323
yun.bootloader.tool=avrdude
2424
yun.bootloader.low_fuses=0xff
2525
yun.bootloader.high_fuses=0xd8
26-
yun.bootloader.extended_fuses=0xcb
26+
yun.bootloader.extended_fuses=0xfb
2727
yun.bootloader.file=caterina/Caterina-Yun.hex
2828
yun.bootloader.unlock_bits=0x3F
2929
yun.bootloader.lock_bits=0x2F
@@ -35,7 +35,7 @@ yun.build.pid=0x8041
3535
yun.build.usb_product="Arduino Yun"
3636
yun.build.board=AVR_YUN
3737
yun.build.core=arduino
38-
yun.build.variant=leonardo
38+
yun.build.variant=yun
3939
yun.build.extra_flags={build.usb_flags}
4040

4141
##############################################################
@@ -156,57 +156,85 @@ nano.menu.cpu.atmega168.build.mcu=atmega168
156156

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

159-
mega2560.name=Arduino Mega 2560 or Mega ADK
160-
mega2560.vid.0=0x2341
161-
mega2560.pid.0=0x0044
162-
mega2560.vid.1=0x2341
163-
mega2560.pid.1=0x003f
164-
mega2560.cpu=2560 or ADK
165-
166-
mega2560.upload.tool=avrdude
167-
mega2560.upload.protocol=wiring
168-
mega2560.upload.maximum_size=258048
169-
mega2560.upload.maximum_data_size=8192
170-
mega2560.upload.speed=115200
171-
172-
mega2560.bootloader.tool=avrdude
173-
mega2560.bootloader.low_fuses=0xFF
174-
mega2560.bootloader.high_fuses=0xD8
175-
mega2560.bootloader.extended_fuses=0xFD
176-
mega2560.bootloader.file=stk500v2/stk500boot_v2_mega2560.hex
177-
mega2560.bootloader.unlock_bits=0x3F
178-
mega2560.bootloader.lock_bits=0x0F
179-
180-
mega2560.build.mcu=atmega2560
181-
mega2560.build.f_cpu=16000000L
182-
mega2560.build.board=AVR_MEGA2560
183-
mega2560.build.core=arduino
184-
mega2560.build.variant=mega
159+
mega.name=Arduino Mega or Mega 2560
185160

186-
##############################################################
187-
188-
mega.name=Arduino Mega (ATmega1280)
189-
mega.cpu=ATmega1280
161+
mega.vid.0=0x2341
162+
mega.pid.0=0x0010
163+
mega.vid.1=0x2341
164+
mega.pid.1=0x0042
190165

191166
mega.upload.tool=avrdude
192-
mega.upload.protocol=arduino
193-
mega.upload.maximum_size=126976
194167
mega.upload.maximum_data_size=8192
195-
mega.upload.speed=57600
196168

197169
mega.bootloader.tool=avrdude
198170
mega.bootloader.low_fuses=0xFF
199-
mega.bootloader.high_fuses=0xDA
200-
mega.bootloader.extended_fuses=0xF5
201-
mega.bootloader.file=atmega/ATmegaBOOT_168_atmega1280.hex
202171
mega.bootloader.unlock_bits=0x3F
203172
mega.bootloader.lock_bits=0x0F
204173

205-
mega.build.mcu=atmega1280
206174
mega.build.f_cpu=16000000L
207-
mega.build.board=AVR_MEGA
208175
mega.build.core=arduino
209176
mega.build.variant=mega
177+
# default board may be overridden by the cpu menu
178+
mega.build.board=AVR_MEGA2560
179+
180+
## Arduino Mega w/ ATmega2560
181+
## -------------------------
182+
mega.menu.cpu.atmega2560=ATmega2560 (Mega 2560)
183+
184+
mega.menu.cpu.atmega2560.upload.protocol=wiring
185+
mega.menu.cpu.atmega2560.upload.maximum_size=258048
186+
mega.menu.cpu.atmega2560.upload.speed=115200
187+
188+
mega.menu.cpu.atmega2560.bootloader.high_fuses=0xD8
189+
mega.menu.cpu.atmega2560.bootloader.extended_fuses=0xFD
190+
mega.menu.cpu.atmega2560.bootloader.file=stk500v2/stk500boot_v2_mega2560.hex
191+
192+
mega.menu.cpu.atmega2560.build.mcu=atmega2560
193+
mega.menu.cpu.atmega2560.build.board=AVR_MEGA2560
194+
195+
## Arduino Mega w/ ATmega1280
196+
## -------------------------
197+
mega.menu.cpu.atmega1280=ATmega1280
198+
199+
mega.menu.cpu.atmega1280.upload.protocol=arduino
200+
mega.menu.cpu.atmega1280.upload.maximum_size=126976
201+
mega.menu.cpu.atmega1280.upload.speed=57600
202+
203+
mega.menu.cpu.atmega1280.bootloader.high_fuses=0xDA
204+
mega.menu.cpu.atmega1280.bootloader.extended_fuses=0xF5
205+
mega.menu.cpu.atmega1280.bootloader.file=atmega/ATmegaBOOT_168_atmega1280.hex
206+
207+
mega.menu.cpu.atmega1280.build.mcu=atmega1280
208+
mega.menu.cpu.atmega1280.build.board=AVR_MEGA
209+
210+
##############################################################
211+
212+
megaADK.name=Arduino Mega ADK
213+
214+
megaADK.vid.0=0x2341
215+
megaADK.pid.0=0x003f
216+
megaADK.vid.1=0x2341
217+
megaADK.pid.1=0x0044
218+
219+
megaADK.upload.tool=avrdude
220+
megaADK.upload.protocol=wiring
221+
megaADK.upload.maximum_size=258048
222+
megaADK.upload.maximum_data_size=8192
223+
megaADK.upload.speed=115200
224+
225+
megaADK.bootloader.tool=avrdude
226+
megaADK.bootloader.low_fuses=0xFF
227+
megaADK.bootloader.high_fuses=0xD8
228+
megaADK.bootloader.extended_fuses=0xFD
229+
megaADK.bootloader.file=stk500v2/stk500boot_v2_mega2560.hex
230+
megaADK.bootloader.unlock_bits=0x3F
231+
megaADK.bootloader.lock_bits=0x0F
232+
233+
megaADK.build.mcu=atmega2560
234+
megaADK.build.f_cpu=16000000L
235+
megaADK.build.board=AVR_ADK
236+
megaADK.build.core=arduino
237+
megaADK.build.variant=mega
210238

211239
##############################################################
212240

@@ -649,7 +677,7 @@ robotControl.name=Arduino Robot Control
649677
robotControl.upload.tool=avrdude
650678
robotControl.upload.protocol=avr109
651679
robotControl.upload.maximum_size=28672
652-
robotControl.upload.data_size=2560
680+
robotControl.upload.maximum_data_size=2560
653681
robotControl.upload.speed=57600
654682
robotControl.upload.disable_flushing=true
655683
robotControl.upload.use_1200bps_touch=true
@@ -679,7 +707,7 @@ robotMotor.name=Arduino Robot Motor
679707
robotMotor.upload.tool=avrdude
680708
robotMotor.upload.protocol=avr109
681709
robotMotor.upload.maximum_size=28672
682-
robotMotor.upload.data_size=2560
710+
robotMotor.upload.maximum_data_size=2560
683711
robotMotor.upload.speed=57600
684712
robotMotor.upload.disable_flushing=true
685713
robotMotor.upload.use_1200bps_touch=true

bootloaders/caterina-LilyPadUSB/Caterina-LilyPadUSB.hex

100755100644
File mode changed.

cores/arduino/CDC.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,11 @@ bool WEAK CDC_Setup(Setup& setup)
115115

116116

117117
int _serialPeek = -1;
118-
void Serial_::begin(uint16_t baud_count)
118+
void Serial_::begin(unsigned long baud_count)
119+
{
120+
}
121+
122+
void Serial_::begin(unsigned long baud_count, byte config)
119123
{
120124
}
121125

cores/arduino/USBAPI.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ struct ring_buffer;
3636
class Serial_ : public Stream
3737
{
3838
public:
39-
void begin(uint16_t baud_count);
39+
void begin(unsigned long);
40+
void begin(unsigned long, uint8_t);
4041
void end(void);
4142

4243
virtual int available(void);

variants/yun/pins_arduino.h

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
pins_arduino.h - Pin definition functions for Arduino
3+
Part of Arduino - http://www.arduino.cc/
4+
5+
Copyright (c) 2013 Arduino LLC
6+
7+
This library is free software; you can redistribute it and/or
8+
modify it under the terms of the GNU Lesser General Public
9+
License as published by the Free Software Foundation; either
10+
version 2.1 of the License, or (at your option) any later version.
11+
12+
This library is distributed in the hope that it will be useful,
13+
but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15+
Lesser General Public License for more details.
16+
17+
You should have received a copy of the GNU Lesser General
18+
Public License along with this library; if not, write to the
19+
Free Software Foundation, Inc., 59 Temple Place, Suite 330,
20+
Boston, MA 02111-1307 USA
21+
22+
$Id: wiring.h 249 2007-02-03 16:52:51Z mellis $
23+
*/
24+
25+
#include "../leonardo/pins_arduino.h"
26+
27+
#define LED_BUILTIN 13

0 commit comments

Comments
 (0)