Commit Graph

1061 Commits

Author SHA1 Message Date
Terry Ellison e9f16d1ace Merge pull request #916 from jmattsson/tmr-limit-check
Range check the tmr interval value.
2016-01-10 11:32:15 +00:00
Johny Mattsson 3fb0de859f Range check the tmr interval value.
Plain SDK 1.5.0 bugs out for values >6871948 or so - this commit does
not do anything to mitigate that.
2016-01-10 18:10:03 +11:00
Terry Ellison dcbdfc8e70 Merge pull request #914 from ABonner/dev
Small fixes to README.md
2016-01-09 11:08:45 +00:00
Adam Bonner 09f4e01cb2 Small fixes to README.md
Update 1.5.0 link and add some other links
2016-01-08 21:59:02 -08:00
Terry Ellison 94402443f2 Merge pull request #910 from devsaurus/dev-gcfix
Remove superfluous collectgarbage() in webap example
2016-01-07 22:50:45 +00:00
Terry Ellison 01878dc599 Merge pull request #906 from jmattsson/cleanup_optram
Remove left-over cruft regarding Lua mem opt.
2016-01-07 22:45:57 +00:00
Terry Ellison ce639e443d Merge pull request #909 from devsaurus/dev-telnet
Update telnet example to fit new SDK behavior
2016-01-07 22:45:17 +00:00
devsaurus 07c1a28d4d remove ; and dangling spaces 2016-01-07 23:08:44 +01:00
devsaurus 626e7d3c91 close connection on sent instead on receive 2016-01-07 23:00:24 +01:00
devsaurus 5a6975b343 remove superfluous collectgarbage() 2016-01-06 23:51:21 +01:00
devsaurus 87351a2d10 consolidate telnet example 2016-01-06 23:18:42 +01:00
devsaurus ff3926175c add fifo to fit new sdk behavior 2016-01-06 22:18:11 +01:00
Johny Mattsson 0b2d90300a Remove left-over cruft regarding Lua mem opt. 2016-01-06 10:38:58 +11:00
Johny Mattsson 547ebdf3ff Merge pull request #896 from dnc40085/dev_node_dsleep_fix
Fix for node.dsleep to increase maximum sleep time
2016-01-05 12:26:12 +11:00
dnc40085 cb0a982dc3 Minor change to node module
node.dsleep was using sint32 to hold sleep time when it should be using
uint32
2016-01-02 03:10:27 -08:00
Terry Ellison 2f655deeca Merge pull request #885 from jmattsson/sdk150bin
Upgrade to SDK 1.5.0 + Espressif's Open LWIP 1.5.0.
2016-01-01 22:30:22 +00:00
Terry Ellison a8359f1da5 Merge pull request #882 from nodemcu/master
Resync master to dev prior to upgrading Dev to SDK 1.5
2015-12-28 15:38:21 +00:00
Terry Ellison 59c36cf526 Merge pull request #881 from devsaurus/ucg-getstrwidth
fix parameter access for ucg.getStrWidth()
2015-12-28 15:27:27 +00:00
devsaurus 20629386ca fix parameter access for ucg.getStrWidth() 2015-12-28 15:22:09 +01:00
Johny Mattsson a6c0873a28 Upgrade to SDK 1.5.0 + Espressif's Open LWIP 1.5.0.
Removed earlier TCP port randomisation fix - the new SDK has its own fix
even though Espressif told me they wouldn't fix it. Yay?
2015-12-23 11:17:05 +11:00
Terry Ellison 0069f002a8 Merge pull request #855 from devsaurus/dev-uart
UART: fix parity and stopbit generation
2015-12-22 01:38:40 +00:00
devsaurus 6cbe716db0 uart: fix parity and stopbit generation 2015-12-21 17:51:43 +01:00
Terry Ellison e45d790441 Merge pull request #866 from robertfoss/enduser_setup_#863
Fixed compilation error when the enduser_setup module is disabled
2015-12-21 09:52:15 +00:00
Robert Foss 672c396c69 Fixed compilation error when the enduser_setup module is disabled yet requires ENDUSER_SETUP_AP_SSID to be defined. 2015-12-20 22:50:36 -05:00
Terry Ellison 1462d00e9f Merge pull request #842 from jmattsson/module-ltr-cleanup
Cleanup: LTR module registration
2015-12-19 23:22:18 +00:00
Terry Ellison 93421f2702 Merge pull request #861 from marcelstoer/master
Add a few small corrections and new Docker link
2015-12-18 22:19:19 +00:00
Marcel Stör d81ce710c4 Add a few small corrections and new Docker link
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.
2015-12-18 13:51:47 +01:00
Johny Mattsson 9003d3e8fb Rework NODEMCU_MODULE() to not pull in extra gunk.
Third time lucky. I hope. Hi Terry.
2015-12-18 13:10:48 +11:00
Terry Ellison 4708b2acd4 Merge pull request #858 from marcelstoer/dev-new-docker-reference
Add a few small corrections and new Docker link
2015-12-18 00:39:32 +00:00
Marcel Stör da5834e2cf Add a few small corrections and new Docker link
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.
2015-12-17 20:21:47 +01:00
Johny Mattsson 6d82f8da9d Merge pull request #857 from devsaurus/dev-spi_cpol
SPI: cpol=high is not implemented due to insufficient hw docs
2015-12-17 12:57:25 +11:00
Johny Mattsson 7e02935a27 Deal with ld's overly eager discarding of globals. 2015-12-17 12:37:01 +11:00
devsaurus 5e9bf95ccc cpol=high is not implemented due to insufficient hw docs 2015-12-16 22:23:04 +01:00
Terry Ellison 53ee80e3aa Merge pull request #841 from jmattsson/flash-addr-cleanup
Cleanup/minor correction: Flash addr cleanup
2015-12-16 10:53:58 +00:00
Johny Mattsson fd9113124c Corrected the 4-page alignment for start of fs. 2015-12-16 18:59:55 +11:00
Johny Mattsson 4e8ef87d03 Reworked module registration, removed modules.h
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.
2015-12-16 16:09:16 +11:00
TerryE b773290b8c Major cleanup of module registration pass 2.
carrying on Johny's edits as per my comments on #810
2015-12-16 11:21:40 +11:00
Arnim Läuger 4461fcd5ad Merge pull request #853 from pastukhov/dev
Readme for u8glib app to dev
2015-12-15 22:30:04 +01:00
Artem Pastukhov 5cb27f89ae Add ImageMagic info. 2015-12-15 09:35:20 +03:00
Artem Pastukhov 6009602382 Some polish 2015-12-14 11:41:10 +03:00
Artem Pastukhov 4b0cec1757 * Add u8glib readme. 2015-12-14 11:34:11 +03:00
Terry Ellison 0386ae6559 Merge pull request #804 from DiUS/panic
Do not allow execution to continue after a PANIC
2015-12-12 15:36:00 +00:00
Johny Mattsson 6b6456be47 Major cleanup of module registration.
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.
2015-12-12 15:03:40 +11:00
Johny Mattsson d84a24fc9a Proper cached-flash to phys address translation. 2015-12-12 13:20:22 +11:00
Johny Mattsson c4e8b04fbf Cleaned up all uses of INTERNAL_FLASH_START_ADDRESS.
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.
2015-12-12 13:20:22 +11:00
Marcel Stör 432f698fd8 Merge pull request #818 from nickandrew/update-readme-master
Update master README from dev branch
2015-12-06 08:49:47 +01:00
Marcel Stör 68eadaaf45 Merge pull request #817 from nickandrew/update-readme-2
Update readme 2
2015-12-06 08:49:13 +01:00
Nick Andrew 8eb4f3c594 Update master README from dev branch
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>
2015-12-06 11:49:28 +11:00
Nick Andrew 570bddcfe5 More README tweaks now that master was updated
* Remove the "0.9.6; deprecated" comment regarding the master branch
  * Add a paragraph on enabling debugging
  * Clarify (I hope) the conditions under which you need to reformat your flash filesystem.
  * Remove trailing blanks

Signed-off-by: Nick Andrew <nick@nick-andrew.net>
2015-12-06 11:38:49 +11:00
Nick Andrew 1217b47779 Update README SDK; remove todo list
Based on @vowstar edits:

  * Note that the SDK is the NONOS one
  * Add links for NodeMCU devkit v1.0 and distinguish from v0.9
  * Remove the ToDo list (as all are complete but for 1 item)
2015-12-06 11:21:52 +11:00