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

1590 Commits

Author SHA1 Message Date
2da65f6d18 fix C&P Fail 2015-04-01 22:52:09 +02:00
9e142f04ca rewrite HardwareSerial code for UART0 + UART1 support in ESP8266 2015-04-01 22:47:13 +02:00
8b081ebe96 Enable reset control for generic esp8266 boards
Close #22
2015-04-01 21:12:25 +03:00
281d29185f Merge pull request #4 from Sermus/esp8266_disable_SerialMonitor_RTSDTR
Add option to disable DTR and RTS in serial monitor
2015-04-01 21:05:48 +03:00
0dabb25963 Added to configuration options to disable ArduinoIDE SerialMonitor to set DTR and RTS active when the Monitor is opened 2015-04-01 13:41:36 +03:00
422a446950 Add -DESP8266 preprocessor flag
Close #26
2015-04-01 09:18:57 +03:00
a74213f08e Merge igrr/esp8266 into esp8266
remove the need to set programmer, by setting upload tool
  remove trailing whitespace

Conflicts:
	hardware/esp8266com/esp8266/boards.txt
2015-04-01 09:10:49 +03:00
1d6a7422c6 remove the need to set programmer, by setting upload tool 2015-04-01 09:08:28 +03:00
7dda022b60 remove trailing whitespace 2015-04-01 09:08:02 +03:00
2104664c87 Merge pull request #2 from Sermus/esp8266_upload_speed_selection
Upload speed selection for ESP01
2015-04-01 09:05:02 +03:00
f7eef29ef0 Upload speed selection for ESP01 2015-04-01 07:53:54 +03:00
644c0efeab Initial ESP8266 HW SPI implementation
ILI9341 lib as a client for SPI lib
2015-04-01 07:10:31 +03:00
8e6ef666aa remove the need to set programmer, by setting upload tool 2015-03-31 19:43:49 -04:00
a3fa9326b9 remove trailing whitespace 2015-03-31 19:39:34 -04:00
3278e1a448 Add missing __FlashStringHelper definition 2015-03-31 12:05:56 +03:00
b64079f539 Update to SDK 1.0.0
Fixes #1
2015-03-30 00:50:24 +03:00
cb799b670d fix platform file to support Arduino Eclipse Plugin
fixes #2
2015-03-30 00:03:09 +03:00
260aee75f7 Fix cbuf::read and cbuf::peak return types
Fixes #12
2015-03-29 18:21:32 +03:00
1922814352 Update maintainer info 2015-03-27 12:18:06 +03:00
2b2a4131a3 Move esp8266 platform from "arduino" into "esp8266com" 2015-03-27 12:11:55 +03:00
c540bbab00 Merge 1.6.1 into esp8266
* commit 'b8b2869753d488bfd203615637e1de3912589a92': (68 commits)
  Updated revisions.txt
  Fixed wrong path in successful message
  arduino-core: restored debug info in class files
  Fixed NPE in case of missing boardData
  Added missing translations
  Added windows drivers
  Added warning for uncertified boards
  Update revision.txt
  update revisions.txt
  SoftwareSerial: match bool API with HardwareSerial
  Fix to save as to parent folder is needed by all OSs, not just Mac
  Update revision.txt
  MacOSX: previous better IDE was missing some pieces. Added
  MacOSX: better IDE
  Updated revisions.txt
  NEW button now behaves as clicking File -> New menu entry. Fixes #2685
  Windows: bundled JRE updated to 8u31 build.xml now uses unzip target
  Added .getParentFile() to saveas for mac. This prevents saving into the sketch itself
  Compound edits weren't part of the undo/redo dance
  An undoable action marks the sketh as modified
  ...
