nodemcu-firmware/components/platform
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
..
include Fix uart.on('data') on console 2024-05-21 16:22:51 +10:00
CMakeLists.txt Initial migration to IDFv5.0 2024-01-30 11:34:03 +11:00
Kconfig Initial support for ESP32-C6 and ESP32-H2, plus assorted fixes & improvements (#3646) 2024-04-26 17:35:22 -04:00
dht.c Explicitly set RMT config::flags. 2022-06-04 16:00:19 +10:00
flash_fs.c WIP ESP32 IDF port. 2016-09-16 18:11:42 +10:00
onewire.c Initial support for ESP32-C6 and ESP32-H2, plus assorted fixes & improvements (#3646) 2024-04-26 17:35:22 -04:00
partitions-2MB.csv Switch to IDF-provided VFS and standard `io` module. 2021-10-20 21:49:11 +11:00
partitions.csv Switch to IDF-provided VFS and standard `io` module. 2021-10-20 21:49:11 +11:00
platform.c Fix uart.on('data') on console 2024-05-21 16:22:51 +10:00
platform_flash.c Initial migration to IDFv5.0 2024-01-30 11:34:03 +11:00
platform_partition.c Initial migration to IDFv5.0 2024-01-30 11:34:03 +11:00
platform_rmt.c Initial migration to IDFv5.0 2024-01-30 11:34:03 +11:00
project_include.cmake idf4: overhaul to new build system, part 1 of 3 2021-07-15 16:27:03 +10:00
u8x8_nodemcu_hal.c Initial migration to IDFv5.0 2024-01-30 11:34:03 +11:00
ucg_nodemcu_hal.c Initial migration to IDFv5.0 2024-01-30 11:34:03 +11:00
wdt.c Initial migration to IDFv5.0 2024-01-30 11:34:03 +11:00
ws2812.c Update rmt translator (#3629) 2024-02-07 17:56:17 -05:00