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
stijn
f43e03ee4f
extmod/ure: Fix msvc warning resulting from memset on const char ** pointer
10 years ago
danicampora
005a7f4190
cc3200: Fix extint_enable behaviour when the callback is updated.
10 years ago
danicampora
181fe5016c
cc3200: Add RTC callback with wake-up from sleep capability.
10 years ago
danicampora
6de1b39368
cc3200: Make peripheral objects static.
This prevents duplication of objects in the sleep list. Also helps
with reducing the code size by ~100 bytes.
10 years ago
danicampora
fcf6db0695
cc3200: Register pybsd with the sleep module and use pin_config().
10 years ago
danicampora
98b8568362
cc3200: Assign GPIO10 and GPIO11 to the GPIO peripheral on start-up.
10 years ago
danicampora
ea43fa104e
cc3200: Remove unneeded functions and add pybsleep_remove() calls.
10 years ago
Paul Sokolovsky
1954d8021f
objtype: Clarify comment why we call mp_load_method_maybe() for native sub-obj.
10 years ago
Damien George
49fe6dc89a
stmhal: Add config option to use LSE/LSI for RTC.
Most boards (except the pyboard) don't have a 32kHz crystal so they
should use the LSI for the RTC.
10 years ago
Paul Sokolovsky
3cb766344d
objtype: Refactor dealing with native sub-objects for clarity.
10 years ago
Paul Sokolovsky
f0dc0d50e3
objtype: mp_obj_class_lookup: Remove implausible condition.
We already have branch for lookup->is_type == true, so here it's guaranteed
to be false.
10 years ago
Paul Sokolovsky
2b67a40fdb
objtype: Clarify comment for mp_obj_class_lookup().
10 years ago
Paul Sokolovsky
66c11ec581
objtype: Clarify code by consistently using common subexpression.
10 years ago
Damien George
d4bd37a561
py: Fix printing of error message when parsing malformed integer.
10 years ago
danicampora
78d7c45b69
cc3200: Disable all wake sources on start-up.
10 years ago
danicampora
ed20ac56f7
cc3200: Fix bug in RTC msec register access functions.
10 years ago
danicampora
5dd8ae6b9c
cc3200: Fix spaces aligment in LAUNCHXL/mpconfigboard.h
10 years ago
danicampora
0962358026
cc3200: Align SD card driver with new SDK release(1.1.0).
10 years ago
danicampora
1080802e8f
cc3200: Update socket event handler to align with new SDK(1.1.0) API.
10 years ago
danicampora
dc545d6512
cc3200: Do not reset the DTHE module before every SHA operation.
According to the new SDK (1.1.0) this is not needed, and it's best
not to do it, because this module is a shared resource.
10 years ago
danicampora
b2cb75efb7
cc3200: Remove double administration of callback objects.
10 years ago
danicampora
2b8a718d73
drivers: Update CC3100 driver library to SDK release version 1.1.0.
10 years ago
danicampora
c292632b59
cc3200: Update simplelink SPI driver to SDK release version 1.1.0.
10 years ago
danicampora
0d0646d915
cc3200: Update HAL to SDK release version 1.1.0.
10 years ago
Damien George
dac79324b5
stmhal: Add rtc.wakeup method, to set wakeup timer.
This allows to wake from low-power modes at a regular interval.
This method is preliminary, pending testing and API overhaul.
10 years ago