1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-25 06:22:11 +03:00
Commit Graph

169 Commits

Author SHA1 Message Date
01f726a0e1 Adding linker and deubg scripts 2011-06-21 00:31:20 +02:00
fabdccef78 Deleting unused pins.txt 2011-06-21 00:26:34 +02:00
ec51290d86 Renaming pins folders to variants 2011-06-21 00:25:24 +02:00
dedf1b5fc3 Adding README file at root of tools folders 2011-06-21 00:22:54 +02:00
f4fdcb6e8e Moving all AVR specific libraries to hardware/avr 2011-06-21 00:20:43 +02:00
3da8227878 Removing CodeSourcery toolchain from GIT 2011-06-21 00:08:25 +02:00
be2c9273c2 Adding SAM specific libraries 2011-06-21 00:03:22 +02:00
7c9a03410f Renaming platform components. 2011-06-14 23:49:47 +02:00
6f1482baba Adding Atmel SAM3 specific files 2011-06-01 01:54:47 +02:00
65ce0cd0a2 Modified syscalls.* to fit CPP compilation 2011-06-01 01:53:32 +02:00
49b03a0ea7 Putting back all vectors to libchip (Core based) 2011-06-01 01:24:23 +02:00
799c348db5 Adding needed folder for CS 2011-06-01 00:04:17 +02:00
fdfdd0b4bf Adding minimal libboard with lowlevel init and vectors 2011-05-31 23:17:52 +02:00
f08e822b17 Adding libchip_sam3s into tools, needed to add all SAM3S peripheral drivers 2011-05-31 23:09:42 +02:00
4e0df49a5d Adding CodeSourcery just in case of, to be removed later 2011-05-31 22:04:30 +02:00
8c0fdf1e43 Small optimization in HardwareSerial.
begin(long) -> begin(unsigned long)

Conflicts:

	hardware/arduino/cores/arduino/HardwareSerial.h
2011-05-12 16:58:56 -04:00
1747292711 Optimizing printing of numbers (writing a single buffer).
Fix from Bill Greiman via Limor.
2011-05-07 18:17:32 -04:00
cf044cd236 Adding serialEvent(), serialEvent1(), etc.
Called from within the serial receive interrupt.  These are implemented as an empty weak function in the core that be overridden by the user's sketch.

http://code.google.com/p/arduino/issues/detail?id=263
2011-05-07 13:04:13 -04:00
c740778bf6 Refactoring the UART0 / USART0 receive interrupt handler. 2011-05-07 12:47:43 -04:00
694b8ad392 Changing Serial.flush() to write outgoing data, not drop incoming data.
This brings it in line with most other uses of flush(), both in and out of Arduino.
http://code.google.com/p/arduino/issues/detail?id=497
2011-05-07 12:05:27 -04:00
d12fe18480 Restoring concatenation of built-in types with String. 2011-03-31 10:56:14 -04:00
0ac0dcf158 Adding F("foo") syntax for flash strings. 2011-03-27 15:06:20 -04:00
e3c7a54725 String: removing implicit numeric conversions and new approach to "if (s)".
This makes explicit the String constructors that take numeric types and chars and removes the versions of concat() and operator=() and operator+() that accept numberic types.

It also replaces the operator bool() with a operator that converts to a function pointer.  This allows for uses like "if (s)" but not "s + 123".  See: http://www.artima.com/cppsource/safebool.html.  This allowed removing the disambiguating operator+() functions and relying solely on StringSumHelper and anonymous temporaries once again.

