Paul Sokolovsky
43fecb0acb
esp8266/modesp: Allow to compile out proprietary espconn stuff.
2015-12-30 15:53:51 +02:00
Paul Sokolovsky
fce0036a67
esp8266: mac() function belongs to network module per the latest API.
2015-12-27 10:03:32 +02:00
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.
2015-12-26 12:32:33 +00:00
Paul Sokolovsky
abd0fcfc86
esp8266: Remove superfluous includes.
2015-12-21 22:08:06 +02:00
Paul Sokolovsky
e13d462f77
esp8266/modesp: flash_read() takes 2 args (fix typo).
2015-12-21 22:07:11 +02:00
Paul Sokolovsky
90202b4c0d
esp8266/modesp: Implement flash_read(offset, size_bytes) function.
...
Based on vendor API documentation, untested on real hardware.
2015-11-24 23:29:26 +02:00
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/.
2015-11-10 18:58:58 +02:00
Damien George
40274fec9c
lib/pyexec: Move header pyexec.h from stmhal directory.
2015-11-09 13:13:09 +00:00
Paul Sokolovsky
0ec51441de
stmhal: pyexec.c is common module, move to lib/utils/ .
2015-10-31 19:35:10 +03:00
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.
2015-10-31 19:14:30 +03:00
Paul Sokolovsky
6a09e7d7ae
esp8266: Switch to standard mp_hal_ticks_ms() MPHAL function.
2015-10-29 19:40:05 +03:00
Paul Sokolovsky
ebd9f550e8
esp8266: Switch to standard mp_hal_delay_ms() MPHAL function.
2015-10-29 13:03:59 +03:00
Paul Sokolovsky
5699fc9d0e
esp8266: Switch to standard mp_hal_delay_us() MPHAL function.
2015-10-29 02:06:58 +03:00
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.
2015-10-24 15:46:53 +03:00
Damien George
f09f8097d5
esp8266: Put more code in irom0 section, to get it building again.
2015-10-20 22:59:31 +01:00
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.
2015-10-19 18:32:42 +03:00
Damien George
0334058fa4
Rename "Micro Python" to "MicroPython" in REPL, help, readme's and misc.
2015-10-12 00:06:25 +01:00
Bill Owens
e2bfa471fa
esp8266: Added wlan.isconnected() to maintain parity with other ports.
2015-09-15 20:07:50 +03:00
Damien George
229b908d2e
esp8266: Remove "time" command from deploy target.
2015-09-12 22:22:30 +01:00
Bill Owens
a66a99bfd8
esp8266: Added wifi_mode() to read and set WiFi operating mode.
2015-08-29 16:58:51 +03:00
Damien George
75b1d881ec
esp8266: Use m_new/m_renew/m_del funcs instead of private gc_xxx.
2015-07-20 12:14:21 +01:00
Paul Sokolovsky
ab14c30493
esp8266: modesp: Update for gc_realloc() refactor.
...
TODO: Contributed code in modesp incorrectly uses private gc_* API.
2015-07-19 00:28:16 +03:00
Paul Sokolovsky
b19d273beb
esp8266: Allow to easily override programming baudrate.
2015-07-04 00:36:10 +03:00
Damien George
de8b585ab7
esp8266: Make pyb.RTC a type, and pyb.RTC() constructs an RTC object.
...
This is the standard way of doing things, one should construct a
peripheral object (even if it's a singleton).
See issue #1330 .
2015-06-22 23:03:17 +01:00
Bill Owens
60ccb41fac
esp8266: Move status() from esp module to network
2015-06-20 23:35:55 +03:00