nodemcu-firmware/components/platform/include
Jade Mattsson 53da95b5ae Fix uart.on('data') on console
With the switch to use the IDF's stdin for feeding the Lua VM, we
unintentionally lost the ability to use uart.on('data') on the console uart.
This is since we no longer install the nodemcu uart driver on said uart.
In order to resolve this shortcoming, this commit refactors the uart.on('data')
delimiter handling and moves it away from platform.c into uart.c where it
really belongs. A new function, uart_feed_data(), is introduced, which is used
both by the nodemcu uart driver task as well as the nodemcu console driver
task (assuming the console is in fact a uart).

The linebuffer allocation/freeing is still in response to
uart.start()/uart.stop(), but it is now in uart.c rather than
platform.c.

The whole uart integration is still too tightly coupled between the platform
component and the module component's uart.c, but this makes it slightly
better at least.
2024-05-21 16:22:51 +10:00
..
cpu_esp32.h Initial migration to IDFv5.0 2024-01-30 11:34:03 +11:00
flash_fs.h WIP ESP32 IDF port. 2016-09-16 18:11:42 +10:00
platform.h Fix uart.on('data') on console 2024-05-21 16:22:51 +10:00
platform_rmt.h Consider RMT channel limitations at allocation time. (#3481) 2022-01-07 14:50:28 +11:00
platform_wdt.h refactor task wdt handling to platform layer 2018-04-04 09:25:47 +02:00
sections.h WIP ESP32 IDF port. 2016-09-16 18:11:42 +10:00
u8x8_nodemcu_hal.h update to u8g2 2.25.10 2019-04-28 22:26:37 +02:00
ucg_nodemcu_hal.h Add ucg module. 2018-10-07 16:31:28 +02:00
user_version.h Port Terry's Lua 5.1 + 5.3 work from the esp8266 branch. 2021-08-22 02:03:05 +10:00