1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-04 15:24:12 +01:00
Commit Graph

4366 Commits

Author SHA1 Message Date
Cristian Maglie
37115d03ef Backported SD library from 1.5.x 2014-12-02 22:15:57 +01:00
Cristian Maglie
b9b0fcdadc Backported Ethernet library from 1.5.x 2014-12-02 22:15:57 +01:00
Cristian Maglie
6ecb174c40 Backported 'yield()' hook from 1.5.x 2014-12-02 22:15:57 +01:00
Cristian Maglie
042fa0c3f2 Backported SPI Transcations from 1.5.x 2014-12-02 22:14:59 +01:00
Cristian Maglie
a9735bf91f Fix atomicity issues in SPI::beginTransaction and SPI::endTransaction (Andrew Kroll)
Previously, it could happen that SPI::beginTransaction was
interrupted by an ISR, while it is changing the SPI_AVR_EIMSK
register or interruptSave variable (it seems that there is
a small window after changing SPI_AVR_EIMSK where an interrupt
might still occur). If this happens, interruptSave is overwritten
with an invalid value, permanently disabling the pin interrupts.

To prevent this, disable interrupts globally while changing
these values.
2014-11-25 15:56:11 +01:00
Cristian Maglie
84b6cc27a5 [avr] Made SPI.usingInterrupt() synchronized (Andrew Kroll) 2014-11-25 15:56:11 +01:00
Cristian Maglie
d9537cb7da [avr] Added SPI.notUsingInterrupt() (Andrew Kroll) 2014-11-25 15:56:11 +01:00
Cristian Maglie
8344812ce8 [avr] Made SPI.begin() and SPI.end() synchronized (Andrew Kroll) 2014-11-25 15:49:17 +01:00
Cristian Maglie
53e25d8b55 [avr] Improved SPI speed on 16bit transfer.
From https://github.com/arduino/Arduino/pull/2376#issuecomment-59671152

Quoting Andrew Kroll:

   [..this commit..] introduces a small delay that can prevent the wait
   loop form iterating when running at the maximum speed. This gives
   you a little more speed, even if it seems counter-intuitive. At
   lower speeds, it is unnoticed. Watch the output on an oscilloscope
   when running full SPI speed, and you should see closer back-to-back
   writes.

Quoting Paul Stoffregen:

   I did quite a bit of experimenting with the NOP addition. The one
   that's in my copy gives about a 10% speedup on AVR.
2014-11-25 15:49:17 +01:00
Cristian Maglie
6eef453944 Fixed EditorConsole new-line regression.
Now EditorConsole starts a newline also when a CR character is read
from command output.
2014-11-25 15:37:55 +01:00
Cristian Maglie
15f3d1f8e7 Fixed import style in EditorConsole.java 2014-11-25 15:37:54 +01:00
Cristian Maglie
81a562e0ed Updated eclipse project library path 2014-11-25 15:37:54 +01:00
Federico Fissore
ca1a355628 Network discovery: not showing board name is not resolvable (was printing "null") 2014-11-25 13:51:47 +01:00
Federico Fissore
5bbdc6dd26 windows: missing jar in config.xml 2014-11-25 11:46:14 +01:00
Arturo Guadalupi
060c1e766c Updated description
It reads the state of a potentiometer (an analog input) and turns on an LED
 only if the LED goes above a certain threshold level. It prints the analog value
 regardless of the level.

updated to

 It reads the state of a potentiometer (an analog input) and turns on an LED
 only if the potentiometer goes above a certain threshold level. It prints the analog value
 regardless of the level.
