1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-10-13 23:48:28 +03:00
Commit Graph

1610 Commits

Author SHA1 Message Date
Ivan Grokhotkov
bf69f10401 WiFi client connect with hostname 2014-12-17 10:29:29 +03:00
Ivan Grokhotkov
bce15fee5f EEPROM examples 2014-12-12 10:37:40 +03:00
Ivan Grokhotkov
b8caeb363c Add sigma-delta api 2014-12-12 10:37:24 +03:00
Ivan Grokhotkov
36fbb75d48 Disable debug output in Serial.begin 2014-12-12 04:41:24 +03:00
Ivan Grokhotkov
73b0e8b1ff Upload sketch at 115200 2014-12-12 04:40:59 +03:00
Ivan Grokhotkov
c1e59a37e1 analogRead 2014-12-12 04:40:43 +03:00
Ivan Grokhotkov
40e2eca7f6 EEPROM library 2014-12-09 22:20:30 +03:00
Ivan Grokhotkov
4936093dcf Update SDK to 0.9.3 2014-12-09 10:25:59 +03:00
Ivan Grokhotkov
e510c0226a WiFi scanning fixes 2014-12-09 10:23:50 +03:00
Ivan Grokhotkov
bb3e2ed04b Wire library with i2c master support 2014-12-09 10:11:42 +03:00
Ivan Grokhotkov
d0e58a756b digitalWrite fix 2014-12-09 10:10:26 +03:00
Ivan Grokhotkov
1154cd8ae5 Add stubs for itoa, ltoa 2014-12-09 10:09:12 +03:00
Ivan Grokhotkov
fa546bb31a Implement most WiFi functions
Need to update to SDK 0.9.3 because DHCP client functions are missing
2014-12-05 22:39:40 +03:00
Ivan Grokhotkov
92babaed21 Open-drain output mode 2014-12-05 00:05:01 +03:00
Ivan Grokhotkov
f788022730 Modify the linker script to move some code into flash, enable -mtext-section-literals 2014-12-02 00:46:57 +03:00
Ivan Grokhotkov
d3359d3670 Don't use timer for zero delay 2014-12-01 00:37:51 +03:00
Ivan Grokhotkov
9cc12ccc15 Add ESP8266WiFi library 2014-12-01 00:36:56 +03:00
Ivan Grokhotkov
4fc356fbf5 Add circular buffer implementation 2014-12-01 00:36:07 +03:00
Ivan Grokhotkov
c346734adc Move some code to flash and fix prototypes 2014-12-01 00:34:59 +03:00
Ivan Grokhotkov
22b88f73c2 Fix malloc/free references 2014-12-01 00:34:28 +03:00
Cristian Maglie
a9735bf91f Fix atomicity issues in SPI::beginTransaction and SPI::endTransaction (Andrew Kroll)
Previously, it could happen that SPI::beginTransaction was
interrupted by an ISR, while it is changing the SPI_AVR_EIMSK
register or interruptSave variable (it seems that there is
a small window after changing SPI_AVR_EIMSK where an interrupt
might still occur). If this happens, interruptSave is overwritten
with an invalid value, permanently disabling the pin interrupts.

To prevent this, disable interrupts globally while changing
these values.
2014-11-25 15:56:11 +01:00
Cristian Maglie
84b6cc27a5 [avr] Made SPI.usingInterrupt() synchronized (Andrew Kroll) 2014-11-25 15:56:11 +01:00
Cristian Maglie
d9537cb7da [avr] Added SPI.notUsingInterrupt() (Andrew Kroll) 2014-11-25 15:56:11 +01:00
Cristian Maglie
8344812ce8 [avr] Made SPI.begin() and SPI.end() synchronized (Andrew Kroll) 2014-11-25 15:49:17 +01:00
Cristian Maglie
53e25d8b55 [avr] Improved SPI speed on 16bit transfer.
From https://github.com/arduino/Arduino/pull/2376#issuecomment-59671152

Quoting Andrew Kroll:

   [..this commit..] introduces a small delay that can prevent the wait
   loop form iterating when running at the maximum speed. This gives
   you a little more speed, even if it seems counter-intuitive. At
   lower speeds, it is unnoticed. Watch the output on an oscilloscope
   when running full SPI speed, and you should see closer back-to-back
   writes.

Quoting Paul Stoffregen:

   I did quite a bit of experimenting with the NOP addition. The one
   that's in my copy gives about a 10% speedup on AVR.
