Skip to content

Commit fa3728e

Browse files
committed
Merge branch 'master' of git@github.com:arduino/Arduino
2 parents a1b3f99 + e1faf02 commit fa3728e

File tree

6 files changed

+24
-9
lines changed

6 files changed

+24
-9
lines changed

build/build.xml

+22-3
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
11
<?xml version="1.0"?>
22
<project name="Arduino" default="build">
3+
<!--echo message="os.name = ${os.name}" /-->
4+
<!--echo message="os.arch = ${os.arch}" /-->
5+
<!--echo message="os.version = ${os.version}" /-->
36

47
<!-- Sets properties for macosx/windows/linux depending on current system -->
58
<condition property="macosx"><os family="mac" /></condition>
69
<condition property="windows"><os family="windows" /></condition>
710
<condition property="linux"><os family="unix" /></condition>
11+
<condition property="linux64"><os family="unix" arch="amd64" /></condition>
812

913
<condition property="platform"
1014
value="macosx"><os family="mac" /></condition>
1115
<condition property="platform"
1216
value="windows"><os family="windows" /></condition>
1317
<condition property="platform"
14-
value="linux"><os family="unix" /></condition>
18+
value="linux"><os family="unix" arch="i386" /></condition>
19+
<condition property="platform"
20+
value="linux64"><os family="unix" arch="amd64" /></condition>
1521

1622
<!-- Libraries required for running arduino -->
1723
<fileset dir=".." id="runtime.jars">
@@ -317,13 +323,23 @@
317323
<copy todir="linux/work" file="linux/dist/arduino" />
318324
<chmod perm="755" file="linux/work/arduino" />
319325
</target>
326+
327+
<target name="linux64-build" depends="linux-build" description="Build linux (64-bit) version">
328+
<copy tofile="linux/work/hardware/tools/avrdude" file="linux/dist/tools/avrdude64" overwrite="true" />
329+
<copy tofile="linux/work/lib/librxtxSerial.so" file="linux/dist/lib/librxtxSerial64.so" overwrite="true" />
330+
</target>
320331

321332
<target name="linux-run" depends="linux-build"
322-
description="Run Linux version">
333+
description="Run Linux (32-bit) version">
323334
<exec executable="./linux/work/arduino" spawn="false"/>
324335
</target>
325336

326-
<target name="linux-dist" depends="linux-build"
337+
<target name="linux64-run" depends="linux64-build"
338+
description="Run Linux (64-bit) version">
339+
<exec executable="./linux/work/arduino" spawn="false"/>
340+
</target>
341+
342+
<target name="linux-dist" depends="build"
327343
description="Build .tar.gz of linux version">
328344

329345
<!--get src="http://dev.processing.org/build/jre-tools-6u18-linux-i586.tgz"
@@ -358,7 +374,10 @@
358374
=======================================================
359375
</echo>
360376
</target>
377+
361378

379+
<target name="linux64-dist" depends="linux-dist"
380+
description="Build .tar.gz of linux version" />
362381

363382
<!-- - - - - - - - -->
364383
<!-- Windows -->
178 KB
Binary file not shown.

build/linux/dist/tools/avrdude64

737 KB
Binary file not shown.

build/shared/examples/4.Communication/MIDI/Midi.pde

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ void setup() {
2929

3030
void loop() {
3131
// play notes from F#-0 (0x1E) to F#-5 (0x5A):
32-
for (intnote = 0x1E; note < 0x5A; note ++) {
32+
for (int note = 0x1E; note < 0x5A; note ++) {
3333
//Note on channel 1 (0x90), some note value (note), middle velocity (0x45):
3434
noteOn(0x90, note, 0x45);
3535
delay(100);

libraries/Wire/utility/twi.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ void twi_init(void)
7979
// initialize twi prescaler and bit rate
8080
cbi(TWSR, TWPS0);
8181
cbi(TWSR, TWPS1);
82-
TWBR = ((CPU_FREQ / TWI_FREQ) - 16) / 2;
82+
TWBR = ((F_CPU / TWI_FREQ) - 16) / 2;
8383

8484
/* twi bit rate formula from atmega128 manual pg 204
8585
SCL Frequency = CPU Clock Frequency / (16 + (2 * TWBR))

libraries/Wire/utility/twi.h

-4
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@
2424

2525
//#define ATMEGA8
2626

27-
#ifndef CPU_FREQ
28-
#define CPU_FREQ 16000000L
29-
#endif
30-
3127
#ifndef TWI_FREQ
3228
#define TWI_FREQ 100000L
3329
#endif

0 commit comments

Comments
 (0)