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

2888 Commits

Author SHA1 Message Date
Cristian Maglie
ae4427f2ea Fixed compile problem for Leonardo after 0bd6a2d20f 2013-07-26 12:50:17 +02:00
Matthijs Kooijman
f50372a2a6 Make private members of HardwareSerial protected
This allows users to create subclasses.

Closes: #947
2013-07-26 12:41:35 +02:00
Matthijs Kooijman
0bd6a2d20f Move buffers into HardwareSerial
This removes the need for doing an extra pointer dereference on every
access to the buffers, shrinking the code by around 100 bytes.

The members for these buffers must be public for now, since the
interrupt handlers also need to access them. These can later be made
private again.

Furthermore, the struct ring_buffer was removed. This allows the all
head and tail pointers to be put into the HardwareSerial struct before
the actual buffers, so the pointers all end up in the first 32 bytes of
the struct that can be accessed using a single instruction (ldd).

References: #947
2013-07-26 12:39:56 +02:00
Matthijs Kooijman
e0a9a7676b Use uint8_t for HardwareSerial ringbuffer pointers
Since the buffers aren't bigger than 64 bytes, these values can be
smaller. This saves a few bytes of ram, but also saves around 50 bytes
of program space, since the values can now be loaded using a single
instruction.

To prevent problems when people manually increase the buffer size, a
compile-time check is added.

Closes: #1078
2013-07-26 12:18:56 +02:00
Cristian Maglie
d6a5e41b5c Fixed usb_products on some AVR boards 2013-07-22 12:30:25 +02:00
Cristian Maglie
f8d32a0659 Parametric USB configuration for Arduino Due (experimental) 2013-07-22 12:29:02 +02:00
Cristian Maglie
f8ec9418d1 Fixed bug in StringReplacer 2013-07-19 16:08:36 +02:00
Cristian Maglie
c32c3517a5 Added quoting to usb_product key to preserve double quotes.
See #1422.
2013-07-17 14:42:41 +02:00
Angus Gratton
1a99be33a3 Remove hardcoded product names (all provided for in boards.txt) 2013-07-17 14:38:05 +02:00
Angus Gratton
6abdeecbf5 Fix whitespace (tabify), oops 2013-07-17 14:37:49 +02:00
Angus Gratton
a7ad83cb73 boards.txt: Refactor the default usb build flags into a generic property in platform.txt 2013-07-17 14:37:39 +02:00
Angus Gratton
15e73e8daa Allow USB product and manufacturer strings to be supplied in boards.txt 2013-07-17 14:37:29 +02:00
Cristian Maglie
ee8110e731 Updated StringReplacer.quotedSplit() to accept more than one quote char. 2013-07-17 14:36:20 +02:00
Cristian Maglie
c70cba8fcd Fixed translated text string. Show warning message during loading of TargetPlatforms 2013-07-15 21:25:21 +02:00
Cristian Maglie
3a68385c07 Merge branch 'ide-1.5.x-thirdpartyboardprofiles' of github.com:projectgus/Arduino into projectgus-ide-1.5.x-thirdpartyboardprofiles
Conflicts:
	app/src/processing/app/debug/BasicUploader.java