2014-11-25 15:49:17 +01:00
Ivan Grokhotkov
636745b9a8 Fix initialisation, fix HardwareSerial, add esptool.py flashing 2014-11-25 09:58:14 +03:00
Ivan Grokhotkov
c633f53634 Implement digital IO functions 2014-11-21 21:23:27 +03:00
Ivan Grokhotkov
71e7ed040f Tidy up backend code for esp8266 (malloc, free, yield) 2014-11-21 19:15:40 +03:00
Ivan Grokhotkov
e059e5a231 Implement global init for esp8266 2014-11-21 18:14:45 +03:00
Ivan Grokhotkov
723c87c1b7 Implement delay() 2014-11-21 12:16:12 +03:00
Ivan Grokhotkov
11e8e3d16f Fix build errors 2014-11-21 12:15:50 +03:00
Ivan Grokhotkov
b42b22c9e7 Fix continuations 2014-11-21 12:15:03 +03:00
Ivan Grokhotkov
319c22d492 Continuations support 2014-11-20 17:25:27 +03:00
Ivan Grokhotkov
307a029a0e Updates for esp8266 platform 2014-11-20 17:25:01 +03:00
Cristian Maglie
b9e186e45a Upped version to 1.6.0 2014-11-18 14:48:01 +01:00
Ivan Grokhotkov
e94179fbd3 Wiring time functions 2014-11-16 16:09:55 +03:00
Ivan Grokhotkov
b8d51b9409 Generate binary from irom0.text for flashing at 0x40000 2014-11-15 12:30:07 +03:00
Ivan Grokhotkov
a12c6fcea2 Basic support for esp8266 platform
This includes empty stubs for most core Arduino functions.
Need to actually implement all those digital reads writes whatever.
Need to prebuild toolchains (xtensa-elf-lx106) for 3 platforms and put them on some download server.
Need to do the same with esptool.
Need to fix 0x40000 binary generation and add correct upload commands.
Maybe even implement uploads over WiFi.
2014-11-15 10:45:08 +03:00
Cristian Maglie
34c40b224f [avr] SPI: removed redundant include 2014-11-14 00:23:11 +01:00
Cristian Maglie
993cc9bbb4 [avr] Small comments and headers fixes in SPI 2014-11-14 00:23:11 +01:00
Matthijs Kooijman
cd9a9e3fd7 Reduce avrdude verbosity
Previously, when verbose uploads were enabled, avrdude was run with four
-v options, causing it to dump all raw bytes exchanged with the
bootloader. This floods the console so much that meaningful output
mostly disappears.

Most users probably want to enable verbose mode just to see what avrdude
command is ran. Furthermore, users that benefit from the raw bytes
dumped are perfectly capable of either running avrdude manually, or
modifying platform.txt. Given that, running avrdude with just one  -v
should be plenty.

This fixes #891.
2014-10-30 12:36:06 +01:00
Cristian Maglie
d1714a9fb8 [sam] Added -MMD flag to tell compiler to produce dependencies files
Now a full rebuild of the sketch is triggered only if needed.
2014-10-22 13:36:14 +02:00
Cristian Maglie
0824abfee5 Merge branch 'master' into ide-1.5.x
Conflicts:
	hardware/arduino/cores/arduino/HardwareSerial.cpp
	hardware/arduino/cores/robot/Arduino.h
2014-10-21 17:47:59 +02:00
Cristian Maglie
62cf4b6b55 Revert "Match return value to type in available()"
This reverts commit f40e471354.
Added an hint for the buffer sizes.

See #2057
Fixes #2367
2014-10-21 17:18:26 +02:00
Cristian Maglie
58b6fd4789 Fixed missing NOT_AN_INTERRUPT constant in digitalPinToInterrupt()
Fixes #2379
2014-10-21 16:55:37 +02:00
Cristian Maglie
3687289727 Merge pull request #2330 from spiritinlife/ide-1.5.x
Add #include "Print.h" in Server.h    Ide 1.5.x
2014-10-01 13:29:29 +02:00
Cristian Maglie
21939e6f89 [sam] Fixed compile error when using math functions
Fixes #2338
2014-09-30 17:34:25 +02:00
George Chailazopoulos
2c289ace73 Add #include "Print.h" in Server.h 2014-09-26 22:59:02 +03:00
George Chailazopoulos
f5fe16bf2a Add #include "Print.h" in Server.h 2014-09-26 22:58:19 +03:00
Cristian Maglie
974613a0a2 [sam] Fixed architecture specific macro digitalPinToTimer, added comment to uninplemented portModeRegister
Fix #1833
2014-09-22 00:38:02 +02:00