2015-03-27 11:18:48 +03:00
22ea72a2d6 Add ESP8266WebServer library 2015-03-27 11:17:45 +03:00
211045f91c Improve i2c waveforms 2015-03-19 23:45:03 +03:00
39d1dfc999 Added warning for uncertified boards 2015-03-10 08:52:41 +01:00
6a86cbc793 Merge branch 'ide-1.5.x' into SoftwareSerial 2015-03-05 12:33:35 +01:00
b95533ffd0 SoftwareSerial: match bool API with HardwareSerial 2015-03-05 12:30:01 +01:00
606604d7d6 Update revision log. Version set to 1.6.1. 2015-02-19 18:22:43 +01:00
6d0e7c9e49 Implement remoteIP and remotePort in WiFiUDP 2015-02-17 01:38:35 +03:00
a39364193f "objcopy" recipes are no more tied to "hex" extension
This allow to define specific recipes for every platform
but keeps backward compatibility.

See #2614
2015-02-16 14:39:55 +01:00
c46c242f0b Fix WiFiClient assignment operator 2015-02-16 03:02:42 +03:00
345f90d167 Fix error with missing softAPmacAddress function 2015-02-12 16:37:58 +03:00
f7b954cef7 fix i2c frequency setup 2015-02-11 18:21:14 +03:00
79a74aa667 rename hex -> output
using generic term 'output', because for samx32,
output is .bin format and not .hex

Signed-off-by: Arnav Gupta <championswimmer@gmail.com>
2015-02-10 04:31:51 +05:30
c7e363ca7b Merge arduino/master into esp8266
* commit '71c39489180723b13cabe3c07e3994a239f8a03e':
  Updated translations
  Updated offline docs
  Corrected some email contacts.
  MacOS tests fix: new way of discovering work dir conflicts with tests execution. Fixed.
  Updated build_pull_request.bash
  Renamed mac build from "macosxnew" to "macosx-java-latest"
  Updated revision log. Version set to 1.6.0rc3
  build.xml and mac. Change in platform names: macosx now macosxnew, oldmacosx now macosx
  Fixed bug with paths with spaces
  build_pull_requests now builds oldmacosx as well
  Macosx: new appbundler, new macosx builds. Use platform=macosx and platform=oldmacosx
  build_pull_requests now moves the artifacts to the parent folder: this allows calling "clean" target before each build
  build.xml linux-clean target was not deleting old linux builds
  Fix typos in BlinkWithoutDelay.ino

Conflicts:
	build/build.xml
2015-02-09 17:39:30 +03:00
e93be4855f Corrected some email contacts. 2015-02-05 16:47:22 +01:00
edccc2c158 Add parameter to set channel in softAP mode 2015-02-03 12:30:08 +03:00
30086663f1 Update to SDK 0.9.5 2015-02-03 12:26:43 +03:00
b88ab3b29a Update keywords for ESP8266WiFi library 2015-02-03 09:05:18 +03:00
fa5103d413 Allow mDNS on any interface 2015-02-03 09:04:20 +03:00
5b593d59a1 Add mDNS library for esp8266 2015-02-01 01:55:37 +03:00
2c8be15274 Add support for multicast UDP 2015-02-01 01:52:23 +03:00
4c574ff4f5 Disable TCP/UDP debug by default 2015-02-01 01:51:46 +03:00
90ca3934f2 Prevent low pulse on TX initialization in SoftwareSerial
Previously, the TX pin would be set to output first and then written
high (assuming non-inverted logic). When the pin was previously
configured for input without pullup (which is normal reset state), this
results in driving the pin low for a short when initializing. This could
accidenttally be seen as a stop bit by the receiving side.

By first writing HIGH and then setting the mode to OUTPUT, the pin will
have its pullup enabled for a short while, which is harmless.
2015-01-26 17:04:26 +01:00
9cf3740a03 Remove unneeded #ifdef in SoftwareSerial
The debugPulse function definition already checks for _DEBUG, resulting
in an empty function definiton and the function call being optimized
away.
2015-01-26 17:03:25 +01:00
ead2881b1c Fix SoftwareSerial timings
Instead of using a lookup table with (wrong) timings, this calculates
the timings in SoftwareSerial::begin. This is probably a bit slower, but
since it typically happens once, this shouldn't be a problem.
Additionally, since the lookup tables can be removed, this is also a lot
smaller, as well as supporting arbitrary CPU speeds and baudrates,
instead of the limited set that was defined before.