Also, now treating unsigned char's like int when constructing Strings from them, i.e. String(byte(65)) is now "65" not "A".  This is consistent with the new behavior of Serial.print(byte).
2011-03-26 18:52:54 -04:00
efae89ea0e Commenting String API behavior. 2011-03-23 22:42:05 -04:00
7d4073ef73 Return an invalid string (not a partial one) when operator+() fails. 2011-03-19 11:14:17 -04:00
d3a5532d13 Starting to distinguish between empty strings and invalid (null) ones. 2011-03-18 21:45:27 -04:00
6f3ceb399d Protecting String copy() and move(). 2011-03-13 19:39:04 -04:00
488e672ea0 Adding additional String + operators for disambiguation.
The operator bool() means that you could implicitly convert a String to a bool and then add it to it an int, for example.  Which means our operator+ has to match exactly or it will be ambiguous.
2011-03-13 19:31:10 -04:00
cc24d41b74 Moving move() to __GXX_EXPERIMENTAL_CXX0X__ only, adding operator bool(). 2011-03-13 16:46:06 -04:00
f5f2e09636 Modifying String.concat() to return success or failure, not this.
Which means you can't chain multiple concat() calls together, but you can check if they succeeded or not.
2011-03-12 14:03:34 -05:00
6727c8a831 Don't return the string when modifying its value.
Changing toLowerCase(), toUpperCase(), trim() and replace() to return void instead of a reference to the string that's just been changed.  That way, it's clear that the functions modify the string they've been called on.
2011-03-11 18:54:58 -05:00
7fa866ffea Renaming append() back to concat(). 2011-03-11 18:04:31 -05:00
9139094c36 Removing F("string") syntax for now.
We should probably add something like this back in later, but I want to do one thing at a time.  This removes the __FlashStringHelper class as well.
2011-03-11 18:01:40 -05:00
1d9bbc01e3 Rewrite of the String class by Paul Stoffregen.
http://www.pjrc.com/teensy/string_class_experimental.html
2011-03-11 17:56:10 -05:00
6b890f8c7d Fixing typo in boards.txt. 2011-03-09 21:22:04 -05:00
af841d166d Flushing outgoing and incoming data in Serial.end().
That is, waiting for outgoing data to transmit and dropping any received data.
2011-03-06 12:20:42 -05:00
1bef2990b6 Fixing race condition in Serial write (Brian Cook). 2011-03-06 11:47:18 -05:00
10ecfa8bea Moving TCCR1B reset into #ifdef check. 2011-03-06 11:29:35 -05:00
7f0cc2111c Implemented serial transmit buffering.
Now Serial.write() places characters in the transmit buffer, and the data register empty interrupt reads and transmit them.  Based loosely on the implementation here: ftp://wookey.org.uk/arduino.

http://code.google.com/p/arduino/issues/detail?id=262
2011-03-05 14:17:26 -05:00
19597b1d0b Factoring pin definitions out of the core.
That is, there's now a pins/ directory in a platform, which includes multiple directories, each of which has its own pins_arduino.h.  The boards.txt gets a new preferences, <BOARD>.build.pins, whose values is a sub-directory of the pins/ directory (possibly with a "platform:" prefix).  That sub-directory is then placed in the include path during compilation.
2011-03-04 21:05:05 -05:00
afb60e1163 Moving all pin definitions into pins_arduino.h.
This is a step towards providing portability across AVR's by simply including an appropriate header file.
2011-03-03 23:54:33 -05:00
5234a96b34 Rearranging internal #defines in headers. 2011-03-03 18:57:05 -05:00
ba14230883 Removing optimized digitalWrite(), digitalRead(), pinMode(). 2011-03-03 18:46:45 -05:00
4ea2d99c1a Re-arranging header files and small fixes to optimized core functions. 2011-03-02 23:05:25 -05:00
bb7a044884 Moving wiring.h contents into Arduino.h. 2011-03-01 20:00:16 -05:00
d05e4021d0 Renamed WProgram.h to Arduino.h. 2011-03-01 19:52:13 -05:00
97abbd7a31 Removing BYTE keyword (use Serial.write() instead). 2011-02-26 13:58:03 -05:00
d15e9aa98a Merge branch 'master' into new-extension 2011-02-22 22:02:22 -05:00
d180ad18a9 Revert "Changes to optimized digitalWrte(), etc."
This reverts commit aa1f1cbda9.
2011-02-18 10:41:29 -05:00
956a4f2024 Revert "Adding noAnalogWrite() function to disable PWM."
This reverts commit 38d4a34fec.
2011-02-18 10:40:56 -05:00