Paul Sokolovsky
f22a4f8e0a
esp8266/etshal.h: Add timer functions prototypes.
9 years ago
Paul Sokolovsky
f39bcb304b
esp8266/modmachine: Changing params of a timer requires disarming it first.
9 years ago
Paul Sokolovsky
7193086c03
esp8266/modmachine: Basic implementation of Timer for OS virtual timers.
9 years ago
Paul Sokolovsky
4284b3811f
esp8266: Enable modmachine.
9 years ago
Paul Sokolovsky
5d7c408ba8
esp8266: Add modmachine with mem* arrays.
9 years ago
Paul Sokolovsky
6abafca1aa
esp8266/modutime: Support float argument to time.sleep().
9 years ago
Paul Sokolovsky
a4c8ef9d16
esp8266: Reset "virtual RTC" on power on.
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).
9 years ago
Damien George
57884996b9
esp8266: Add time.{sleep_ms,sleep_us,ticks_ms,ticks_us,ticks_diff}.
Framework for time.ticks_cpu added, but not implemented.
9 years ago
Damien George
b41a14a4b9
esp8266: Add mp_hal_delay_us function.
9 years ago
Damien George
f70873db23
esp8266: Enable more features in mpconfigport.h.
This is to get the test suite running and passing.
9 years ago
Paul Sokolovsky
7480ee5892
esp8266: Enable uhashlib module.
9 years ago
Paul Sokolovsky
70fb9ee99b
esp8266: Enable config settings helpful for debugging.
9 years ago
Paul Sokolovsky
259f1344ca
esp8266/esp8266.ld: Link in SDK version section.
Otherwise, os.uname() returns empty string for SDK version.
9 years ago
Paul Sokolovsky
ff69a1d27d
esp8266: Enable ujson, ubinascii, and uctypes modules.
9 years ago
Damien George
02ea74d8f5
esp8266: Add network.ifconfig().
9 years ago
Damien George
1febaf3ac3
esp8266: Change "soft reboot" message to work with pyboard.py.
9 years ago
Damien George
d083d7d610
esp8266: Allow Makefile's PORT variable to be overridden.
9 years ago
Damien George
6f4357c28e
esp8266: Enable math module.
9 years ago
Damien George
6d0629bddc
esp8266: Enable float support, using 30-bit stuffed floats.
No complex numbers though.
9 years ago
Damien George
ecd1272d16
esp8266: Switch bignum implementation from long-long to mpz.
9 years ago
Paul Sokolovsky
609a9c6b71
eagle.rom.addr.v6.ld: More symbols from SDK 1.5.0.
9 years ago
Paul Sokolovsky
a2e39a756c
esp8266/modpybrtc: Simplify multiplication by fixed-point value.
9 years ago
Paul Sokolovsky
9e78ab4b86
esp8266/README: Add hint about adding toolchain to PATH.
9 years ago
Paul Sokolovsky
814b1ae3a9
esp8266/modpybrtc: pyb_rtc_memory(): Fix copy-paste error.
9 years ago
Alex March
81407729a5
esp8266/modesp: Implement flash_write(), flash_erase().
9 years ago
Damien George
5b3f0b7f39
py: Change first arg of type.make_new from mp_obj_t to mp_obj_type_t*.
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.
9 years ago
Paul Sokolovsky
adfe4ff72a
esp8266: Support CFLAGS_EXTRA.
9 years ago
Paul Sokolovsky
43fecb0acb
esp8266/modesp: Allow to compile out proprietary espconn stuff.
9 years ago
Paul Sokolovsky
fce0036a67
esp8266: mac() function belongs to network module per the latest API.
9 years ago
Damien George
84b245f187
lib/utils: Add pyexec_frozen_module to load and execute frozen module.
This is a convenience function similar to pyexec_file. It should be used
instead of raw mp_parse_compile_execute because the latter does not catch
and report exceptions.
9 years ago
Paul Sokolovsky
abd0fcfc86
esp8266: Remove superfluous includes.
9 years ago
Paul Sokolovsky
e13d462f77
esp8266/modesp: flash_read() takes 2 args (fix typo).
9 years ago
Paul Sokolovsky
90202b4c0d
esp8266/modesp: Implement flash_read(offset, size_bytes) function.
Based on vendor API documentation, untested on real hardware.
9 years ago
Paul Sokolovsky
73ff0687f2
lib/utils/printf: Move from stmhal/ .
This file contains various MicroPython-specific helper functions, so isn't
good fit for lib/libc/.
9 years ago
Damien George
40274fec9c
lib/pyexec: Move header pyexec.h from stmhal directory.
9 years ago
Paul Sokolovsky
0ec51441de
stmhal: pyexec.c is common module, move to lib/utils/ .
9 years ago
Damien George
731f359292
all: Add py/mphal.h and use it in all ports.
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.
9 years ago
Paul Sokolovsky
6a09e7d7ae
esp8266: Switch to standard mp_hal_ticks_ms() MPHAL function.
9 years ago
Paul Sokolovsky
ebd9f550e8
esp8266: Switch to standard mp_hal_delay_ms() MPHAL function.
9 years ago
Paul Sokolovsky
5699fc9d0e
esp8266: Switch to standard mp_hal_delay_us() MPHAL function.
9 years ago
Paul Sokolovsky
0dbd928cee
Makefiles: Remove duplicate object files when linking.
Scenario: module1 depends on some common file from lib/, so specifies it
in its SRC_MOD, and the same situation with module2, then common file
from lib/ eventually ends up listed twice in $(OBJ), which leads to link
errors.
Make is equipped to deal with such situation easily, quoting the manual:
"The value of $^ omits duplicate prerequisites, while $+ retains them and
preserves their order." So, just use $^ consistently in all link targets.
9 years ago
Damien George
f09f8097d5
esp8266: Put more code in irom0 section, to get it building again.
9 years ago
Paul Sokolovsky
e0f5df579b
all: Make netutils.h available to all ports by default.
Generally, ports should inherit INC from py.mk, append to it, not
overwrite it. TODO: Likely should do the same for other vars too.
9 years ago
Damien George
0334058fa4
Rename "Micro Python" to "MicroPython" in REPL, help, readme's and misc.
9 years ago
Bill Owens
e2bfa471fa
esp8266: Added wlan.isconnected() to maintain parity with other ports.
10 years ago
Damien George
229b908d2e
esp8266: Remove "time" command from deploy target.
9 years ago
Bill Owens
a66a99bfd8
esp8266: Added wifi_mode() to read and set WiFi operating mode.
10 years ago
Damien George
75b1d881ec
esp8266: Use m_new/m_renew/m_del funcs instead of private gc_xxx.
9 years ago
Paul Sokolovsky
ab14c30493
esp8266: modesp: Update for gc_realloc() refactor.
TODO: Contributed code in modesp incorrectly uses private gc_* API.
9 years ago
Paul Sokolovsky
b19d273beb
esp8266: Allow to easily override programming baudrate.
9 years ago