Paul Sokolovsky
3d830415bc
esp8266/esp_mphal: Add ets_esf_free_bufs(), etc. functions.
...
Returning free number of various WiFi driver packet buffers.
2016-05-03 00:18:14 +03:00
Paul Sokolovsky
7b7c99fec1
esp8266/modnetwork: Remove deprecated wifi_mode().
...
Network interfaces are now controlled individually using .active() method.
2016-05-03 00:09:23 +03:00
Damien George
9215cdc7fd
esp8266: Change platform name from ESP8266 to esp8266.
...
The port name is lowercase, and this change is made for consistency with
the docs and other ports.
2016-05-02 18:54:46 +01:00
Paul Sokolovsky
b8468d12a1
extmod/modwebrepl: Get rid of using strncpy().
2016-05-02 20:52:34 +03:00
Paul Sokolovsky
c6923f52f0
lib/libc/string0: Remove better-than-standard strncpy() implementation.
...
ANSI C doesn't require that strncpy() produced null-terminated string, so
it's basicly useless for string manipulation.
2016-05-02 18:53:21 +03:00
Paul Sokolovsky
13d9d50fea
esp8266/scripts/webrepl_setup: Reject too short passwords.
2016-05-02 18:48:32 +03:00
Paul Sokolovsky
bd9de5ec90
lib/libc/string0: Add strncpy() implementation.
2016-05-02 18:38:19 +03:00
Paul Sokolovsky
5302c3e8c4
docs/esp8266_contents: Referebce general and tutorial docs.
2016-05-02 17:45:42 +03:00
Paul Sokolovsky
a22aa53ef1
docs/esp8266/general: Add "Boot process" section.
2016-05-02 17:41:08 +03:00
Paul Sokolovsky
12144e8fcd
docs/esp8266/general: Add techspec section.
...
Link to vendor forum with datasheets, etc. is provided, as well as inline
TTX.
2016-05-02 17:12:25 +03:00
Paul Sokolovsky
0f682f1ee1
docs/esp8266/general: Fix list formatting.
2016-05-02 16:10:48 +03:00
Paul Sokolovsky
5aa4db0505
docs/esp8266/general: Add more points to "Multitude of boards" section.
2016-05-02 16:00:44 +03:00
Paul Sokolovsky
74c6363b97
docs/esp8266/general: WebREPL is described in quickref for now.
2016-05-02 15:26:40 +03:00
Paul Sokolovsky
566d8f1d7e
tests: Make "io" modules fixes for CPython compatibility.
...
Previously, "import _io" worked on both CPython and MicroPython (essentially
by a chance on CPython, as there's not guarantee that its contents will stay
the same across versions), but as the module was renamed to uio, need to use
more robust import sequence for compatibility.
2016-05-02 14:38:07 +03:00
Damien George
c816b89353
docs/library/machine.I2C: Update to reflect ESP8266 implementation.
...
This machine.I2C documentation is now closer to a more port-neutral
description, although there are still differences between WiPy and
ESP8266.
2016-05-02 12:31:17 +01:00
Paul Sokolovsky
8c35f3979c
tests: Update for _io/_collections module having been renamed.
2016-05-02 14:15:11 +03:00
Paul Sokolovsky
621c644205
docs: _io and _collections were renamed to have standard "u" prefix.
2016-05-02 14:02:54 +03:00
Paul Sokolovsky
9549590fc6
py/modcollections: Rename module name have "u" prefix for consistency.
2016-05-02 13:57:46 +03:00
Paul Sokolovsky
ddb9dba2f7
py/modio: Rename module name to "uio" for consistency with other modules.
2016-05-02 13:56:33 +03:00
Damien George
70ff7350e7
stmhal, cc3200: Change i2c.scan() method to scan addresses 0x08-0x77.
...
A standard I2C address is 7 bits but addresses 0b0000xxx and 0b1111xxx
are reserved. The scan() method is changed to reflect this, along with
the docs.
2016-05-02 11:15:36 +01:00
Paul Sokolovsky
26fd0ac571
esp8266/Makefile: Be sure to pass cross-compiling AR when building axtls.
...
Fixes build under MacOSX.
2016-05-02 01:22:42 +03:00
Paul Sokolovsky
8ebdbcfb27
docs: Add _io module reference.
2016-05-02 00:39:36 +03:00
Paul Sokolovsky
348caaf940
docs: Add _collections module reference.
2016-05-02 00:36:58 +03:00
Paul Sokolovsky
1f0dfe37a1
lib/axtls: Update to the latest upstream, fix reported MacOSX build issue.
2016-05-01 22:19:14 +03:00
Paul Sokolovsky
fd283eba64
docs/sys: Describe sys.platform is port-neutral manner.
2016-05-01 14:39:38 +03:00
Paul Sokolovsky
e9b7610748
docs/sys: Describe sys.maxsize.
2016-05-01 14:31:08 +03:00
Paul Sokolovsky
59603a2e89
docs/sys: Describe sys.implementation.
2016-05-01 13:59:34 +03:00
Paul Sokolovsky
4fb9452bff
docs/sys: Clean up print_exception() description.
2016-05-01 13:44:06 +03:00
Paul Sokolovsky
ad2889c141
docs/sys: Clarify description of sys.exit().
2016-05-01 13:42:36 +03:00
Paul Sokolovsky
8ad1659f68
docs/sys: Make module variable descriptions proper sentences.
2016-05-01 13:38:45 +03:00
Paul Sokolovsky
7781caf8d3
docs/sys: Remove port-specific details from description of stdin/out/err.
2016-05-01 13:37:28 +03:00
Paul Sokolovsky
c468fe65c5
docs/ustruct: Fix argument formatting.
...
Per current CPython docs conventions, arguments are in italics. Follow
that.
2016-05-01 13:34:16 +03:00
Paul Sokolovsky
a9ed42b3b4
docs/sys: Document sys.modules.
2016-05-01 13:32:15 +03:00
Paul Sokolovsky
6b6acc5b5d
docs/ustruct: Document pack_into(), unpack_from().
2016-05-01 13:17:07 +03:00
Paul Sokolovsky
d46cd02d95
docs/esp8266/quickref: Add info about WebREPL.
2016-05-01 11:41:46 +03:00
Paul Sokolovsky
df06e34175
tests/run-bench-tests: Process tests in alphabetical order.
2016-05-01 10:35:24 +03:00
Paul Sokolovsky
83e99f88cb
docs/utime: Clarify module purpose.
2016-05-01 01:48:30 +03:00
Paul Sokolovsky
613fd0a1ca
docs/library/utime: Elaborate on epochs and calendar time maintenance.
2016-05-01 00:16:47 +03:00
Paul Sokolovsky
9dd2c92d01
esp8266/README: Mention WebREPL.
2016-04-30 23:02:54 +03:00
Paul Sokolovsky
c1d1c562f3
esp8266/scripts/webrepl: Add "first connection" mode to setup password.
...
If there's no port_config.py file, or it lacks WEBREPL_PASS variable,
"initial setup mode" will be entered on first WebREPLconnection. User
will be asked for password, which will be written to
port_config.WEBREPL_PASS, and system restarted to work in normal mode
with password active.
2016-04-30 20:41:09 +03:00
Paul Sokolovsky
962d5a987f
esp8266/scripts/webrepl: Switch to using _webrepl object wrapper.
...
Handling of binary protocol is untested on esp8266 so far.
2016-04-30 20:39:35 +03:00
Paul Sokolovsky
006ffe1561
esp8266/scripts/webrepl: Connection ack prompt is now printed by modwebrepl.
...
After password is checked.
2016-04-30 20:38:05 +03:00
Paul Sokolovsky
859e4e94f3
extmod/modwebrepl: Add support for password.
...
Request for password then becomes mandatory part of the protocol.
2016-04-30 20:36:32 +03:00
Paul Sokolovsky
6ddd9f3e2b
esp8266/scripts/inisetup: Create default boot.py in filesystem.
...
Currently it pre-imports webrepl, but doesn't start it.
2016-04-29 20:11:48 +03:00
Paul Sokolovsky
74f413bc60
esp8266/scripts/_boot: builtins is no longer used.
2016-04-29 20:04:17 +03:00
Paul Sokolovsky
d86d65f625
esp8266/scripts: Move all of initial setup to inisetup module.
2016-04-29 20:02:59 +03:00
Paul Sokolovsky
adae53d522
esp8266: Enable webrepl module.
2016-04-29 19:38:21 +03:00
Paul Sokolovsky
18775d3807
extmod/modwebrepl: Set debugging by default to off.
...
That's production setting. Also, extra UART output may affect behavior of
(subpar) network drivers.
2016-04-29 19:17:37 +03:00
Paul Sokolovsky
f8170db390
esp8266: Enable WebREPL file transfer rate limiting.
2016-04-29 19:15:26 +03:00
Paul Sokolovsky
b0f3ae58e7
extmod/modwebrepl: Add rate-limiting workaround for broken network drivers.
...
Like ESP8266 has.
2016-04-29 19:14:03 +03:00