Furthermore, this switches to use the _delay_loop_2 function from
avr-libc instead of a handcoded delay function. The avr-libc function
only takes two instructions, as opposed to four instructions for the old
one. The compiler also inlines the avr-libc function, which makes the
timings more reliable.

The calculated timings directly rely on the instructions generated by
the compiler, since a significant amount of time is spent processing
(compared to the delays, especially at higher speeds). This means that
if the code is changed, or a different compiler is used, the
calculations might need changing (though a few cycles more or less
shouldn't cause immediate breakage).

The timings in the code have been calculated from the assembly generated
by gcc 4.8.2 and gcc 4.3.2.

The RX baudrates supported by SoftwareSerial are still not unlimited. At
16Mhz, using gcc 4.8.2, everything up to 115200 works. At 8Mhz, it works
up to 57600. Using gcc 4.3.2, it also works up to 57600 at 16Mhz and up
to 38400 at 8Mhz. Note that at these highest speeds, communication
works, but is still quite sensitive to other interrupts (like the
millis() interrupts) when bytes are sent back-to-back, so there still
are corrupted bytes in RX.

TX works up to 115200 for all combinations of compiler and clock rates.

This fixes #2019
2015-01-26 17:03:25 +01:00
08fa593916 Disable the RX PCINT inside SoftwareSerial::recv
Before, the interrupt would remain enabled during reception, which would
re-set the PCINT flag because of the level changes inside the received
byte. Because interrupts are globally disabled, this would not
immediately trigger an interrupt, but the flag would be remembered to
trigger another PCINT interrupt immediately after the first one is
processed.

Typically this was not a problem, because the second interrupt would see
the stop bit, or an idle line, and decide that the interrupt triggered
for someone else. However, at high baud rates, this could cause the
next interrupt for the real start bit to be delayed so much that the
byte got corrupted.

By clearing the interrupt mask bit for just the RX pin (as opposed to
the PCINT mask bit for the entire port), any PCINT events on other bits
can still set the PCINT flag and be processed as normal. In this case,
it's likely that there will be corruption, but that's inevitable when
(other) interrupts happen during SoftwareSerial reception.
2015-01-26 17:03:25 +01:00
ce6b0f89e3 Optimize SoftwareSerial::setRxIntMsk()
This precalculates the mask register and value, making setRxIntMask
considerably less complicated. Right now, this is not a big deal, but
simplifying it allows using it inside the ISR next.
2015-01-26 17:03:25 +01:00
ddbe3174f0 In SoftwareSerial::recv, only calculate the new tail once
This shortens the generated code a bit more.
2015-01-26 17:03:25 +01:00
9d8f350ffe Mark SoftwareSerial::recv and handle_interrupt as always_inline
Since those functions are only called once now, it makes sense to inline
them. This saves a few bytes of program space, but also saves a few
cycles in the critical RX path.
2015-01-26 17:03:25 +01:00
5af847d3a4 In SoftwareSerial, use ISR_ALIASOF to prevent duplication
Previously, up to four separate but identical ISR routines were defined,
for PCINT0, PCINT1, PCINT2 and PCINT3. Each of these would generate
their own function, with a lot of push-popping because another function
was called.

Now, the ISR_ALIASOF macro from avr-libc is used to declare just the
PCINT0 version and make all other ISRs point to that one, saving a lot
of program space, as well as some speed because of improved inlining.

On an Arduino Uno with gcc 4.3, this saves 168 bytes. With gcc 4.8, this
saves 150 bytes.
2015-01-26 17:03:25 +01:00