Johny Mattsson
afbbeb4566
Replaced UART driver.
...
New driver is a three-way merger between Espressif's esp8266-rtos-sdk example
driver, Espressif's esp32-rtos-sdk not-example driver, and the previous
NodeMCU driver, plus some general clean-ups.
Basic interactivity is now available on the ESP32!
2016-06-23 18:23:04 +10:00
Johny Mattsson
740c06b48f
Fix unwanted newlines in Lua output.
...
The old NodeMCU puts() did not do the standard newline, while the RTOS C
library one certainly does.
2016-06-01 14:15:13 +10:00
Johny Mattsson
56789592fa
Boot to (nonresponsive) Lua prompt on RTOS!
...
Uart driver currently disabled as it's not (yet) compatible with RTOS.
Running Lua task with excessive stack to avoid smashing it; need to work out
what's using so much stack space.
Changed some flash reading functions to not attempt to drop an entire 4k
flash page onto the stack.
Ensure the task pump doesn't attempt to retrieve from uninitialised queues.
2016-05-30 17:56:33 +10:00
Johny Mattsson
e49f2bb13f
Remove conflicting libc, rename c_xx and os_xx to xx.
...
c_strtod and c_getenv are kept since strtod doesn't appear in the SDK's libc,
and we want our own c_getenv to initialize the Lua main anyway.
2016-05-26 18:50:20 +10:00
TerryE
76ff541244
Prevent UART input race without extra lua_started flag
2016-03-11 00:41:40 +00:00
devsaurus
f149b60c7f
enable -std=gnu11 for lua dir
2016-01-24 00:02:27 +01:00
devsaurus
1c2fad5330
re-add detection of CR as newline
2015-11-22 13:00:40 +01:00
devsaurus
69f3a6f177
skip CR in interactive mode
2015-11-18 22:07:53 +01:00
Johny Mattsson
bf8ed500bf
Moved node.key() & node.led() support into node module.
...
It was piggybacking on the Lua readline timer which no longer exists.
Also cleaned up injection of Lua commands via CoAP & node.input().
2015-10-12 13:26:05 +11:00
Johny Mattsson
fe6289a6c2
Switch Lua input to event driven instead of polled.
...
The Lua input timer has been the thorn in the side which prevents a lot of
potential sleeping, unnecessarily.
2015-10-12 13:26:05 +11:00
Johny Mattsson
21c4e11020
Enable dynamic build dates, plus print SDK version.
2015-10-12 13:26:05 +11:00
funshine
bbef457e50
seperate user_config.h to speed-up compile when modules disabled/enabled
2015-03-06 11:59:04 +08:00
funshine
856b8553bf
comment out ws2812 temporary. remove node.led, node.key
2015-02-12 11:05:28 +08:00
funshine
b65fb02cc5
add file.format() to rebuild fs system, get more ram back
2015-01-07 15:57:17 +08:00
HuangRui
c04f2578ec
Updated SDK to v0.9.5 and optimized memory.
2015-01-05 10:09:51 +08:00
funshine
eb27c4fb27
fix a uart readline bug, which echo 2 CR+LF mistakenly
2014-12-31 12:19:53 +08:00
funshine
4cf5265ccc
deal with uart.on api when required char number is 0
2014-12-30 19:33:54 +08:00
funshine
ee2e791282
serial input now accept non-ascii chars
2014-12-30 19:00:36 +08:00
funshine
5209c099a0
modify uart.on api to read raw data from uart
2014-12-30 15:42:24 +08:00
funshine
1a7884c24e
fix a bug when readline from uart
2014-12-26 11:17:54 +08:00
funshine
cdd13b1af3
source file first commit, folder structure refact
2014-12-22 19:35:05 +08:00