summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/modpybrtc.c
Commit message (Collapse)AuthorAge
* esp8266: Reset "virtual RTC" on power on.Paul Sokolovsky2016-03-04
| | | | | | | | | Initialize RTC period coefficients, etc. if RTC RAM doesn't contain valid values. time.time() then will return number of seconds since power-on, unless set to different timebase. This reuses MEM_MAGIC for the purpose beyond its initial purpose (but the whole modpybrtc.c need to be eventually reworked completely anyway).
* esp8266/modpybrtc: Simplify multiplication by fixed-point value.Paul Sokolovsky2016-02-12
|
* esp8266/modpybrtc: pyb_rtc_memory(): Fix copy-paste error.Paul Sokolovsky2016-02-08
|
* py: Change first arg of type.make_new from mp_obj_t to mp_obj_type_t*.Damien George2016-01-11
| | | | | | | | The first argument to the type.make_new method is naturally a uPy type, and all uses of this argument cast it directly to a pointer to a type structure. So it makes sense to just have it a pointer to a type from the very beginning (and a const pointer at that). This patch makes such a change, and removes all unnecessary casting to/from mp_obj_t.
* all: Add py/mphal.h and use it in all ports.Damien George2015-10-31
| | | | | | py/mphal.h contains declarations for generic mp_hal_XXX functions, such as stdio and delay/ticks, which ports should provide definitions for. A port will also provide mphalport.h with further HAL declarations.
* esp8266: Make pyb.RTC a type, and pyb.RTC() constructs an RTC object.Damien George2015-06-22
| | | | | | | This is the standard way of doing things, one should construct a peripheral object (even if it's a singleton). See issue #1330.
* esp8266: Actually use the decimal part of system_rtc_clock_cali_proc()Josef Gajdusek2015-05-13
|
* esp8266: Add utime and pyb.RTCJosef Gajdusek2015-05-13