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

3729 Commits

Author SHA1 Message Date
Christopher Pascoe
4ef0466578 Don't trip the WDT if interrupts are disabled during write() or flush().
Prior to this change, if interrupts were disabled during a call to
HardwareSerial::write() when the circular buffer was full, or
HardwareSerial::flush() when the circular buffer was non-empty,
we would loop forever and trip a watchdog timeout.
2015-12-29 12:05:15 -05:00
Markus Sattler
d9a7a816d5 include core_esp8266_features.h in arduino.h for easier usage, and add WIFI_HAS_EVENT_CALLBACK 2015-12-29 17:44:00 +01:00
Markus Sattler
85905c12f2 allow multiple event callbacks and add filter option 2015-12-29 17:31:57 +01:00
Markus Sattler
61440d9e2b add WiFi sleep management
Note: testing needed
2015-12-29 16:15:11 +01:00
Markus Sattler
bbeaeaad54 add WiFi TX power control 2015-12-29 15:56:53 +01:00
Markus Sattler
8943ac402c add softAPgetStationNum 2015-12-29 15:40:54 +01:00
Markus Sattler
293e55c690 check for WiFi pass < 8 (not allowed for WPA2)
simplify STA config and allow setting of second DNS server for fallback
code style
2015-12-29 15:28:29 +01:00
Markus Sattler
7edcda4a0f IPAddress allow uint32_t compare 2015-12-29 15:26:14 +01:00
Markus Sattler
640d0bb65e improve error handling and return values 2015-12-29 15:00:47 +01:00
Markus Sattler
0ed104f028 add WiFi Event example 2015-12-29 14:38:13 +01:00
Markus Sattler
373da3df6b allow hook WiFi events from sketch 2015-12-29 14:33:10 +01:00
Markus Sattler
fd443d4e17 split ESP8266WiFiClass in different sub classes for better overview. 2015-12-29 14:03:15 +01:00
Christopher Pascoe
c8772cfcd0 Make HardwareSerial::begin() and end() interrupt safe and disable TX/RX if we can't allocate a buffer for them.
Prior to this change, the interrupt could fire during initialisation,
necessitating a deep check that the HardwareSerial structure had valid
_tx_buffer or _rx_buffer each time an interrupt occurred.

By keeping uart_t's and HardwareSerial's (txEnabled, _tx_buffer) and
(rxEnabled, _rx_buffer) in sync, we can remove this extra check, as
well as fixing a null pointer dereference if e.g. _tx_buffer allocation
failed and write() was subsequently called.
2015-12-28 19:11:12 -05:00
Christopher Pascoe
cfe7ae1118 Put HardwareSerial and cbuf methods called from interrupt context in RAM.
This is required per the non-OS SDK doc, which states:
  "Using non-OS SDK, please do not call any function defined with
  ICACHE_FLASH_ATTR in the interrupt handler."

