Christopher Pascoe
55e0dab799
Protect HardwareSerial's cbuf usage with InterruptLock.
2015-12-13 19:39:47 -08:00
Christopher Pascoe
afbc049cc9
Make the circular buffer's _size and _bufend members immutable.
2015-12-13 19:17:15 -08:00
Ivan Grokhotkov
e7024fb5b4
SPIFFS: check if path length is valid ( #1089 )
2015-12-10 23:25:54 +03:00
Markus Sattler
7ea4eb452d
fix String bug
...
length where returning something that is not 0 while buffer where NULL!?
2015-12-10 17:37:09 +01:00
Markus Sattler
49536c78d3
add more debug to Updater.cpp
2015-12-10 17:24:39 +01:00
Markus Sattler
0389657614
give the IP stack more time to handle the data
...
may help with #1157
2015-12-10 12:48:36 +01:00
Markus Sattler
a9ce1b4f2e
add Authorization support for HTTP client
2015-12-09 13:51:55 +01:00
Markus Sattler
62f38bfef3
add base64 class
2015-12-09 13:51:39 +01:00
Markus Sattler
44af3d5e89
Merge remote-tracking branch 'remotes/esp8266/master'
2015-12-08 11:33:25 +01:00
Markus Sattler
02e22b38cb
add define RANDOM_REG32 ESP8266_DREG(0x20E44)
2015-12-08 11:33:15 +01:00
Ivan Grokhotkov
93aaa8667d
Merge pull request #1166 from alltheblinkythings/SerialStuff
...
Always arm the "TX FIFO Empty" interrupt after we write into _tx_buffer.
2015-12-07 22:10:41 +03:00
Jens Hauke
dd89de4dad
Make pgm_read_byte() and pgm_read_word() usable from c files.
...
The two defines used reinterpret_cast<> which is only available when
compiling with c++. Now using plain old c casts instead.
2015-12-07 18:01:15 +01:00
Christopher Pascoe
d8417c2855
Remove a check in room() for (_begin == _end). It's covered by the (_end >= _begin) case.
2015-12-07 00:31:46 -08:00
Christopher Pascoe
7133a6c1f9
Ensure that we never write an out of bounds value (_bufend) to _begin or _end, even temporarily.
...
Testing:
- Boot tested, ran basic serial I/O code
Notes:
- Before this change, there are instruction like "s32i.n <reg>, <this>, <_begin>" in the
disassembled output, followed by an overwrite if <reg> turns out to be _bufend.
After this change, there is only one store instruction to <_begin> per function.
2015-12-07 00:23:46 -08:00
Christopher Pascoe
cc0a8ead55
Always arm the "TX FIFO Empty" interrupt after we write into _tx_buffer.
...
This avoids a race where the interrupt handler detects an empty _tx_buffer
just before we write data into it.
Note that commit d6f62943d4b511e7d5fe6147096c8979890416f5 works around
this race when data is continually added to _tx_buffer in the hung state.
We revert that change here as the race should no longer occur.
Testing performed:
- set UART_CONF1.txfifo_empty_thrhd=0x70 (which exacerbates the issue)
- generate a ~240 byte burst of data, sent in back-to-back Serial1.write(, 4)
calls, optionally followed by a Serial1.flush()
Test results:
- before this change, observe occasional unsent data and hang in flush()
(if used).
- after this change, data is sent as expected.
2015-12-06 21:03:05 -08:00
Ivan Grokhotkov
ee314f2cdc
fix portInput(Output, Mode)Register definitions to return pointers ( #1110 )
2015-12-06 20:54:35 +03:00
Ivan Grokhotkov
c6c7d24750
Add __throw_logic_error ( #1136 )
2015-12-06 20:39:54 +03:00
Markus Sattler
0173749ef2
Merge remote-tracking branch 'remotes/esp8266/master'
2015-12-05 17:19:05 +01:00
Markus Sattler
68a406274a
add parameter name to h for better reading
2015-12-05 17:16:53 +01:00
Ivan Grokhotkov
f7bbea407e
Fix failure when trying to open empty file ( #1126 )
2015-12-05 16:29:37 +03:00
Markus Sattler
ac0264767a
#1151 SPI definition correction - SPILADDR
2015-12-05 13:04:24 +01:00
Ivan Grokhotkov
6620ec6e36
Set CPU frequency before running setup
2015-12-03 09:09:47 +03:00
Markus Sattler
ee77b6fafe
add core_esp8266_features.h to be able to detect the features and librarys included in the ESP core
2015-11-30 19:58:05 +01:00
Me No Dev
bda06d686c
Add HTTP Basic Auth to WebServer and libb64 (base64) to core
2015-11-30 03:37:47 +02:00
Markus
dc5065ce3b
Merge branch 'master' into master
2015-11-29 17:48:58 +01:00
Me No Dev
466fa6f5a9
Get pin levels at time of interrupt, rather than the time of calling the handler
...
current implementation can cause false readings if previous handlers
take more time than the pin holds the level
2015-11-29 18:15:07 +02:00
Markus Sattler
6c20126a5f
move IRQ handler to ram.
2015-11-29 12:01:00 +01:00
Ivan Grokhotkov
56a37335d8
Merge pull request #1081 from Links2004/httpClient
...
Http client class
2015-11-25 15:59:00 +03:00
Markus Sattler
8b67051d1e
add StreamString class (implement the Stream interface for String)
2015-11-25 12:33:33 +01:00
Martin Ayotte
5d7a3e939c
add BergMicro Flash IDs
2015-11-24 15:11:20 -05:00
Markus Sattler
a5aa33f81a
disable DEBUGV
2015-11-22 22:39:31 +01:00
Ivan Grokhotkov
4b8fb2093f
Fix warning about gettimeofday ( #1058 )
2015-11-21 20:18:38 +03:00
Ivan Grokhotkov
8bf1e98f24
Improve debug output on critical errors
2015-11-21 20:04:38 +03:00
Ivan Grokhotkov
b31d0ce67e
Merge pull request #1012 from CanTireInnovations/custom_crash_callback
...
Add the ability to be called back when the device is about to reset
2015-11-15 17:02:25 +03:00
Ivan Grokhotkov
5c7b40740a
Disable sleep mode before doing OTA ( #1005 )
2015-11-13 23:41:29 +03:00
Carl Pacey
baa13f8c84
Add the ability to be called back when the device is about to reset
...
Caveats:
- You have to be very careful in your callback.
- On Adafruit Huzzah, I only actually get called for Exceptions and Soft
WDT resets.
2015-11-13 12:47:57 -05:00
Ivan Grokhotkov
d0a944e417
Refactoring of FS::info ( #779 )
2015-11-13 13:23:16 +03:00
Ivan Grokhotkov
92069e657b
Replace some manually managed buffers with Strings, fix code style
2015-11-11 01:07:02 +03:00
Ivan Grokhotkov
450718b4a4
Merge pull request #980 from me-no-dev/master
...
IDE OTA Upload changes
2015-11-10 23:34:11 +03:00
Juppit
a394787aa1
Update for time.c
...
configTime needs timezone as long
2015-11-09 16:53:24 +01:00
Juppit
d46ad79aa0
Declare s_timezone_sec as long
...
Some more small fixes:
removed ensureBootTimeIsSet() from function time()
call sntp_setservername() with server id
2015-11-09 16:39:10 +01:00
Me No Dev
14bb946896
Merge pull request #2 from esp8266/master
...
pull master
2015-11-09 00:44:44 +02:00
Me No Dev
a8976a01fd
Add MD5 to core, Fix OTA examples and Digest Authentication to OTA and espota.py
2015-11-09 00:42:30 +02:00
Ivan Grokhotkov
46468d4af7
I2C: generate STOP in case of NACK ( fix #698 , #254 )
...
thanks @petrd and @Yazzcat
2015-11-09 00:18:08 +03:00
Ivan Grokhotkov
4cf72e7ef4
Add libc time functions
...
Merging https://github.com/igrr/axtls-8266/pull/1 by @Juppit into the core
2015-11-08 23:44:25 +03:00
Me No Dev
e613e42249
Fix example sketch, espota output and failing updater
...
I get 100% success with OTA now
2015-11-08 02:01:12 +02:00
Me No Dev
bd5b5d35f0
I2S optimizations
...
zero buffers so they are mute in case of underflow
add non-blocking write (returns false if DMA was full)
add checks for full and empty DMA
add some comments to the header
2015-10-29 10:51:51 +02:00
Ivan Grokhotkov
219cb19ece
Update SPIFFS wrapper for 0.3.3
2015-10-28 16:45:08 +03:00
Ivan Grokhotkov
d2d1befe1c
Merge pull request #899 from pgollor/SPIFFS_update
...
update SPIFFS to version 0.3.3
2015-10-28 15:49:48 +03:00
Ivan Grokhotkov
56bd4a78b3
Fix short unaligned writes in SPIFFS HAL, 2nd attempt ( #924 )
2015-10-26 14:50:50 +03:00