2014-11-24 09:37:20 +01:00
Cristian Maglie
7b45b18ae8 Merge branch 'ide-1.5.x-libastyle-2.05' of github.com:ffissore/Arduino into ide-1.5.x 2014-11-21 11:45:46 +01:00
Federico Fissore
0aa800b4d7 Upgrading libastyle to 2.05 2014-11-21 11:07:30 +01:00
PaulStoffregen
c0bc2d22f6 Fix SPI transaction mismatch errors 2014-11-20 18:54:04 -08:00
Cristian Maglie
257238c050 IDE: better error handling for upload/burn bootloader
RunnerException was displayed with an ugly stacktrace, while the
message contained in the exception itself is already quite enough
detailed and clear.
2014-11-20 14:00:43 +01:00
Cristian Maglie
85aecfe0da IDE: Fixed default board selection. 2014-11-20 13:50:11 +01:00
Cristian Maglie
b9e186e45a Upped version to 1.6.0 2014-11-18 14:48:01 +01:00
Cristian Maglie
b0bd52b387 Removed duplicate version fields in Base class 2014-11-18 14:04:14 +01:00
Cristian Maglie
13fd27704f Added unit-test jars into eclipse project class path 2014-11-18 12:31:17 +01:00
Cristian Maglie
6aff4f4077 Merge branch 'ide-1.5.x-gui-refactor' into ide-1.5.x 2014-11-18 12:22:43 +01:00
Cristian Maglie
34c40b224f [avr] SPI: removed redundant include 2014-11-14 00:23:11 +01:00
Cristian Maglie
993cc9bbb4 [avr] Small comments and headers fixes in SPI 2014-11-14 00:23:11 +01:00
Cristian Maglie
7b2ed12ad7 Temporarily disabled I18N test 2014-11-13 16:34:25 +01:00
Claudio Indellicati
820fc657e6 Created 'arduino-builder' project. 2014-11-13 16:34:25 +01:00
Claudio Indellicati
98bdc7b587 Moved specialized Platform classes and related resources to the 'arduino-core' project. 2014-11-13 16:34:25 +01:00
Cristian Maglie
d1f4e0370d arduino-core project is now correctly compiled through ant build script 2014-11-13 16:34:24 +01:00
Cristian Maglie
ba8eadeeb5 Split IDE into 2 projects.
BEWARE: HIGHLY EXPERIMENTAL BRANCH
2014-11-13 16:34:24 +01:00
Claudio Indellicati
2de206cccd Modified preferences initialization in BaseNoGui. 2014-11-13 16:23:46 +01:00
Claudio Indellicati
1974d77abe Added new command line options.
--buildpath
--nouploadport
--useprogrammer
2014-11-13 16:23:46 +01:00
Claudio Indellicati
b2a88ecdd2 Removed inheritance relationship between SketchCodeDocument and SketchCode. 2014-11-13 16:23:46 +01:00
Claudio Indellicati
c2223107b1 Fixed wrong sketch structure check. 2014-11-13 16:23:46 +01:00
Claudio Indellicati
2702ccef0c Added main() and init() methods to BaseNoGui.
Now the the GUI and the rest of the code should be completely separated.
2014-11-13 16:23:46 +01:00
Claudio Indellicati
4d3599b2c4 Moved getBuildFolder() and related members/methods from Base to BaseNoGui. 2014-11-13 16:23:46 +01:00
Claudio Indellicati
6d28e12a41 Moved commandline parsing code from Base/BaseNoGui to new CommandlineParser class. 2014-11-13 16:23:45 +01:00
Claudio Indellicati
035e57e909 Moved getDefaultSketchbookFolder() from Base to BaseNoGui and other minor fixes. 2014-11-13 16:23:45 +01:00
Claudio Indellicati
26a8b37d18 Refactored Base.getDefaultSketchbookFolder() method. 2014-11-13 16:23:45 +01:00
Claudio Indellicati
20582630a5 Moved portableSketchbookFolder from Base to BaseNoGui. 2014-11-13 16:23:45 +01:00
Claudio Indellicati
10af59f6fa Moved some code from Base to BaseNoGui into new getSketchbookPath() method. 2014-11-13 16:23:45 +01:00
Claudio Indellicati
443f7a7150 Moved some parameter processing methods from Base to BaseNoGui. 2014-11-13 16:23:45 +01:00
Claudio Indellicati
abe6ff5f32 Moved onBoardOrPortChange() and related members/methods from Base to BaseNoGui. 2014-11-13 16:23:45 +01:00
Claudio Indellicati
8687a78db5 Removed leftover dependency from SketchCodeDocument in SketchData. 2014-11-13 16:23:45 +01:00
Claudio Indellicati
061d1f14b6 Moved the sketch uploading code from Sketch to Compiler. 2014-11-13 16:23:44 +01:00
Claudio Indellicati
998142d16d Moved last showError() method for Base to BaseNoGui. 2014-11-13 16:23:44 +01:00
Claudio Indellicati
83c61376e0 Split UploaderAndMonitorFactory in two distinct classes. 2014-11-13 16:23:44 +01:00
Claudio Indellicati
0919b0e4fe Moved countLines() and loadFile() from Base to BaseNoGui. 2014-11-13 16:23:44 +01:00
Claudio Indellicati
b0d8a504dd Moved isSanitaryName() and sanitizeName() from Sketch to BaseNoGui. 2014-11-13 16:23:44 +01:00