This avoids an "Illegal instruction" exception with epc1 pointing at a valid
instruction (in flash) for one of the moved methods.
2015-12-28 18:35:27 -05:00
Christopher Pascoe
83398f6011 Don't bother testing isRxEnabled() on UART1 - it is always false. 2015-12-28 17:55:16 -05:00
Christopher Pascoe
e83dd4d241 Use lightweight tests when we only care if the buffer is empty or full. 2015-12-28 17:53:10 -05:00
Christopher Pascoe
e147314f97 Re-enable interrupts before directly enqueuing characters in the UART FIFO.
Not sure why, but this reduces the occurrence rate of an occasional ~3.25 or
~7μs intercharacter delay, which was interfering with use of the UART to
generate precise timing pulses (such as driving WS2812 LEDs).
2015-12-28 17:44:28 -05:00
Markus Sattler
6f00503bc3 add reconnect function for STA 2015-12-28 20:19:36 +01:00
Markus Sattler
cee4ef3078 less static stuff 2015-12-28 20:13:56 +01:00
Markus Sattler
64326f9573 rework mode management
may fixes: #1138
2015-12-28 19:30:56 +01:00
Markus Sattler
d521cea232 reorder part 3 2015-12-28 17:55:38 +01:00
Markus Sattler
20de9a5673 reorder part two 2015-12-28 17:38:58 +01:00
Markus Sattler
49b0821beb reorder part one 2015-12-28 17:22:36 +01:00
Markus Sattler
b1b19299bb mode docu to cpp and make it doxygen compatible 2015-12-28 17:02:09 +01:00
Markus Sattler
09a7940006 code style 2015-12-28 16:36:55 +01:00
krzychb
9fc5ac4ba1 IDE 1.6.7 support for ArduinoOTA
- addedd step by step ArdinoOTA
- updated package versions
- moved Trubleshooting section
2015-12-28 16:18:53 +01:00
Me No Dev
b28be23601 Merge remote-tracking branch 'esp8266/master' 2015-12-28 16:16:16 +02:00
Markus
4b90db41fe Merge pull request #1314 from gtalusan/master
fix undefined DEBUG_TLS_MEM_PRINT hiding return statement
2015-12-28 13:59:34 +01:00
George Talusan
c3de2851c0 fix undefined DEBUG_TLS_MEM_PRINT hiding return statement 2015-12-27 21:36:48 -05:00
yichone
70d0339813 Merge branch 'master' into master 2015-12-28 09:42:48 +08:00
Markus
304bf08497 Merge pull request #1312 from denvera/master
Allow setting TCP timeout
2015-12-27 20:09:34 +01:00
Denver Abrey
80857e3f87 Also set timeout on already existing connections 2015-12-27 20:02:08 +02:00
Denver Abrey
d1a6b32133 Allow setting TCP timeout 2015-12-27 19:45:17 +02:00
Markus
7a010a38cc Merge pull request #1309 from wemos/master
fix d1_mini board.
2015-12-27 11:53:38 +01:00
yichone
858d6fd15b Merge branch 'master' into master 2015-12-27 17:22:59 +08:00
xsyp
6d87ef5aa9 Add espduino board
ESPDuino boards from doit.am (arduino uno look like board for esp8266)
2015-12-27 17:15:49 +08:00
wemos
16244c5dfd fix d1_mini board. 2015-12-27 14:36:22 +08:00
Markus
7e0f83951b Merge pull request #1306 from Links2004/master
add setSleepMode + getSleepMode and setPhyMode + getPhyMode to WiFi
2015-12-26 14:46:47 +01:00
Markus Sattler
195e595453 add setSleepMode + getSleepMode and setPhyMode + getPhyMode to WiFi 2015-12-26 13:02:31 +01:00
Ivan Grokhotkov
97ba91b47b Merge pull request #1301 from hallard/master
Set default WifInfo board speed to 160MHz
2015-12-24 23:20:17 +03:00
Charles
659c33a114 Set default WifInfo board speed to 160MHz 2015-12-24 18:42:21 +01:00
Markus
dfe2b819b8 Merge pull request #1295 from Links2004/master
rework StreamString::write to use String internal buffer direct.
2015-12-23 18:53:46 +01:00
Markus Sattler
982ef45748 Merge remote-tracking branch 'remotes/esp8266/master' 2015-12-23 18:30:24 +01:00
Markus
caa2443f22 Merge pull request #1294 from gtalusan/bytesWritten_accounting
better bytesWritten accounting in sendRequest and writeToStream
2015-12-23 18:30:15 +01:00
George Talusan
1e264047f9 better bytesWritten accounting in sendRequest and writeToStream 2015-12-23 11:29:59 -05:00
Markus Sattler
50ad8ccdf5 rework StreamString::write to use String internal buffer direct.
#1289
2015-12-23 13:40:16 +01:00
Markus
dd93ea26ee Merge pull request #1290 from Links2004/httpClient
http client allow slow streams for sendRequest
2015-12-23 13:38:50 +01:00
Markus Sattler
467da7c50f better error handling 2015-12-23 12:54:44 +01:00
Markus Sattler
b845d03b89 Merge remote-tracking branch 'remotes/esp8266/master' into httpClient 2015-12-23 12:50:19 +01:00
Ivan Grokhotkov
28d1ef3f0f Rebuild liblwip.a with debugging symbols
Source: http://bbs.espressif.com/viewtopic.php?f=46&t=1459
2015-12-23 12:33:11 +03:00