Commit Graph

1132 Commits

Author SHA1 Message Date
Matthijs Kooijman 1978e82e4e Use PGM_P instead of prog_char
On later versions of avr-libc, prog_char is deprecated. In 0acebeeff48
the one occurence of prog_char was replaced by "char PROGMEM", which is
not entirely correct (PROGMEM is supposed to be an attribute on a
variable, not on a type, even though this is how things work in older
libc versions). However, in 1130fede3a2 a few new occurences of
prog_char are introduced, which break compilation on newer libc versions
again.

This commit changes all these pointer types to use the PGM_P macro from
<avr/pgmspace.h>. This macro is just "const char *" in newer libc
versions and "const prog_char *" in older versions, so it should always
work.

References #795
2013-12-31 20:01:40 +01:00
Cristian Maglie 15417bab95 Merge pull request #1762 from matthijskooijman/ide-1.5.x-write-char
Support both char* and uint8* in Stream and Print
2013-12-30 10:58:03 -08:00
Kristian Lauszus ad9f78d727 Use reinterpret_cast to cast __FlashStringHelper to const char* 2013-12-27 20:01:03 +01:00
Matthijs Kooijman 94cf4c2830 Remove unneeded casts in Print::write(const String&)
Now that Print::write(const char*) is also available, these casts are no
longer needed.
2013-12-24 13:22:43 +01:00
Matthijs Kooijman 0fd4002607 Add uint8_t* versions of methods in Stream
The new functions just call their char* equivalents, but this allows
reading bytes into a buffer of uint8_t as well as chars.
2013-12-24 13:22:42 +01:00
Matthijs Kooijman 7ded037878 Add Print::write(const char *, size_t)
The new function just calls Print::write(const uint8_t *, size_t), but
this allows writing out a buffer of chars (without having to learn about
casts).
2013-12-24 13:22:42 +01:00
Federico Fissore dce9146485 Print.print optimization. Closes #1760 2013-12-23 11:50:39 +01:00
Cristian Maglie 1a7346f8e4 Merge branch 'master' of github.com:arduino/Arduino 2013-12-13 18:26:44 +01:00
Cristian Maglie a0cd735f45 Merge branch 'pins-define' into ide-1.5.x 2013-12-13 15:09:40 +01:00
Cristian Maglie a2cc9674ba Changed pins definition in variants from constants to #defines. 2013-12-13 14:37:26 +01:00
Cristian Maglie ed03068b0a Removed redefinitions of SERIAL_* in Yun variant 2013-12-13 14:22:46 +01:00
Cristian Maglie 1131297fe3 Merge remote-tracking branch 'arduino/master' into ide-1.5.x
Conflicts:
	libraries/Ethernet/EthernetClient.cpp
