Commit Graph

290 Commits

Author SHA1 Message Date
Matt Jenkins 908c526c4c Import WString from 1.5.6 2014-04-01 14:46:13 +01:00
Matt Jenkins 3fb1c595d1 Fixed string constructor overloading bug 2014-04-01 14:02:17 +01:00
Cristian Maglie 823d958418 Added license for Client, IPAddressm and Server (master branch)
See #1847 and #1117
2014-02-13 17:49:14 +01:00
Cristian Maglie 291f5493ec Added license for Arduino.h, binary.h and main.cpp (master branch)
See #1847 and #1117
2014-02-13 17:48:47 +01:00
ntruchsess faffdc1585 remove all Changes besides operator== 2013-12-06 19:05:31 +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
Paul Brook 0ade989a2d USB CDC two argument begin()
Add two argument form of Serial_::begin

Signed-off-by: Paul Brook <paul@nowt.org>
2013-09-02 19:15:12 +01:00
Paul Brook c2a0030473 USB serial baud arg type
Make USB Serial_::begin() function take an unsigned long argument for
consistency with HardwareSerial.

Signed-off-by: Paul Brook <paul@nowt.org>
2013-09-02 19:02:55 +01:00
Cristian Maglie 40b622a5d1 Merge branch 'issue1366' of github.com:Lauszus/Arduino into Lauszus-issue1366 2013-07-31 17:22:12 +02:00
Tevin Zhang c8a79d0d0c add String.toFloat 2013-06-06 16:19:34 +02:00
Ryan Esteves 6bef2ada06 Added remove methods to WString 2013-06-05 14:08:59 -04:00
Cristian Maglie ef4e8c6537 Robot has its own core 2013-05-17 11:02:00 +02:00
Fede85 cc5f2a52b4 Added support to INT6 on Leonardo.
Fixes #988
2013-05-13 21:22:59 +02:00
Cristian Maglie eb40f35b2d Added const modifier to String.c_str() 2013-05-06 18:10:29 +02:00
Cristian Maglie 8673113e43 Added c_str() method to String class. 2013-05-06 08:57:06 +02:00
Cristian Maglie ccf7eb9a56 Stream "_timeout" field and related methods are now protected instead of private.
This allows better optimization on classes that extends Stream without losing
timeout capabilities.
2013-05-06 08:52:31 +02:00
Kristian Sloth Lauszus 8d7deb7a1f Removed double instance of the same code 2013-05-02 01:00:17 +02:00
Kristian Sloth Lauszus 0a7b402c45 Check if ATmega32u4 is defined
Needed in order to work with Arduino Leonardo
2013-04-18 00:15:06 +02:00
Kristian Sloth Lauszus 8d26462be2 Removed call to analogPinToChannel for Leonardo 2013-04-18 00:07:33 +02:00
Kristian Sloth Lauszus b9717187fd Use analogPinToChannel if it's defined 2013-04-17 19:49:40 +02:00
Kristian Sloth Lauszus ed42d95412 Added support for all variants of Sanguino 2013-04-04 20:55:15 +02:00
Cristian Maglie f50c307be2 Fix deprecated ISR names for ATmega8.
See #881
2013-03-29 15:17:54 +01:00
Cristian Maglie ab41589c2b Removed deprecated interrupt handlers
Fixes #831 #881 #955 #1123 #1140
2013-03-29 14:41:36 +01:00
Cristian Maglie f39a246be5 Increased malloc margin to 128.
https://github.com/arduino/Arduino/pull/1329#issuecomment-15609148
See #857 #1329
2013-03-29 11:48:35 +01:00
Cristian Maglie f567db7573 Backported malloc and realloc from avr-libc 1.8.0 (without test code)
See #857
2013-03-23 21:40:52 +01:00
David A. Mellis aa218e803a Use analogPinToChannel() macro if present for ATtiny25/45/85.
This allows use of A0, A1, A2, A3 constants and for them to be mapped to the appropriate analog input channel. It should only be used if the macro is actually defined.
2013-03-06 17:49:44 -05:00
Cristian Maglie 09b755fb9c Add trivial new[] and delete[] operators (Justin R. Cutler)
Fixes #73
Fixes #883
2012-12-16 14:30:12 +01:00
Cristian Maglie 025ec2bc84 Fixed malloc() bug. (Paul Stoffregen)
Fixes #857
2012-12-16 14:16:35 +01:00
Cristian Maglie 1668039101 Added support for Arduino Esplora 2012-12-07 18:11:07 +01:00
David A. Mellis 9d638ca052 Clarifying comment. 2012-11-29 13:55:59 -05:00
David A. Mellis 4a01b84cab Moving TXCO definition into HardwareSerial.cpp from HardwareSerial.h.
Otherwise, you get an error when compiling for processors with no serial port because the header file is always compiled.

