- 22 Jun, 2016 1 commit
-
-
Johny Mattsson authored
Running without interrupt vectors not considered all that useful... Disabled flash-size-byte-setting and SPIFFS formatting on ESP32, for now at least, as both of these appeared to corrupt the flash and prevent subsequent boots. Disabled UART init on ESP32 until the driver gets updated. This now gets us to a banner on ESP32, but not yet a prompt.
-
- 09 Jun, 2016 1 commit
-
-
Johny Mattsson authored
A fair bit of reshuffling with include paths and overrides was necessary, as the two RTOS SDKs (ESP8266 and ESP32) don't have the same header structure (or even libraries for that matter). Uses the xtensa-esp108-elf toolchain to build. Completely untested beyond linking, as I still can't flash the ESP32 module I have :( I'd be most surprised if it does anything useful at this point considering I've spent almost no time on the linker script or UART setup. Anything using espconn has been ifdef'd out since espconn is not (and probably will not be) available. Notably this includes the entire net module as well as coap, mqtt and enduser_setup. Many (most?) hardware bus drivers and related modules are also ifdef'd out for now due to hardware differences. Functions surrounding sleep, rtc and RF modes have also been hit by the ifdef hammer. Grep'ing for __ESP8266__ and/or FIXME is a quick way of finding these places. With time I hope all of these will be reinstated.
-
- 03 Jun, 2016 1 commit
-
-
Johny Mattsson authored
-
- 02 Jun, 2016 3 commits
-
-
Johny Mattsson authored
-
Johny Mattsson authored
-
Johny Mattsson authored
-
- 01 Jun, 2016 3 commits
-
-
Johny Mattsson authored
-
Johny Mattsson authored
The old NodeMCU puts() did not do the standard newline, while the RTOS C library one certainly does.
-
Johny Mattsson authored
The os_timer callback is executed from task rtT, prio 14, so they preempt the Lua environment whenever they fire. Ideally we should be using the RTOS timers instead, which run at prio 2 and thus would be more suited for our uses.
-
- 31 May, 2016 3 commits
-
-
Johny Mattsson authored
Since configUSE_TRACE_FACILITY is not enabled :(
-
Johny Mattsson authored
Having the actual function prototype for the internal print() function would be useful...
-
Johny Mattsson authored
-
- 30 May, 2016 3 commits
-
-
Johny Mattsson authored
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.
-
Johny Mattsson authored
-
Johny Mattsson authored
Turns out ets_printf() lied to me. When handed an aligned string in flash it did 32bit loads on it instead of the expected 8bit loads, so just silencing the exception was enough to give the appearance of it working.
-
- 27 May, 2016 1 commit
-
-
Johny Mattsson authored
Dereferencing struct contents considered harmful...
-
- 26 May, 2016 4 commits
-
-
Johny Mattsson authored
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.
-
Johny Mattsson authored
-
Johny Mattsson authored
With a working exception handler all of the RTOS-SDK bits seem to be happy too. So far.
-
Johny Mattsson authored
Incidentally now also a whole lot faster.
-
- 24 May, 2016 2 commits
-
-
Johny Mattsson authored
Not yet hooked up to an RTOS task, however.
-
Johny Mattsson authored
This compiles, links, and starts the RTOS without crashing and burning. Lua environment does not yet start due to the different task architecture. Known pain points: - task implementation needs to be rewritten for RTOS (next up on my TODO) - secure espconn does not exist, all secure espconn stuff has been #if 0'd - lwip now built from within the RTOS SDK, but does not appear to include MDNS support. Investigation needed. - there is no access to FRC1 NMI, not sure if we ever actually used that however. Also #if 0'd out for now. - new timing constraints introduced by the RTOS, all use of ets_delay_us() and os_delay_us() needs to be reviewed (the tsl2561 driver in particular). - even more confusion with ets_ vs os_ vs c_ vs non-prefixed versions. In the long run everything should be switched to non-prefixed versions. - system_set_os_print() not available, needs to be reimplemented - all the RTOS rodata is loaded into RAM, as it apparently uses some constants while the flash isn't mapped, so our exception handler can't work its magic. This should be narrowed down to the minimum possible at some point. - with each task having its own stack in RTOS, we probably need change flash-page buffers from the stack to the heap in a bunch of places. A single, shared, page buffer *might* be possible if we limit ourselves to running NodeMCU in a single task. - there's a ton of junk in the sdk-overrides now; over time the core code should be updated to not need those shims
-
- 21 May, 2016 1 commit
-
-
Arnim Läuger authored
Thank you.
-
- 18 May, 2016 1 commit
-
-
Johny Mattsson authored
- Stop fighting against the SDK in terms of owning/writing the init_data block. NodeMCU included a default init_data block because originally the SDK did not, but by now it's not needed. - Expose a way to reconfigure the ADC mode from Lua land. With most people using the cloud builder and not able to change the #define for byte 107 this has been a pain point. - Less confusion about which init_data has been used. Lua code can now simply state what mode it wants the ADC to be in, and not worry about the rest of the init_data complexities such as the init_data changing location due to flashing with wrong flash_size setting, or doing/not doing a chip-erase before loading new NodeMCU firmware.
-
- 13 May, 2016 1 commit
-
-
dnc40085 authored
* Change upper limit for timer in `tmr_register` and `tmr_interval` to reflect new limit in SDK 1.5.3. * Change documentation for `tmr.alarm()`, `tmr.interval()` and `tmr.register()` to match source. * Improve error reporting to be more descriptive.
-
- 12 May, 2016 1 commit
-
-
Philip Gladstone authored
* Send a multicast response if it is a QM query * Use the NSEC record in the style which mDNS demands * Shuffle the code a bit and allow sending of A response... * Made the A record work * Now gets TTLs right and (I think) handles multiple questions
-
- 10 May, 2016 1 commit
-
-
philip authored
-
- 09 May, 2016 1 commit
-
-
Thomas Soëte authored
* Fix bug on first write Pin is 'HIGH' at reset, so we need to pull it down and generate a reset. * Move init code to flash section, not needed to be in iram. * Remove pin choice in API * Remove lock in ws2812_buffer_write * Remove naked malloc * Drop ws2812_writergb * Drop support of ws2812.buffers to ws2812_writegrb should use ws2812.buffers:write * Add support for <>3 colors per leds strips (RGBW) * Remove ICACHE_FLASH_ATTR * Add static const on _uartData to avoid initialization penalty
-
- 29 Apr, 2016 1 commit
-
-
devsaurus authored
-
- 24 Apr, 2016 1 commit
-
-
Philip Gladstone authored
Made the code clearer
-
- 17 Apr, 2016 1 commit
-
-
Philip Gladstone authored
* Auto autobaud detection by default * Added stopping the autobaud if explicitly configured * Add note about auto-baud to the uart.md
-
- 15 Apr, 2016 1 commit
-
-
Johny Mattsson authored
* Provide an error code to SNTP error callback. * Switch SNTP to use ephemeral port. In case we're being hit by ISP-level thou-shall-not-run-NTP silliness.
-
- 09 Apr, 2016 1 commit
-
-
Philip Gladstone authored
Fix failure to compile Move the check into the http module Reverted change
-
- 03 Apr, 2016 1 commit
-
-
Philip Gladstone authored
Merging as suggested by @TerryE (and squashing at the same time. Turns out that this feature is enabled for this repo). * Squashed commit of the following: commit f985f10d9d2ee035f5a6ee6245c60d9904d98cc1 Author: philip <philip@gladstonefamily.net> Date: Sun Mar 27 21:52:46 2016 -0400 Better mdns code commit 6ee49ee106274bc63f6309047e57f7bc9828523e Author: philip <philip@gladstonefamily.net> Date: Fri Mar 25 23:25:11 2016 -0400 Update the docs commit 7e455541c6f2531824cfb2419d051f1306935fdf Author: philip <philip@gladstonefamily.net> Date: Thu Mar 24 21:58:16 2016 -0400 Add retries and buffer checking to mdns Get the length right Now it seems to work * Might work for combined mode * Fix crash * Simplified various bits of code. Changed the LUA interface Added checking (to some degree) incoming quyery types Move the defaults to the right place Added reference to the RFC`
-
- 02 Apr, 2016 1 commit
-
-
Jason Follas authored
* Corrected CPOL/CPHA relationships * Simplified to remove duplicated code * Removed comments about when MISO is sampled. ESP seems to sample MISO on same clock edge as when MOSI is set.
-
- 01 Apr, 2016 2 commits
-
-
dnc40085 authored
Implement SDK event monitor Move wifi status event monitor code into seperate file (app/modules/wifi_eventmon.c) Modify wifi lua callback registration code. Add Functions wifi.ap.deauth and wifi.sta.getrssi Rework wifi event monitor to use tasking interface fix for Lua coroutine compatibility issue Made changes Suggested by TerryE Also, moved code that sets the default host name out of luaopen_wifi_init and into a separate function and added a post_task_low entry in it's place. Replaced some if test then return error lines with luaL_argcheck Add check for malloc null return in wifi.eventmon to catch out of memory errors
-
Robert Foss authored
-
- 31 Mar, 2016 1 commit
-
-
Johny Mattsson authored
-
- 30 Mar, 2016 2 commits
-
-
Robert Foss authored
-
Marcel Stör authored
-