aboutsummaryrefslogtreecommitdiff
path: root/ports/esp32/machine_rtc.c
AgeCommit message (Collapse)Author
2020-10-06esp32: Use path relative to root for netutils/timeutils headers.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2020-09-18all: Rename absolute time-based functions to include "epoch".Damien George
For time-based functions that work with absolute time there is the need for an Epoch, to set the zero-point at which the absolute time starts counting. Such functions include time.time() and filesystem stat return values. And different ports may use a different Epoch. To make it clearer what functions use the Epoch (whatever it may be), and make the ports more consistent with their use of the Epoch, this commit renames all Epoch related functions to include the word "epoch" in their name (and remove references to "2000"). Along with this rename, the following things have changed: - mp_hal_time_ns() is now specified to return the number of nanoseconds since the Epoch, rather than since 1970 (but since this is an internal function it doesn't change anything for the user). - littlefs timestamps on the esp8266 have been fixed (they were previously off by 30 years in nanoseconds). Otherwise, there is no functional change made by this commit. Signed-off-by: Damien George <damien@micropython.org>
2020-04-05all: Use MP_ERROR_TEXT for all error messages.Jim Mussared
2020-03-28all: Remove spaces inside and around parenthesis.Damien George
Using new options enabled in the uncrustify configuration.
2020-03-25all: Remove spaces between nested paren and inside function arg paren.Damien George
Using new options enabled in the uncrustify configuration.
2020-02-28all: Reformat C and Python source code with tools/codeformat.py.Damien George
This is run with uncrustify 0.70.1, and black 19.10b0.
2019-11-21esp32/machine_rtc: Reduce memory footprint of user mem functionality.Josh Lloyd
2019-11-21esp32/machine_rtc: Make RTC.memory size and availability configurable.Josh Lloyd
The compile-time configuration value MICROPY_HW_RTC_USER_MEM_MAX can now be used to define the amount of memory set aside for RTC.memory(). If this value is configured to zero then the RTC.memory functionality is not included in the build.
2019-11-13esp32/rtc: Set system microseconds when setting time via RTC.datetime().Josh Lloyd
2018-09-20esp32/machine_rtc: Fix locals dict entry, init qstr points to init meth.Damien George
2018-05-02esp32: Use mp_rom_map_elem_t and MP_ROM_xxx macros for const dicts.Damien George
2018-02-17esp32/machine_rtc: Add RTC class to machine module with sleep impl.Eric Poulsen
The machine.RTC class is added and the machine module is updated with the implementation of sleep, deepsleep, reset_cause and wake_reason.