b66ddbf93a
Update to SDK 1.5 ( #1102 )
2015-12-17 23:14:59 +03:00
f57ab609ec
move flash size check to a function in ESP class,
...
allow real size bigger the IDE for Update
2015-12-17 13:02:14 +01:00
b2de8735c8
check current flash before starting update, to avoid update problems.
...
see: #1111
2015-12-16 19:45:55 +01:00
55e0dab799
Protect HardwareSerial's cbuf usage with InterruptLock.
2015-12-13 19:39:47 -08:00
afbc049cc9
Make the circular buffer's _size and _bufend members immutable.
2015-12-13 19:17:15 -08:00
e7024fb5b4
SPIFFS: check if path length is valid ( #1089 )
2015-12-10 23:25:54 +03:00
7ea4eb452d
fix String bug
...
length where returning something that is not 0 while buffer where NULL!?
2015-12-10 17:37:09 +01:00
49536c78d3
add more debug to Updater.cpp
2015-12-10 17:24:39 +01:00
0389657614
give the IP stack more time to handle the data
...
may help with #1157
2015-12-10 12:48:36 +01:00
a9ce1b4f2e
add Authorization support for HTTP client
2015-12-09 13:51:55 +01:00
62f38bfef3
add base64 class
2015-12-09 13:51:39 +01:00
44af3d5e89
Merge remote-tracking branch 'remotes/esp8266/master'
2015-12-08 11:33:25 +01:00
02e22b38cb
add define RANDOM_REG32 ESP8266_DREG(0x20E44)
2015-12-08 11:33:15 +01:00
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
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
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
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
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 d6f62943d4
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
ee314f2cdc
fix portInput(Output, Mode)Register definitions to return pointers ( #1110 )
2015-12-06 20:54:35 +03:00
c6c7d24750
Add __throw_logic_error ( #1136 )
2015-12-06 20:39:54 +03:00
0173749ef2
Merge remote-tracking branch 'remotes/esp8266/master'
2015-12-05 17:19:05 +01:00
68a406274a
add parameter name to h for better reading
2015-12-05 17:16:53 +01:00
f7bbea407e
Fix failure when trying to open empty file ( #1126 )
2015-12-05 16:29:37 +03:00
ac0264767a
#1151 SPI definition correction - SPILADDR
2015-12-05 13:04:24 +01:00
6620ec6e36
Set CPU frequency before running setup
2015-12-03 09:09:47 +03:00
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
bda06d686c
Add HTTP Basic Auth to WebServer and libb64 (base64) to core
2015-11-30 03:37:47 +02:00
dc5065ce3b
Merge branch 'master' into master
2015-11-29 17:48:58 +01:00
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
6c20126a5f
move IRQ handler to ram.
2015-11-29 12:01:00 +01:00
56a37335d8
Merge pull request #1081 from Links2004/httpClient
...
Http client class
2015-11-25 15:59:00 +03:00
8b67051d1e
add StreamString class (implement the Stream interface for String)
2015-11-25 12:33:33 +01:00
5d7a3e939c
add BergMicro Flash IDs
2015-11-24 15:11:20 -05:00
a5aa33f81a
disable DEBUGV
2015-11-22 22:39:31 +01:00
4b8fb2093f
Fix warning about gettimeofday ( #1058 )
2015-11-21 20:18:38 +03:00
8bf1e98f24
Improve debug output on critical errors
2015-11-21 20:04:38 +03:00
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
5c7b40740a
Disable sleep mode before doing OTA ( #1005 )
2015-11-13 23:41:29 +03:00
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
d0a944e417
Refactoring of FS::info ( #779 )
2015-11-13 13:23:16 +03:00
92069e657b
Replace some manually managed buffers with Strings, fix code style
2015-11-11 01:07:02 +03:00
450718b4a4
Merge pull request #980 from me-no-dev/master
...
IDE OTA Upload changes
2015-11-10 23:34:11 +03:00
a394787aa1
Update for time.c
...
configTime needs timezone as long
2015-11-09 16:53:24 +01:00
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
14bb946896
Merge pull request #2 from esp8266/master
...
pull master
2015-11-09 00:44:44 +02:00
a8976a01fd
Add MD5 to core, Fix OTA examples and Digest Authentication to OTA and espota.py
2015-11-09 00:42:30 +02:00
46468d4af7
I2C: generate STOP in case of NACK ( fix #698 , #254 )
...
thanks @petrd and @Yazzcat
2015-11-09 00:18:08 +03:00
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
e613e42249
Fix example sketch, espota output and failing updater
...
I get 100% success with OTA now
2015-11-08 02:01:12 +02:00
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