Paul Sokolovsky
e284a95cc3
ubinascii: b2a_base64: Optimize away a modulo operation.
2015-07-04 12:36:46 +03:00
Galen Hazelwood
616986a5f3
extmod: Add a2b_base64 and b2a_base64 functions to ubinascii.
2015-07-04 12:26:52 +03:00
Paul Sokolovsky
b19d273beb
esp8266: Allow to easily override programming baudrate.
2015-07-04 00:36:10 +03:00
Daniel Campora
31b40eebe8
cc3200: Fix socket recv and recvfrom return value type.
2015-07-02 23:17:22 +02:00
Damien George
035deae1c6
py/objarray.c: Allow to build with debugging and bytearray but no array.
2015-07-02 16:26:57 +01:00
Daniel Campora
5161239c9f
cc3200: time.sleep() now receives seconds, like CPython.
2015-07-02 17:23:22 +02:00
Daniel Campora
9a65fa304c
cc3200: Add modussl, ssl sockets subclassed from normal sockets.
...
Stream methods were added to normal sockets as in the unix port.
2015-07-02 16:30:00 +02:00
Daniel Campora
7c1c9af5d4
cc3200: Code clean-up on pybpin.
2015-07-02 16:29:51 +02:00
Daniel Campora
4f8eeaedef
cc3200: Set WLAN date/time via the rtc.datetime method().
...
WLAN needs time info when validating certificates.
2015-07-02 16:29:43 +02:00
Daniel Campora
d680e28a11
cc3200: Optimize check for WLAN AP mode.
2015-07-02 16:15:59 +02:00
Daniel Campora
7fd538c1b6
cc3200: Raise an exception if trying to scan for networks in AP mode.
2015-07-02 15:03:58 +02:00
Daniel Campora
f522849a4d
cc3200: Add socket.timeout and socket.error exceptions.
2015-07-02 11:53:15 +02:00
Daniel Campora
077812b2ab
py: Add TimeoutError exception subclassed from OSError.
...
The TimeoutError is useful for some modules, specially the the
socket module. TimeoutError can then be alised to socket.timeout
and then Python code can differentiate between socket.error and
socket.timeout.
2015-07-02 11:53:08 +02:00
Daniel Campora
bdf958df30
docs/wipy: Update safe boot comments to match actual behaviour.
2015-06-30 22:27:50 +02:00
Daniel Campora
70fc42cb28
cc3200: Add CA, certificate and key files to the updater list.
2015-06-30 22:11:15 +02:00
Daniel Campora
5ebf39784a
cc3200: Correct socket settimeout time format.
2015-06-29 11:01:11 +02:00
Paul Sokolovsky
9780e55274
builtinimport: Fix running package submodule with -m.
...
When "micropython -m pkg.mod" command was used, relative imports in pkg.mod
didn't work, because pkg.mod.__name__ was set to __main__, and the fact that
it's a package submodule was missed. This is an original workaround to this
issue. TODO: investigate and compare how CPython deals with this issue.
2015-06-29 00:26:45 +03:00
Daniel Campora
4f5b896a0b
cc3200: Adapt update-wipy.py timing to improve stability.
2015-06-28 14:14:24 +02:00
Daniel Campora
813b581127
cc3200: Add Pin.name() method.
2015-06-28 14:14:22 +02:00
Daniel Campora
778413168b
cc3200: Enable more features to improve compatibility with stmhal.
2015-06-28 14:14:20 +02:00
Damien George
0807139c1d
stmhal: Add config option for storage to use second flash segment.
...
When enabled this allows the internal storage to be split over 2
contiguous regions of flash (two segments), and so the storage can be
increased.
This option is disabled by default, giving original behaviour.
2015-06-27 23:27:23 +01:00
Damien George
fa1cdb09fc
docs: Fix duplicate label error for network.WLAN.
2015-06-27 13:42:00 +01:00
Damien George
8cc8f280eb
docs: Make index link point to "index.html" irrespective of port.
2015-06-27 13:41:24 +01:00
Paul Sokolovsky
9896314f5b
tests: Add test for relative import without package context.
2015-06-27 00:40:22 +03:00
Paul Sokolovsky
c4045f57e3
builtinimport: Catch case when relative import happens without active package.
...
CPython raises SystemError in this case, but we don't have that enabled, so
raise ImportError.
2015-06-27 00:40:21 +03:00