2013-12-09 18:31:43 +01:00
Matthijs Kooijman 2eb6101744 In boards.txt, rename atmega328diecimila to diecimila
This board has a "cpu" submenu to select either atmega328 or atmega168,
so it does not make sense to put atmega328 in the main board name.
2013-12-08 18:16:31 +01:00
ntruchsess faffdc1585 remove all Changes besides operator== 2013-12-06 19:05:31 +01:00
Cristian Maglie dd5ce6134e Upped version to 1.5.5 2013-11-28 10:53:50 +01:00
ntruchsess 6cdf45953f add localPort to EthernetClient, simplify operator== 2013-11-27 10:40:57 +01:00
ntruchsess 68e218dda8 add operator==, remoteIP and remotePort to EthernetClient 2013-11-26 00:12:44 +01:00
Cristian Maglie 66ca83a809 Revert "SPI library to new format" 2013-11-21 15:05:36 +01:00
Cristian Maglie 0dcd4b2209 Revert "EEPROM library to the new format"
This reverts commits:
3223d4fdca32ec03de4a3a2a0c22f2d40de5f374
77f8dd63ab102ab5d2929ac4edd5c00ae9d70493
2013-11-21 11:22:44 +01:00
Cristian Maglie a5d1990afd Revert "SoftwareSerial library to the new format"
This reverts commit 38c3bbbd3c83eda057d4857635fbd78a4785c3a4.
2013-11-15 12:54:59 +01:00
Cristian Maglie f0fa1fd39a Revert "Wire library to the 1.5 format"
This reverts commit a31857688bdc270ed65307755ff3b73ef4867982.
2013-11-15 12:54:59 +01:00
Cristian Maglie 2dd6b14b21 Removed redundant LED_BUILTIN define in Yun variant. 2013-11-12 14:31:51 +01:00
Cristian Maglie 3f0cac9021 Merge pull request #1634 from cmaglie/adc-fix
Improved ADC speed on Arduino Due
2013-11-12 00:57:28 -08:00
Cristian Maglie 59edeb17e6 Merge branch 'master' into serial-variant 2013-11-11 14:01:09 +01:00
Cristian Maglie 3b51f9589f Fix SERIAL_* metadata in Arduino Ethernet variant 2013-11-11 13:54:50 +01:00
Cristian Maglie 96fa9f231e Added SERIAL metadata into variant files. 2013-11-11 13:41:04 +01:00
Cristian Maglie 79d9da6058 Merge branch 'master' into serial-variant 2013-11-11 13:03:21 +01:00
Cristian Maglie 2398409fbf Added SERIAL metadata into variant files. 2013-11-11 11:39:37 +01:00
Kristian Lauszus 09fd6d7b0a Added VID and PID for older Arduino Unos 2013-11-11 02:41:44 +01:00
Cristian Maglie a2c36f7207 Merge branch 'master' into ide-1.5.x 2013-11-03 18:18:09 +01:00
Cristian Maglie 9d48a36616 Changed LED_BUILTIN to a macro to better support boards that do not have a built-in LED.
Fixes #758
2013-11-03 18:10:22 +01:00
Cristian Maglie 0e5e67e23d Added LED_BUILTIN constant to Leonardo board 2013-11-03 18:07:01 +01:00
Cristian Maglie ac2ce91009 Merge branch 'master' into ide-1.5.x 2013-11-03 14:00:42 +01:00
Cristian Maglie 24dc51bfde Added Arduino Ethernet variant.
Fixes #925
2013-11-03 13:52:08 +01:00
Cristian Maglie 9b4562c4c5 Using NOT_AN_INTERRUPT defined constant 2013-10-31 12:44:24 +01:00
Cristian Maglie d9f140b386 Added digitalPinToInterrupt also to robot variants 2013-10-31 12:44:05 +01:00
Cristian Maglie c7baecc1f6 Added pinToInterrupt() variant macro (Paul Stoffregen) 2013-10-31 12:43:41 +01:00
Fede85 513089156b Merge remote-tracking branch 'origin/ide-1.5.x' into ide-1.5.x 2013-10-14 17:19:48 +02:00
Federico Fissore 5cbb7ba8ad merge 2013-10-14 12:42:42 +02:00
Fede85 295043ddbf Merge remote-tracking branch 'origin/ide-1.5.x' into ide-1.5.x 2013-10-10 20:59:01 +02:00
Cristian Maglie d27087455d 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
2013-10-09 17:00:40 +02:00
Cristian Maglie 7ab357165c Merge branch 'mega-adk' of github.com:Lauszus/Arduino into Lauszus-mega-adk 2013-10-09 16:45:05 +02:00
Jacques Supcik 85018c2f47 Fix indentation (cosmetic) 2013-10-06 10:59:53 +02:00
Kristian Sloth Lauszus 3f7d86a779 Combine Mega and Mega 2560 2013-10-03 20:36:25 +02:00
Kristian Sloth Lauszus df7828d082 Split Arduino ADK into separate board 2013-10-03 20:32:28 +02:00
Cristian Maglie d7ed6ec361 Merge branch 'master' into ide-1.5.x 2013-09-30 16:25:10 +02:00
Federico Fissore acc2067627 Added yun variant with LED_BUILTIN definition. Closes #1585 2013-09-30 10:07:03 +02:00
Federico Fissore 7aea84e42f Removed wrong executable flag on many files 2013-09-27 18:18:51 +02:00
Federico Fissore b018e810ef boards.txt: fixed wrong extended fuses when using external programmer with a yun 2013-09-25 17:25:31 +02:00
Cristian Maglie 452387a184 Fix wrong 'maximum_data_size' key in boards.txt 2013-09-13 20:05:38 +02:00