nodemcu-firmware/components
Johny Mattsson b0558d5bbe
Fix uart regressions & bugs (#2817)
* Fix uart regressions & bugs.

Using `uart.on()` with a search character was broken in that it did
not invoke the callback on a full UART buffer as documented. Logic reworked
to match docs again.

Fixed memory leak on `task_post()` failure (eep!).

Improved logic to attempt to coalesce input bytes to reduce the number of
`task_post()` slots used up by the platform uart.

Finally, added a semaphore to prevent the platform uart from overrunning
the `task_post()` slots all the time on high baud rates (e.g. 1mbit).
With the semaphore in there, the LVM RTOS task gets a chance to actually
process the received data and free up a `task_post()` slot or two.
The above mentioned read coalescing then allows the platform uart to
immediately catch up.

Also added an error log message if the `task_post()` actually does fail.

* Don't cache the uart delims.

Doing so makes reconfiguring those settings from within the callback not
take effect until the currently buffered bytes have been processed.
2019-10-13 09:49:44 +11:00
..
base_nodemcu LFS support for ESP32 NodeMCU (#2801) 2019-07-22 19:13:43 +10:00
driver_can Updated ESP-IDF to latest. 2017-05-13 22:30:13 +02:00
driver_console ESP32: uart 1/2 supports (#1982) 2017-06-13 18:33:32 +02:00
driver_i2c add i2c module 2017-02-02 21:40:36 +01:00
embedded_lfs LFS support for ESP32 NodeMCU (#2801) 2019-07-22 19:13:43 +10:00
fatfs add support for sdmmc cards in sd-spi mode (#2644) 2019-02-10 10:11:13 +01:00
lua LFS support for ESP32 NodeMCU (#2801) 2019-07-22 19:13:43 +10:00
luac_cross LFS support for ESP32 NodeMCU (#2801) 2019-07-22 19:13:43 +10:00
modules Fix the ug8 and ucg modules broken by eaac369. (#2927) 2019-09-27 12:29:43 +10:00
platform Fix uart regressions & bugs (#2817) 2019-10-13 09:49:44 +11:00
qrcodegen Adding qrcodegen module for generating QR Codes (#2543) 2018-11-15 22:17:43 +01:00
rtos_dbg Updated to latest IDF. 2016-11-16 17:59:06 +11:00
sjson ESP32: Add SJSON module (#2562) 2018-11-22 20:58:27 +01:00
spiffs pack-port bits and pieces in spiffs.c: 2018-11-04 08:49:17 +01:00
task Minor esp32 fixes (#2837) 2019-07-19 21:16:46 +02:00
u8g2 update to u8g2 2.25.10 2019-04-28 22:26:37 +02:00
ucg Add ucg module. 2018-10-07 16:31:28 +02:00
uzlib LFS support for ESP32 NodeMCU (#2801) 2019-07-22 19:13:43 +10:00