nodemcu-firmware/components/platform
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
..
include LFS support for ESP32 NodeMCU (#2801) 2019-07-22 19:13:43 +10:00
Kconfig LFS support for ESP32 NodeMCU (#2801) 2019-07-22 19:13:43 +10:00
component.mk update to u8g2 2.25.10 2019-04-28 22:26:37 +02:00
dht.c force common intr alloc flags for all platform components that use rmt 2019-05-31 23:34:15 +02:00
flash_api.c Updated ESP-IDF to latest. 2018-10-07 12:33:40 +02:00
flash_fs.c WIP ESP32 IDF port. 2016-09-16 18:11:42 +10:00
onewire.c force common intr alloc flags for all platform components that use rmt 2019-05-31 23:34:15 +02:00
partitions-2MB.csv LFS support for ESP32 NodeMCU (#2801) 2019-07-22 19:13:43 +10:00
partitions.csv LFS support for ESP32 NodeMCU (#2801) 2019-07-22 19:13:43 +10:00
platform.c Fix uart regressions & bugs (#2817) 2019-10-13 09:49:44 +11:00
platform_flash.c Improved flash size detection. 2016-11-17 11:56:39 +11:00
platform_partition.c Updated ESP-IDF to latest. 2018-10-07 12:33:40 +02:00
platform_rmt.c force common intr alloc flags for all platform components that use rmt 2019-05-31 23:34:15 +02:00
u8x8_nodemcu_hal.c update to u8g2 2.25.10 2019-04-28 22:26:37 +02:00
ucg_nodemcu_hal.c Add ucg module. 2018-10-07 16:31:28 +02:00
vfs.c update fatfs to 0.13c 2019-01-17 21:12:08 +01:00
wdt.c refactor task wdt handling to platform layer 2018-04-04 09:25:47 +02:00
ws2812.c force common intr alloc flags for all platform components that use rmt 2019-05-31 23:34:15 +02:00