53da95b5ae
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. |
||
---|---|---|
.. | ||
cpu_esp32.h | ||
flash_fs.h | ||
platform.h | ||
platform_rmt.h | ||
platform_wdt.h | ||
sections.h | ||
u8x8_nodemcu_hal.h | ||
ucg_nodemcu_hal.h | ||
user_version.h |