Damien George
aedf583af2
py: Simplify some logic in compiler; add comments about CPython compat.
10 years ago
Daniel Campora
7f41f650de
cc3200: Remove superflous params from the I2C API.
10 years ago
Daniel Campora
26d230419c
cc3200: Add GPIO25 to the pins list of the WiPy and the WiPy-SD.
This allows to properly initialize the system led and add it
to the sleep module so that it can be restored when resuming
from suspended mode.
10 years ago
Daniel Campora
4729a212b1
cc3200: Rename the WiPy_SD to WiPy-SD.
10 years ago
Daniel Campora
684dba40f0
cc3200: Roll back to the previous telnet and ftp timeouts.
Unfortunately, these timeouts are the only realiable way (for now), to
be able to detect broken connections due to half-open sockets. Such a
thing occurs when getting out of the WiFi coverage area or when
disconnecting from the AP (sometimes the client doesn't send the
disconnect packet).
10 years ago
Daniel Campora
e15f8198bc
cc3200: Keep WLAN enabled during the soft reset.
10 years ago
Daniel Campora
9d3588f2be
cc3200: Remove the cc3200.xml file. Latest CCS already ships with it.
10 years ago
Paul Sokolovsky
3d598256df
py: Cast mp_obj_t to concrete types explicitly.
mp_obj_t internal representation doesn't have to be a pointer to object,
it can be anything.
There's also a support for back-conversion in the form of MP_OBJ_UNCAST.
This is kind of optimization/status quo preserver to minimize patching the
existing code and avoid doing potentially expensive MP_OBJ_CAST over and
over. But then one may imagine implementations where MP_OBJ_UNCAST is very
expensive. But such implementations are unlikely interesting in practice.
10 years ago
Paul Sokolovsky
ec1b1cf834
docs: uctypes: Describe couple more functions.
10 years ago
Damien George
dfad7f471a
stmhal: Optimise ADC.read_timed() so that it can sample up to 750kHz.
10 years ago
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).
10 years ago
Paul Sokolovsky
8705171233
objstr: Expose mp_obj_str_split() for reuse in other modules.
10 years ago
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.
10 years ago
Damien George
8657342973
stmhal: Correctly clear wake-up flag before entering standby mode.
10 years ago
Paul Sokolovsky
e38b892144
objnamedtuple: Check that 2nd arg to namedtuple() is a list.
10 years ago
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.
10 years ago
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.
10 years ago
danicampora
104a867447
cc3200: Fix bug in telnet that caused the rx buffer to overflow.
10 years ago
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.
10 years ago
danicampora
59f6831336
cc3200: Reduce soft reset time. WLAN is not reinit, just reenabled.
10 years ago
danicampora
77791b5633
cc3200: Improve usability and robustness of the servers.
10 years ago
danicampora
c1c23e2f6a
cc3200: Remove superfluous code in pybsleep.
10 years ago
danicampora
cd9bc14c8f
cc3200: Add SPI module.
Only MASTER mode is supported. Transfer width is configurable to
8, 16 or 32 bits.
10 years ago
danicampora
c45e641c1d
cc3200: Re-name pybsystick to mpsystick.
10 years ago
Paul Sokolovsky
6bf423df2c
unix: Bump stack limit and adjust for 64-bitness.
Without that, "import http.client" failed due to max recursion.
10 years ago
Damien George
db80b65402
tests: Make pyb/timer test check callback timing properly.
10 years ago
Dave Hylands
49d8e5ebaa
stmhal: Fix a bug related to unhandled channel interrupts.
This also cleans up spurious interrupts which happen at timer
initilaization time.
10 years ago
stijn
3cc17c69ff
py: Allow retrieving a function's __name__.
Disabled by default. Enabled on unix and stmhal ports.
10 years ago
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.
10 years ago
Paul Sokolovsky
8d51c9d376
unix: When using separate obj output dirs, make -B is no longer relevant.
10 years ago
Damien George
2e22c2b477
unix: Move compiler warnings from production build to coverage build.
10 years ago
Damien George
7674da8057
stmhal: Remove some unnecessary declarations, purely for cleanup.
10 years ago
Paul Sokolovsky
69922c602c
objlist: list_reverse(): Fix typesafety error.
10 years ago
Damien George
d478fc75b3
tests: Adjust expected output, since Travis can't do git describe.
10 years ago
Damien George
d1cee02783
py: Clarify API for map/set lookup when removing&adding at once.
Addresses issue #1160 .
10 years ago
Paul Sokolovsky
d48035b06b
tests: Add basic test for OrderedDict.
Mostly to have coverage of newly added code in map.c.
10 years ago
Paul Sokolovsky
0ef01d0a75
py: Implement core of OrderedDict type.
Given that there's already support for "fixed table" maps, which are
essentially ordered maps, the implementation of OrderedDict just extends
"fixed table" maps by adding an "is ordered" flag and add/remove
operations, and reuses 95% of objdict code, just making methods tolerant
to both dict and OrderedDict.
Some things are missing so far, like CPython-compatible repr and comparison.
OrderedDict is Disabled by default; enabled on unix and stmhal ports.
10 years ago
Damien George
1004535237
tests: Make cmdline tests more stable by using regex for matching.
10 years ago
Damien George
8e9a71257d
py: Implement DELETE_GLOBAL in showbc.c.
10 years ago
Paul Sokolovsky
3425431370
objtype: More comment clarification for attribute lookup.
10 years ago
danicampora
f8ee88bbe0
cc3200: Move server methods from WLAN to the network module.
10 years ago
Damien George
92496abe0f
unix: Enable extra compiler warnings.
To address issue #699 .
10 years ago
Damien George
6b07a6132f
extmod/crypto: Add static keyword where it should be.
10 years ago
Damien George
2e2e404ff7
py: Allow to compile with extra warnings (sign-compare, unused-param).
10 years ago
Paul Sokolovsky
02894b51f4
extmod: Update uzlib to 1.2.1.
Fixes for compiler warnings in pedantic mode.
10 years ago
Paul Sokolovsky
d7194f1b8e
extmod: Update re1.5 to 0.7.
Includes static function fix and all the previous improvements and fixes
by @dpgeorge .
10 years ago
danicampora
0e96d1b3f1
cc3200: Add parameter to wlan_stop() for custom timeout values.
10 years ago
danicampora
f382f4442e
cc3200: Fixes and improvements to the SD card driver.
10 years ago
danicampora
963d7c7ee6
cc3200: Refactor I2C. Remove all references to SLAVE mode.
10 years ago
danicampora
d3912549a3
cc3200: Improve I2C timeout handling.
10 years ago