1. 23 Feb, 2018 1 commit
  2. 18 Jul, 2017 1 commit
  3. 22 Jan, 2017 1 commit
  4. 14 Dec, 2016 1 commit
    • Johny Mattsson's avatar
      rtctime.dsleep() current draw improvements (#1659) · c5c0143b
      Johny Mattsson authored
      * Switch off interrupts before rtctime dsleep.
      
      * Deal with the fact that MCU keeps running after being told to enter deep sleep
      (It can keep running for quite a few instructions at times (and none at
      all at others), and it appears that trying to cache additional code from
      SPI flash while trying to go to sleep fails miserably at both....)
      
      * Ensure flash is not active when going into deep sleep.
      c5c0143b
  5. 19 Jul, 2016 1 commit
  6. 20 Jan, 2016 1 commit
  7. 16 Dec, 2015 2 commits
    • Johny Mattsson's avatar
      Reworked module registration, removed modules.h · 4e8ef87d
      Johny Mattsson authored
      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.
      4e8ef87d
    • TerryE's avatar
      Major cleanup of module registration pass 2. · b773290b
      TerryE authored
      carrying on Johny's edits as per my comments on #810
      b773290b
  8. 12 Dec, 2015 1 commit
    • Johny Mattsson's avatar
      Major cleanup of module registration. · 6b6456be
      Johny Mattsson authored
      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.
      6b6456be
  9. 10 Jul, 2015 3 commits
    • Johny Mattsson's avatar
      Imported reworked rtctime support. · dd38a0a0
      Johny Mattsson authored
      dd38a0a0
    • Johny Mattsson's avatar
      Imported RTC FIFO component + added Lua interface. · 67e72c45
      Johny Mattsson authored
      The rtcfifo module uses RTC memory to store sensor samples across deep-sleeps,
      making it possible to batch up samples for less frequent uploads. This
      component uses 9 RTC memory slots for control, and a variable number of
      slots for sample storage (see rtcfifo.prepare() on how to control the
      size/location of the latter).
      
      When used together with the rtctime module, it also exposes the convenience
      function rtcfifo.dsleep_until_sample() which can be used to easily take
      readings on a regular basis without having to manually take into account
      time spent awake to get an accurate sleep time.
      
      The format used for storing samples is quite dense, and allows for 16 bits
      of data in a fixed point format (per sample).
      67e72c45
    • Johny Mattsson's avatar
      Imported RTC+sleep timekeeping from an internal DiUS project. · 21874249
      Johny Mattsson authored
      Added Lua module rtctime to interface with it.
      
      This keeps as accurate time as is possible on the ESP8266, including across
      deep sleeps (provided rtctime.dsleep() is used rather than node.dsleep()).
      Intended to be used together with NTP for high accuracy time keeping. The
      API is via rtctime.{get,set}timeofday(), working from Unix epoch.
      
      Note that 160MHz CPU clock is not currently supported by the rtctime code,
      as it is only aware of the 52MHz boot clock and the regular 80Mhz default
      clock.
      
      See rtctime.h for detailed info on how this all works.
      21874249