- 21 May, 2017 1 commit
-
-
Paul Sokolovsky authored
For consistent Pin/Signal class hierarchy. With it, Signal is a proper (while still ducktyped) subclass of a Pin, and any (direct) usage of Pin can be replace with Signal. As stmhal's class is reused both as machine.Pin and legacy pyb.Pin, high/low methods actually retained there.
-
- 19 May, 2017 1 commit
-
-
Damien George authored
Returns 0 or 1, corresponding to no or at least 1 char waiting.
-
- 16 May, 2017 1 commit
-
-
puuu authored
-
- 13 May, 2017 1 commit
-
-
Robert HH authored
This happened when the overflow counter for ticks_ms() was interrupted by an external hard interrupt (issue #3076).
-
- 12 May, 2017 5 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Make esp8266_common.ld export size reserved to all code segments, and use that in esp.flash_user_start() implementation.
-
Paul Sokolovsky authored
To accommodate both system and user frozen modules.
-
- 10 May, 2017 1 commit
-
-
Damien George authored
-
- 05 May, 2017 1 commit
-
-
Damien George authored
-
- 13 Apr, 2017 2 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
- 10 Apr, 2017 1 commit
-
-
Paul Sokolovsky authored
This implements the orginal idea is that Signal is a subclass of Pin, and thus can accept all the same argument as Pin, and additionally, "inverted" param. On the practical side, it allows to avoid many enclosed parenses for a typical declararion, e.g. for Zephyr: Signal(Pin(("GPIO_0", 1))). Of course, passing a Pin to Signal constructor is still supported and is the most generic form (e.g. Unix port will only support such form, as it doesn't have "builtin" Pins), what's introduces here is just practical readability optimization. "value" kwarg is treated as applying to a Signal (i.e. accounts for possible inversion).
-
- 03 Apr, 2017 1 commit
-
-
Damien George authored
-
- 01 Apr, 2017 1 commit
-
-
Damien George authored
It can still be overwritten by a port in mpconfigport.h but for almost all cases one can use the provided default.
-
- 31 Mar, 2017 1 commit
-
-
Damien George authored
This follows the pattern of how all other headers are now included, and makes it explicit where the header file comes from. This patch also removes -I options from Makefile's that specify the mp-readline/timeutils/ netutils directories, which are no longer needed.
-
- 29 Mar, 2017 2 commits
-
-
Damien George authored
-
Damien George authored
-
- 27 Mar, 2017 1 commit
-
-
Damien George authored
-
- 26 Mar, 2017 1 commit
-
-
Damien George authored
-
- 24 Mar, 2017 1 commit
-
-
Damien George authored
The C nearbyint function has exactly the semantics that Python's round() requires, whereas C's round() requires extra steps to handle rounding of numbers half way between integers. So using nearbyint reduces code size and potentially eliminates any source of errors in the handling of half-way numbers. Also, bare-metal implementations of nearbyint can be more efficient than round, so further code size is saved (and efficiency improved). nearbyint is provided in the C99 standard so it should be available on all supported platforms.
-
- 23 Mar, 2017 1 commit
-
-
Krzysztof Blazewicz authored
The -ansi flag is used for C dialect selection and it is equivalent to -std=c90. Because it goes right before -std=gnu99 it is ignored as for conflicting flags GCC always uses the last one.
-
- 21 Mar, 2017 2 commits
-
-
Damien George authored
-
Damien George authored
Thanks to @robert-hh.
-
- 20 Mar, 2017 4 commits
-
-
Damien George authored
All arguments to pin.irq are converted from keyword-only to positional, and can still be specified by keyword so it's a backwards compatible change. The default value for the "trigger" arg is changed from 0 (no trigger) to rising+falling edge.
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
- 14 Mar, 2017 2 commits
-
-
Damien George authored
-
Damien George authored
-
- 24 Feb, 2017 1 commit
-
-
Damien George authored
-
- 16 Feb, 2017 1 commit
-
-
Damien George authored
Allows to iterate over the following without allocating on the heap: - tuple - list - string, bytes - bytearray, array - dict (not dict.keys, dict.values, dict.items) - set, frozenset Allows to call the following without heap memory: - all, any, min, max, sum TODO: still need to allocate stack memory in bytecode for iter_buf.
-
- 13 Feb, 2017 1 commit
-
-
Damien George authored
-
- 03 Feb, 2017 1 commit
-
-
marc hoffman authored
-
- 30 Jan, 2017 2 commits
-
-
Damien George authored
Everyone should now be using the new ooFatFs library. The old one is no longer supported and will be removed.
-
Damien George authored
-
- 29 Jan, 2017 2 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
For polymorphic interfacing on C level.
-
- 27 Jan, 2017 1 commit
-
-
Damien George authored
-