Paul Sokolovsky
44cd46a7e4
objnamedtuple: Accept field list as a string.
...
This change is required to unbreak some CPython stdlib modules (as included
into micropython-lib).
2015-03-23 22:45:14 +02:00
Paul Sokolovsky
8705171233
objstr: Expose mp_obj_str_split() for reuse in other modules.
2015-03-23 22:43:37 +02:00
Damien George
4a8556ca58
unix: Remove -Wdouble-promotion from main build, and 2 from coverage.
...
The 2 removed from coverage build are: -Wredundant-decls and
-Wstrict-prototypes.
2015-03-22 22:41:45 +00:00
Damien George
8657342973
stmhal: Correctly clear wake-up flag before entering standby mode.
2015-03-22 21:52:20 +00:00
Paul Sokolovsky
e38b892144
objnamedtuple: Check that 2nd arg to namedtuple() is a list.
2015-03-22 23:08:19 +02:00
Damien George
cfe623ae3e
stmhal: Expose all PYBv1.0 pins, include SD and USB pins.
...
To have proper low power mode, need to configure all unused pins in
input mode, so need to have them available.
2015-03-22 17:57:09 +00:00
Damien George
f44ace11fb
stmhal: Put flash in deep power-down mode when entering stop mode.
...
This can get PYBv1.0 stop current down to around 290uA.
2015-03-22 17:55:50 +00:00
danicampora
104a867447
cc3200: Fix bug in telnet that caused the rx buffer to overflow.
2015-03-22 11:32:12 +01:00
Damien George
55b74d1ff5
py: Combine duplicated code that converts members from a lookup.
...
Despite initial guess, this code factoring does not hamper performance.
In fact it seems to improve speed by a little: running pystone(1.2) on
pyboard (which gives a very stable result) this patch takes pystones
from 1729.51 up to 1742.16. Also, pystones on x64 increase by around
the same proportion (but it's much noisier).
Taking a look at the generated machine code, stack usage with this patch
is unchanged, and call is tail-optimised with all arguments in
registers. Code size decreases by about 50 bytes on Thumb2 archs.
2015-03-21 14:21:54 +00:00
danicampora
59f6831336
cc3200: Reduce soft reset time. WLAN is not reinit, just reenabled.
2015-03-21 11:31:29 +01:00
danicampora
77791b5633
cc3200: Improve usability and robustness of the servers.
2015-03-21 11:31:17 +01:00
danicampora
c1c23e2f6a
cc3200: Remove superfluous code in pybsleep.
2015-03-21 11:27:26 +01:00
danicampora
cd9bc14c8f
cc3200: Add SPI module.
...
Only MASTER mode is supported. Transfer width is configurable to
8, 16 or 32 bits.
2015-03-21 11:26:47 +01:00
danicampora
c45e641c1d
cc3200: Re-name pybsystick to mpsystick.
2015-03-21 11:21:45 +01:00
Paul Sokolovsky
6bf423df2c
unix: Bump stack limit and adjust for 64-bitness.
...
Without that, "import http.client" failed due to max recursion.
2015-03-21 02:16:45 +02:00
Damien George
db80b65402
tests: Make pyb/timer test check callback timing properly.
2015-03-20 23:50:33 +00:00
Dave Hylands
49d8e5ebaa
stmhal: Fix a bug related to unhandled channel interrupts.
...
This also cleans up spurious interrupts which happen at timer
initilaization time.
2015-03-20 23:40:50 +00:00
stijn
3cc17c69ff
py: Allow retrieving a function's __name__.
...
Disabled by default. Enabled on unix and stmhal ports.
2015-03-20 23:13:32 +00:00
Paul Sokolovsky
07b8dc68d6
runtime: mp_load_method_maybe(): Don't use confusing "base" term.
...
"Base" should rather refer to "base type"."Base object for attribute
lookup" should rather be just "object".
Also, a case of common subexpression elimination.
2015-03-21 00:59:39 +02:00
Paul Sokolovsky
8d51c9d376
unix: When using separate obj output dirs, make -B is no longer relevant.
2015-03-21 00:42:29 +02:00
Damien George
2e22c2b477
unix: Move compiler warnings from production build to coverage build.
2015-03-20 22:33:13 +00:00
Damien George
7674da8057
stmhal: Remove some unnecessary declarations, purely for cleanup.
2015-03-20 22:27:34 +00:00
Paul Sokolovsky
69922c602c
objlist: list_reverse(): Fix typesafety error.
2015-03-20 23:35:21 +02:00
Damien George
d478fc75b3
tests: Adjust expected output, since Travis can't do git describe.
2015-03-20 21:31:50 +00:00
Damien George
d1cee02783
py: Clarify API for map/set lookup when removing&adding at once.
...
Addresses issue #1160 .
2015-03-20 17:41:37 +00:00