nodemcu-firmware/components/modules
Jade Mattsson 45283374ec 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-12 20:22:23 +10:00
..
.gitignore Add support for external modules (#3100) 2020-07-27 19:08:19 +02:00
CMakeLists.txt Port of the rotary module to ESP32 (#3625) 2024-04-26 21:25:43 -04:00
Kconfig Port of the rotary module to ESP32 (#3625) 2024-04-26 21:25:43 -04:00
adc.c Initial migration to IDFv5.0 2024-01-30 11:34:03 +11:00
bit.c Make bit module handle 32/64bit integer configs. 2021-08-25 18:58:53 +10:00
bthci.c Swap to luaL_pcallx for C module callbacks. 2021-08-24 00:11:31 +10:00
can.c Initial migration to IDFv5.0 2024-01-30 11:34:03 +11:00
common.c Port i2s, spi_master, and ledc to helper functions for option tables (#2577) 2018-12-02 16:20:45 +01:00
common.h Port Terry's Lua 5.1 + 5.3 work from the esp8266 branch. 2021-08-22 02:03:05 +10:00
crypto.c Fixup LROT_MASKs for all modules. 2021-09-16 17:53:35 +10:00
dac.c Upgrade to IDF v5.1.2 2024-02-02 14:50:57 +11:00
dht.c Port Terry's Lua 5.1 + 5.3 work from the esp8266 branch. 2021-08-22 02:03:05 +10:00
encoder.c Port Terry's Lua 5.1 + 5.3 work from the esp8266 branch. 2021-08-22 02:03:05 +10:00
eromfs.c IDF web server module (#3502) 2022-03-05 13:51:54 +11:00
eromfs.py IDF web server module (#3502) 2022-03-05 13:51:54 +11:00
espnow.c Added espnow module with documentation. 2024-03-27 15:43:59 +11:00
eth.c Upgrade to IDF v5.1.2 2024-02-02 14:50:57 +11:00
file.c Added mkdir/rmdir support to file module. 2023-01-17 14:34:26 +11:00
gpio.c Swap to luaL_pcallx for C module callbacks. 2021-08-24 00:11:31 +10:00
heaptrace.c Initial migration to IDFv5.0 2024-01-30 11:34:03 +11:00
http.c Add http.put (#3462) 2021-10-05 13:33:27 +11:00
httpd.c IDF web server module (#3502) 2022-03-05 13:51:54 +11:00
i2c.c Port Terry's Lua 5.1 + 5.3 work from the esp8266 branch. 2021-08-22 02:03:05 +10:00
i2c_common.h Port Terry's Lua 5.1 + 5.3 work from the esp8266 branch. 2021-08-22 02:03:05 +10:00
i2c_hw_master.c Initial migration to IDFv5.0 2024-01-30 11:34:03 +11:00
i2c_hw_slave.c Swap to luaL_pcallx for C module callbacks. 2021-08-24 00:11:31 +10:00
i2s.c Initial migration to IDFv5.0 2024-01-30 11:34:03 +11:00
idf_component.yml Initial migration to IDFv5.0 2024-01-30 11:34:03 +11:00
ledc.c configure ledc to auto select clock 2023-05-18 12:46:49 +10:00
mqtt.c Upgrade to IDF v5.1.2 2024-02-02 14:50:57 +11:00
net.c Fixup LROT_MASKs for all modules. 2021-09-16 17:53:35 +10:00
node.c Initial support for ESP32-C6 and ESP32-H2, plus assorted fixes & improvements (#3646) 2024-04-26 17:35:22 -04:00
otaupgrade.c Initial migration to IDFv5.0 2024-01-30 11:34:03 +11:00
ow.c Port Terry's Lua 5.1 + 5.3 work from the esp8266 branch. 2021-08-22 02:03:05 +10:00
pipe.c Port Terry's Lua 5.1 + 5.3 work from the esp8266 branch. 2021-08-22 02:03:05 +10:00
project_include.cmake Improvements to external component/module support. 2023-01-17 14:08:47 +11:00
pulsecnt.c Initial migration to IDFv5.0 2024-01-30 11:34:03 +11:00
qrcodegen.c Port Terry's Lua 5.1 + 5.3 work from the esp8266 branch. 2021-08-22 02:03:05 +10:00
rmt.c Add support for using multiple memory slots in rmt setup (#3568) 2024-02-01 20:31:56 -05:00
rotary.c Port of the rotary module to ESP32 (#3625) 2024-04-26 21:25:43 -04:00
rotary_driver.c Port of the rotary module to ESP32 (#3625) 2024-04-26 21:25:43 -04:00
rotary_driver.h Port of the rotary module to ESP32 (#3625) 2024-04-26 21:25:43 -04:00
rtcmem.c Ported the rtcmem over to ESP32 (#3544) 2022-09-29 21:37:34 -04:00
sdmmc.c Initial migration to IDFv5.0 2024-01-30 11:34:03 +11:00
sigma_delta.c Port Terry's Lua 5.1 + 5.3 work from the esp8266 branch. 2021-08-22 02:03:05 +10:00
sjson.c Fix broken sjson module init. 2021-11-04 20:55:08 +11:00
sodium.c Make sodium.random API behave consistently on all build types 2022-12-19 18:53:04 +11:00
spi.c Updated to IDF 4.4.6 (#3621) 2024-01-23 09:17:15 -05:00
spi_common.h Add u8g2 module. 2017-06-13 18:38:09 +02:00
spi_master.c Give the SPI module a chance of working... (#3496) 2022-01-27 07:02:56 +01:00
struct.c Fix potential integer overflow in getnum and fix the negation overflow in lua (#3634) 2024-02-05 19:27:00 -05:00
time.c Fix time.get() for 5.3-int32-singlefp firmware on IDF v5.0.2 2024-01-30 11:34:03 +11:00
tmr.c Implement tmr.wdclr() 2021-10-22 12:38:07 +11:00
touch.c Initial migration to IDFv5.0 2024-01-30 11:34:03 +11:00
u8g2.c Fix typo in u8g2 updateDisplay function mapping (#3649) 2024-05-03 12:51:05 +02:00
uart.c Fix uart.on('data') on console 2024-05-12 20:22:23 +10:00
ucg.c Fixup LROT_MASKs for all modules. 2021-09-16 17:53:35 +10:00
uppercase.mk Successfully boot barebones NodeMCU on ESP32 (only). 2016-09-20 13:35:56 +10:00
wifi.c Initial support for ESP32-C6 and ESP32-H2, plus assorted fixes & improvements (#3646) 2024-04-26 17:35:22 -04:00
wifi_ap.c Swap to luaL_pcallx for C module callbacks. 2021-08-24 00:11:31 +10:00
wifi_common.c Port Terry's Lua 5.1 + 5.3 work from the esp8266 branch. 2021-08-22 02:03:05 +10:00
wifi_common.h Upgrade to IDF v5.1.2 2024-02-02 14:50:57 +11:00
wifi_sta.c Prefer Lua booleans over 1/nil or 1/0 2023-02-09 15:52:38 +11:00
ws2812.c Update rmt translator (#3629) 2024-02-07 17:56:17 -05:00