Matthijs Kooijman
5b83043290
Include stdint.h from IPAddress.h on SAM
...
This happened for AVR in 34885b01
, this commit makes the SAM version
identical again.
2014-02-18 21:10:35 +01:00
Cristian Maglie
397046a844
Added license for Arduino.h, binary.h and main.cpp
...
See #1847
2014-02-10 12:55:16 +01:00
Cristian Maglie
9eb0c1495c
Added license for Client, IPAddressm and Server
...
See #1847
2014-02-10 12:55:16 +01:00
Matthijs Kooijman
dde1a7541f
Make some operators in IPAddress const
...
These functions do not modify the IPAddress object, but were not marked
as const. This meant that you could not do:
void set_ip(const IPAddress& ip) {
uint32_t copy = ip;
}
Since calling operator uint32_t() on ip would discard the constness of
the reference.
2014-01-15 16:20:48 +01:00
Federico Fissore
dfe77f388d
Removed = char from #define. See https://github.com/arduino/Arduino/issues/1792#issuecomment-31650586
2014-01-06 18:20:37 +01:00
Federico Fissore
9fce7f1839
Added new EULER constant. Fixes #1792
2014-01-06 09:48:34 +01:00
Cristian Maglie
673847c8b6
Improved portability of String class (maniacbug)
2014-01-01 17:22:40 +01:00
Cristian Maglie
90ab663146
sam: moved "variant" methods into proper place
2013-12-31 20:57:14 +01:00
Matthijs Kooijman
98777e816f
Use PGM_P instead of prog_char
...
On later versions of avr-libc, prog_char is deprecated. In 0acebeeff4
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 1130fede3a
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
0b72c88b42
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
Cristian Maglie
825d8c8455
sam: Optimized delayMicroseconds() (Rob Tillaart)
...
See #1121
2013-12-30 12:17:50 +01:00
Matthijs Kooijman
2ea12d0220
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
f304abe35f
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
250386802f
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
Cristian Maglie
660c7d86fd
Optimized Print::print(String&) (part 2)
2013-12-23 12:04:15 +01:00
Cristian Maglie
b530742603
[sam] Fixed regression in analogRead() (fails to read multiple channels) (Mark Tillotson)
...
See #1740 #1634
http://forum.arduino.cc/index.php?topic=203322.msg1509907#msg1509907
2013-12-18 15:46:42 +01:00
Cristian Maglie
a1c4809105
[sam] Fixed regression in analogRead() (fails to read multiple channels)
...
Fixes #1740
2013-12-16 11:07:45 +01:00
Cristian Maglie
2e7b645571
[sam] Fixed wrap-around bug in delay() (Mark Tillotson)
...
Fixes #1736
2013-12-14 00:33:57 +01:00
Cristian Maglie
3ba9480972
Merge pull request #1634 from cmaglie/adc-fix
...
Improved ADC speed on Arduino Due
2013-11-12 00:57:28 -08:00
Cristian Maglie
8f1e3fd703
Using NOT_AN_INTERRUPT defined constant
2013-10-31 12:44:24 +01:00
Cristian Maglie
1fc54f5003
[sam] Improved analogRead speed.
...
See #1418
2013-10-21 12:38:37 +02:00
Cristian Maglie
a21d92e5c8
[sam] Added empty Serial::begin() with options for CDC-ACM
...
See #1563
2013-09-30 16:27:07 +02:00
Cristian Maglie
c86eed942d
Fixed String class regression after f80c6c5f35
...
This should make explicit String-from-integer constructor working again:
int a = 10;
String(a, 4);
2013-09-03 18:40:30 +02:00
Cristian Maglie
00210189fe
Removed unused flags from String (free 1 byte of SRAM)
2013-08-20 15:15:47 +02:00
Cristian Maglie
f8d32a0659
Parametric USB configuration for Arduino Due (experimental)
2013-07-22 12:29:02 +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
a2e7413d22
More efficient dtostrf() emulation on ARM
2013-06-06 23:11:43 +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
a46259a0cf
Merged 1.0.5
...
Still missing:
- updates to WiFi lib for sam.
- updates to examples of Ehternet and WiFi for sam.
Merge remote-tracking branch 'arduino/master' into ide-1.5.x
Conflicts:
app/src/processing/app/Base.java
app/src/processing/app/Editor.java
app/src/processing/app/helpers/FileUtils.java
app/src/processing/app/i18n/Resources_fr.po
app/src/processing/app/i18n/Resources_fr.properties
build/shared/revisions.txt
hardware/arduino/avr/libraries/Ethernet/examples/DnsWebClient/DnsWebClient.ino
hardware/arduino/avr/libraries/WiFi/examples/WifiChatServer/WifiChatServer.ino
hardware/arduino/avr/libraries/WiFi/examples/WifiPachubeClient/WifiPachubeClient.ino
hardware/arduino/avr/libraries/WiFi/examples/WifiPachubeClientString/WifiPachubeClientString.ino
hardware/arduino/avr/libraries/WiFi/examples/WifiTwitterClient/WifiTwitterClient.ino
hardware/arduino/avr/libraries/WiFi/examples/WifiUdpSendReceiveString/WifiUdpSendReceiveString.ino
hardware/arduino/avr/libraries/WiFi/examples/WifiWebClient/WifiWebClient.ino
hardware/arduino/avr/libraries/WiFi/examples/WifiWebClientRepeating/WifiWebClientRepeating.ino
hardware/arduino/avr/libraries/WiFi/examples/WifiWebServer/WifiWebServer.ino
libraries/WiFi/examples/WiFiChatServer/WiFiChatServer.ino
libraries/WiFi/examples/WiFiPachubeClient/WiFiPachubeClient.ino
libraries/WiFi/examples/WiFiPachubeClientString/WiFiPachubeClientString.ino
libraries/WiFi/examples/WiFiTwitterClient/WiFiTwitterClient.ino
libraries/WiFi/examples/WiFiUdpSendReceiveString/WiFiUdpSendReceiveString.ino
libraries/WiFi/examples/WiFiWebClient/WiFiWebClient.ino
libraries/WiFi/examples/WiFiWebClientRepeating/WiFiWebClientRepeating.ino
libraries/WiFi/examples/WiFiWebServer/WiFiWebServer.ino
libraries/WiFi/examples/WifiChatServer/WifiChatServer.ino
libraries/WiFi/examples/WifiPachubeClient/WifiPachubeClient.ino
libraries/WiFi/examples/WifiPachubeClientString/WifiPachubeClientString.ino
libraries/WiFi/examples/WifiTwitterClient/WifiTwitterClient.ino
libraries/WiFi/examples/WifiUdpSendReceiveString/WifiUdpSendReceiveString.ino
libraries/WiFi/examples/WifiWebClient/WifiWebClient.ino
libraries/WiFi/examples/WifiWebClientRepeating/WifiWebClientRepeating.ino
libraries/WiFi/examples/WifiWebServer/WifiWebServer.ino
2013-05-11 14:37:25 +02:00
stimmer
00bc1639c4
Changed micros() to work in interrupts
2013-05-03 13:38:48 +02:00
Cristian Maglie
0f5a5259ec
Added avr/pgmspace.h compatibility layer for Due Boards
...
Fixes #1317
2013-03-15 12:39:04 +01:00
Cristian Maglie
7f7637c782
Fixed delayMicrosecond() when interrupts are disabled
2013-02-13 15:41:31 +01:00
Cristian Maglie
6b25f0c0ba
Merge pull request #1255 from cmaglie/usbcdc-loopback-fix
...
Fixed SerialUSB data handshake when host sends a lot of data (PeterVH, stimmer)
2013-02-06 03:30:12 -08:00
Cristian Maglie
5edc110f61
[sam] attachInterrupt() now works also on pins that belongs to PORTD
2013-02-02 17:14:30 +01:00
Cristian Maglie
d66d4c4793
Fixed SerialUSB data handshake when host sends a lot of data (PeterVH, stimmer)
2013-01-29 11:20:20 +01:00
Cristian Maglie
e72eaa858a
Fixed CDC_SERIAL_BUFFER_SIZE macros (PeterVH)
2013-01-27 12:49:25 +01:00
Cristian Maglie
95cadfef12
Fixed USBSerial.write() while sending big buffers (Bill Dreschel)
2013-01-25 15:55:35 +01:00
vd
ac2255b6d5
modified analogWrite to wait for end of conversion
2013-01-06 17:53:59 +01:00
Cristian Maglie
70351fc341
Fix BSoD for Windows (louismdavis)
...
http://arduino.cc/forum/index.php/topic,129869.0.html
2012-11-19 23:44:06 +01:00
Cristian Maglie
65f00a69c7
Fixed weak-symbol issue with system interrupt handlers.
2012-11-19 23:37:19 +01:00
Cristian Maglie
c68a0f5875
Fixed portOutputRegister() and portInputRegister() macros.
...
http://arduino.cc/forum/index.php/topic,130714.0.html
2012-11-05 16:52:57 +01:00
Cristian Maglie
73649c2f60
Fixed digitalPinToPort and digitalPinToBitMask macros. (thanks to alvesjc)
2012-11-04 23:39:02 +01:00
Cristian Maglie
969e29befb
Do not yield during delayMicroseconds
2012-11-03 23:47:32 +01:00
Cristian Maglie
a72cfc3087
Fixed analogWrite() when writing on both DACs. Thanks to smay4finger
...
for providing the patch.
http://code.google.com/p/arduino/issues/detail?id=1092
http://arduino.cc/forum/index.php/topic,129765.msg980913.html
2012-11-03 20:18:32 +01:00
Cristian Maglie
0f23634230
{attach,detach}Interrupt() on Due selects directly pin number instead of interrupt number.
2012-11-02 19:48:04 +01:00
Cristian Maglie
107c1929bd
Added general yield()-hook for cooperative scheduling development
2012-10-31 01:37:37 +01:00