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
Damien George
1ef26b35c1
py, extmod: Remove include of unnecessary system headers.
10 years ago
Damien George
836e46976f
py: In pfenv_vprintf, adjust type from mp_uint_t to unsigned int.
10 years ago
Damien George
f256cfef4f
tests: Add some more tests for complex numbers and ure module.
10 years ago
Damien George
fa1edff006
py: Remove unnecessary and unused sgn argument from pfenv_print_mp_int.
10 years ago
Damien George
6837d46c1d
py: Fix builtin abs so it works for bools and bignum.
10 years ago
Damien George
26a9975fba
tests: Add some more tests for bytes, bignum, string and ujson.
10 years ago
Damien George
0683c1ceef
tests: Don't try to verify amount of memory used in cmd_showbc test.
10 years ago
Damien George
703c009681
tests: Add cmdline test to test showbc code.
10 years ago
Damien George
42e0c59308
py: Add MICROPY_COMP_{DOUBLE,TRIPLE}_TUPLE_ASSIGN config options.
These allow to fine-tune the compiler to select whether it optimises
tuple assignments of the form a, b = c, d and a, b, c = d, e, f.
Sensible defaults are provided.
10 years ago
Damien George
a77ffe66b2
py: In compiler, put macro guard around potentially unused asm vars.
10 years ago
danicampora
2c103d5200
cc3200: Rewrite the PRCM RTC functionality methods.
This allows to use the On-Chip retention registers for both the
RTC and to share notification flags between the bootloader and the
application. The two flags being shared right now are the "safe boot"
request and the WDT reset cause. we still have 2 more bits free for
future use.
10 years ago
danicampora
d432bcb9ac
cc3200: Prevent multiple memory allocations if sflash init fails.
10 years ago
danicampora
2ae17def52
cc3200: Clean up linker scripts and startup file.
10 years ago
danicampora
09721e2314
cc3200: Increase heartbeat period from 3 to 5 seconds.
10 years ago
danicampora
c7fabe1f3e
cc3200: Remove unneeded code from modwlan and optimize startup time.
These changes also help reduce the hibernate wake-up time to 1s.
10 years ago
Damien George
ac4f6b804f
stmhal: Fix adc.read_timed so buffer store respects element size.
Addresses issue #1154 .
10 years ago
Paul Sokolovsky
1129de5ac0
unix: Support readline history saving to file, improves interactive usage.
10 years ago
Damien George
143c34109c
tests: Add ability to test uPy cmdline executable.
This allows to test options passed to cmdline executable, as well as the
behaviour of the REPL.
10 years ago
Damien George
af43565322
tests: Add tests for things that are not already tested.
The aim here is to improve coverage of the code.
10 years ago
Damien George
848dd0e762
py: Make some mpz functions static and remove unused ones.
10 years ago
danicampora
04749e677f
cc3200: Allow separate selection of the power mode in Pin callbacks.
10 years ago
danicampora
10f7ef0832
cc3200: Keep WLAN enabled during suspend mode.
10 years ago
danicampora
d1ba8b7659
cc3200: Correct WiPy's pinout and the pin generation script.
10 years ago
danicampora
6ae9383f63
cc3200: Remove WLAN.getmode since it's superseded by WLAN.ifconfig.
10 years ago
danicampora
37337427c3
cc3200: Trigger a new network scan when WLAN.scan() is called.
10 years ago