- 14 Dec, 2016 1 commit
-
-
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.
-
- 10 Jul, 2015 3 commits
-
-
Johny Mattsson authored
-
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.
-
Johny Mattsson authored
Added Lua access module named "rtcmem" for read/write of RTC user module.
-