2013-07-15 21:06:02 +02:00
Cristian Maglie
65c36f2eb6 Merge branch 'master' into ide-1.5.x 2013-07-14 11:51:50 +02:00
Cristian Maglie
f604881d40 assembly compile recipe is missing (C. A. Church)
Fixes #1457
2013-07-12 21:09:45 +02:00
Cristian Maglie
598ab1d5c0 Merge pull request #1465 from mcoms/patch-1
Update incorrect docs in tonePitchFollower example
2013-07-12 11:11:27 -07:00
Cristian Maglie
7f87574f7e Hardened upload.tool property reading code for boards.txt
Fixes #1464
2013-07-12 20:05:58 +02:00
Cristian Maglie
8ab419fd13 Better error handling for missing preferences.
Fixes #1471
2013-07-12 19:50:57 +02:00
Cristian Maglie
c24b3f6489 IDE didn't stop if an invalid library is found 2013-07-12 16:22:51 +02:00
Fede85
92ad5f039c added some String methods syntax highlighting 2013-07-01 18:47:13 +02:00
Cristian Maglie
8e20bc7b43 String: fixed number of whitespaces in concat() methods 2013-06-28 09:53:25 +02:00
Cristian Maglie
f57a00ea6c String: changed default to 2 decimal digits 2013-06-21 21:23:12 +02:00
Cristian Maglie
d101bf51a2 [sam] 2 bugfix to SPI library.
- begin() after end() now works.
- unconnected SPI pin is selected as CS when old (non extended) API is used.
2013-06-21 19:58:08 +02:00
Federico Fissore
8b0b0a7d68 new librxtxSerial64 compiled on debian with glibc 2.13 2013-06-21 18:12:41 +02:00
Nick
ad500ae24d Update incorrect docs in tonePitchFollower example
The comments state that the speaker should be on pin 8, but the code references pin 9. Updated the comments to reflect the correct pin.
2013-06-11 14:47:15 +02:00
Mikal Hart
fc8103c969 Minor typo correction
formely->formerly
2013-06-08 12:37:51 -05:00
Cristian Maglie
a2e7413d22 More efficient dtostrf() emulation on ARM 2013-06-06 23:11:43 +02:00
Cristian Maglie
81d41fc761 Updated revision log 2013-06-06 20:07:02 +02:00
Cristian Maglie
ba7fb5518f Fixed buffer overflow on String class (Paul Stoffregen) 2013-06-06 20:04:43 +02:00
Cristian Maglie
f80c6c5f35 Merged various bugfix / improvements to String class.
Merge branch 'master' into ide-1.5.x
2013-06-06 19:54:58 +02:00
Cristian Maglie
1130fede3a Added support for Flash string on String class. 2013-06-06 16:33:20 +02:00
Cristian Maglie
b341a7c751 String class: removed deep copy on substring method.
Small code cleanup.
2013-06-06 16:33:20 +02:00
Cristian Maglie
16b7b67c47 Fixed problem with % processing on .po files. Fixed quote ' processing on I18N lib. 2013-06-06 16:33:20 +02:00
Tevin Zhang
82a2c1d3d9 add String.toFloat 2013-06-06 16:19:34 +02:00
Ryan Esteves
0778f8a3f3 Added remove methods to WString 2013-06-05 14:08:59 -04:00
Cristian Maglie
3394f61276 Merged 1.0.5 2013-05-29 18:30:36 +02:00
Fede85
22320dbc07 keywords syntax highlighting corrected in SoftwareSerial library
Fixed #1426
2013-05-24 18:26:36 +02:00
Fede85
5481bacba2 Fixes #1432 2013-05-23 16:24:38 +02:00
Cristian Maglie
ec7996e8be Reintroduced copy error button.
Revert "Reverted 'copy error' button for 1.0.5, waiting for a better UI design"

This reverts commit cf4584eb29.
2013-05-22 12:19:59 +02:00
Fede85
4486a922fc UOTGVBOF is now active high 2013-05-20 19:21:23 +02:00
Scott Fitzgerald
203ca4f2fa Fixed spelling error in Horizon example 2013-05-18 10:07:22 +04:00
Cristian Maglie
22997bbfd5 Fixed upload for robot boards 2013-05-17 19:52:32 +02:00
Cristian Maglie
4c73b8c0f3 Fixed upload for robot boards 2013-05-17 19:40:57 +02:00
dcuartielles
f28faa3b2d added a better configurarion string for the line following example 2013-05-17 13:58:43 +02:00
dcuartielles
b2c17f9812 Added notification about the need of the IR-Remote library 2013-05-17 13:34:49 +02:00
dcuartielles
aa800e8b0e added a better configurarion string for the line following example 2013-05-17 13:25:27 +02:00
Cristian Maglie
82511def8e Merge remote-tracking branch 'arduino/TFT_display' 2013-05-17 12:47:27 +02:00
Fede85
ee6a833b7b added the TFT display library 2013-05-17 12:39:31 +02:00