I a discussion with @nickandrew (original author of updated sections) he agreed that we should rather link to *my* Docker image because it has fewer issues then the one currently referenced. The one we identified will soon be addressed.
I a discussion with @nickandrew (original author of updated sections) he agreed that we should rather link to *my* Docker image because it has fewer issues then the one currently referenced. The one we identified will soon be addressed.
Module creation & registration now made a lot simpler. In essence,
each module file is now self-contained and only needs a
NODEMCU_MODULE(MYNAME, "myname", myname_map, luaopen_myname);
line to both be automatically recognised by the Lua initialization
as well as honor the LUA_USE_MODULES_MYNAME #define.
As per #810 & #796, only LUA_OPTIMIZE_MEMORY=2 & MIN_OPT_LEVEL=2 are
supported when building. This commit effects that limitation.
With this change modules/auxmods.h no longer needs to be updated for
every new module, nor do module writers need to cater for a hypothetical
LUA_OPTIMIZE_MEMORY < 2 scenario.
There was only one genuine use of this macro, all other places were
using it only as a necessary compensation. While this was fine as long as
it was the first meg of flash which was mapped, it became incorrect and
quite dangerous whenever this assumption did not hold (such as when
running from the second slot in an OTA scenario).
The flash API now uses actual addresses, not translated/mapped
addresses, and the users of this API have been adjusted accordingly.
This makes the flash API work correctly regardless of what flash mapping
is in use.
The old macro is still available under the new name
INTERNAL_FLASH_MAPPED_ADDRESS, and this is used to detect flash writes
where the source is mapped flash (and thus has to be bounced), and to
adjust the _flash_used_end linker symbol when used with
flassh_find_sector() by the filesystem code. The latter usage is not
OTA-proof, but in an OTA scenario the filesystem needs a fixed location
anyway and thus would not use this code path.
Given that the 0.9.5 and 0.9.6 versions of NodeMCU are deprecated, it
is quite important that the updated README appears in the master branch.
That's what people will see when they visit the repository page on github.
This commit just squashes all recent dev-branch changes to README.md
to get it updated ASAP in advance of pulling the entire dev branch
into master.
Signed-off-by: Nick Andrew <nick@nick-andrew.net>