See, for an example of the problem: https://github.com/damellis/attiny/issues/8
2012-11-29 13:48:01 -05:00
David A. Mellis 769aab0115 HardwareSerial: change byte to uint8_t (since byte definition isn't present). 2012-11-02 09:24:51 -04:00
David A. Mellis cfec7864e9 Adding LilyPad Arduino USB. 2012-11-01 10:45:50 -04:00
David A. Mellis 42ca56fb83 Adding Micro. 2012-10-27 14:12:26 -04:00
David A. Mellis 69fa44473b Updating USB core to work at 8 MHz (different PLLCSR value). 2012-10-18 15:03:23 -04:00
David A. Mellis 6d296e0fab Adding ATmega644P check to ATmega1284P check. 2012-10-09 13:53:09 -04:00
David A. Mellis 1a0f22225b Moving ATmega32U4 Timer 2 #undef's to Leonardo pins_arduino.h file. 2012-09-13 09:19:52 -04:00
David A. Mellis 999619579b Merge pull request #102 from sgk/leonardoTone
Fix for tone() on Leonardo.
2012-09-13 06:07:10 -07:00
Peter Van Hoyweghen dc86d26a11 Avoid serial buffer overrun on leonardo 2012-09-13 08:46:45 -04:00
David A. Mellis 5ca747e312 Changing setting of the UMSELn bits (for UART mode) and serial config values.
Before, the UMSELn1 bit was being to set to 1, putting the UART into a reserved mode. Now, we only set the high (0x80) bit to 1 for the ATmega8, which is needed to access UCSRnC (whose i/o address is shared with UBRRH).

Also, no longer bitwise-or the new config with the existing register value, because we're actually configuring all the settings in the register. (We're not using UCPOL, but it's supposed to be 0 in asynchronous mode.)
2012-08-30 08:47:35 -04:00
David A. Mellis 1650169f5d Renaming serial config constants to, e.g., SERIAL_8N1. 2012-08-30 08:21:12 -04:00
David A. Mellis 6542625bc2 Merge pull request #109 from Alarus/master
Serial.begin() parameter to set data bits, parity, stop bits.
2012-08-30 05:08:28 -07:00
David A. Mellis 70b6f11d63 Fixing Serial.flush() breakage on Leonardo (WestFW).
http://code.google.com/p/arduino/issues/detail?id=1020
2012-08-30 07:44:25 -04:00
David A. Mellis 912092b03f Fixing ATmega8 breakage from flush() change. (WestFW)
http://code.google.com/p/arduino/issues/detail?id=1019
2012-08-29 20:52:30 -04:00
David A. Mellis c29b408a9d Adding overloads so Serial.write(0) works.
http://code.google.com/p/arduino/issues/detail?id=1006
2012-08-29 16:32:05 -04:00
David A. Mellis 00ab72619e Serial.flush() waits for last character to be transmitted (michele.mazzucchi)
http://code.google.com/p/arduino/issues/detail?id=871
2012-08-28 08:02:54 -04:00
Adam Dunlap c40ab91c41 Fix issue 866
Fix issue 866 by adding a const qualifier to what the F macro casts to.
2012-08-16 20:59:33 -07:00
Alarus af8ff1d1e0 Update hardware/arduino/cores/arduino/HardwareSerial.cpp
New Serial.begin(baud, config);
2012-08-14 19:55:13 +06:00
Alarus 1cda182f33 Update hardware/arduino/cores/arduino/HardwareSerial.h
New Serial.begin(baud, config);
2012-08-14 19:52:00 +06:00