aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-07-15docs,teensy: Use the name MicroPython consistently in documentationAlexander Steffen
2017-07-14stmhal/servo: Don't compile servo code when it's not enabled.Damien George
2017-07-14stmhal/pin_named_pins: Remove unreachable print function.Damien George
There are never any instances of these objects so there is no need to have a print function.
2017-07-14stmhal/servo: Make pyb.Servo(n) map to Pin('Xn') on all MCUs.Damien George
Prior to this patch Servo numbers 1, 2, 3, 4 mapped to pins X3, X4, X1, X2 on PYBLITE which doesn't match the standard PYB mapping. This patch fixes the mapping.
2017-07-12stmhal: Reduce size of ESPRUINO_PICO build so it fits in flash.Damien George
The default frozen modules are no longer included (but users can still specify their own via FROZEN_MPY_DIR), complex numbers are disabled and so are the native, viper and asm_thumb emitters. Users needing these features can tune the build to disable other things.
2017-07-12py/gc: Refactor assertions in gc_free function.Damien George
gc_free() expects either NULL or a valid pointer into the heap, so the checks for a valid pointer can be turned into assertions.
2017-07-12unix/Makefile: Disable assertions in the standard unix executable.Damien George
Reasons to disable: - the code is relatively robust so doesn't need full checking in the main executable, and the coverage build is used for full testing with assertions still enabled; - reduces code size noticeably, by 27k for x86-64 and 20k for x86; - allows to more easily track changes in code size, since assertions can skew things.
2017-07-12unix/modsocket: Remove unnecessary asserts.Damien George
These checks are already made, and errors reported, by the uPy runtime.
2017-07-11cc3200/modusocket: Fix connect() when in non-blocking or timeout mode.Damien George
Non-blocking connect on the CC3100 has non-POSIX behaviour and needs to be modified to match standard semantics.
2017-07-09tests/cpydiff: Add case for str.ljust/rjust.Paul Sokolovsky
2017-07-09tests/cpydiff/: Improve wording, add more workarounds.Paul Sokolovsky
2017-07-09tools/gen-cpydiff: Use case description as 3rd-level heading.Paul Sokolovsky
This is required to easily giving links to a particular difference case. Also, add RST anchors to allow cases to cross-reference each other.
2017-07-09tests/cpydiff/core_class_supermultiple: Same cause as core_class_mro.Paul Sokolovsky
2017-07-09tests/cpydiff/core_arguments: Move under Functions subsection.Paul Sokolovsky
This is the last "orphan" case.
2017-07-09tests/cpydiff/core_class_mro: Move under Classes, add workaround.Paul Sokolovsky
2017-07-09zephyr/Makefile: Revert prj.conf construction rule to the previous state.Paul Sokolovsky
CONF_FILE can be overriden, e.g. for minimal build, and we don't construct such overriden conf file like we do for prj_merged.conf.
2017-07-09py/compile: Fix enum variable declaration.Damien George
2017-07-08zephyr/Makefile: Rework dependencies and "clean" target.Paul Sokolovsky
Got tired of running rm -rf manually. Make should clean, and should clean fast. Also, fix always-running config-related commands (by having per-board merged configs).
2017-07-07py/objgenerator: Allow to hash generators and generator instances.Damien George
Adds nothing to the code size, since it uses existing empty slots in the type structures.
2017-07-07py,extmod: Some casts and minor refactors to quiet compiler warnings.Tom Collins
2017-07-05tests/cpydiff/modules_deque: Elaborate workaround.Paul Sokolovsky
2017-07-05tests/basics: Add tests for arithmetic operators precedence.Krzysztof Blazewicz
2017-07-05py/compile: Use switch-case to match token and operator.Krzysztof Blazewicz
Reduces code size.
2017-07-05py/compile: Combine arith and bit-shift ops into 1 compile routine.Krzysztof Blazewicz
This refactoring saves code space.
2017-07-05extmod/modujson: Properly initialise temporary StringIO object.Damien George
2017-07-04py/repl: Change mp_uint_t to size_t in repl helpers.Damien George
2017-07-04py: Change mp_uint_t to size_t in builtins code.Damien George
2017-07-04py/objdict: Factorise dict accessor helper to reduce code size.Damien George
Code size change in bytes for this patch is: bare-arm: -72 minimal x86: -48 unix x64: -32 unix nanbox: -120 stmhal: -68 cc3200: -64 esp8266: -56
2017-07-04stmhal/boards/NUCLEO_F429ZI: Change USB config from HS to FS peripheral.Damien George
This dev board only has a single USB connector, connected to the FS peripheral.
2017-07-04py/makeversionhdr.py: Update to parse new release line in docs/conf.py.Damien George
The line in docs/conf.py with the release/version number was recently changed and this patch makes the makeversionhdr.py script work again.
2017-07-04esp8266/mpconfigport_512k: Use terse error messages to get 512k to fit.Damien George
2017-07-04docs/uzlib: Update description of decompress() and mention DecompIO.Paul Sokolovsky
2017-07-04py/modmath: Check for zero division in log with 2 args.Damien George
2017-07-04py/vm: Make "if" control flow more obvious in YIELD_FROM opcode.Damien George
2017-07-04py/objstr: Remove unnecessary "sign" variable in formatting code.Damien George
2017-07-04py/runtime: Mark m_malloc_fail() as NORETURN.Damien George
2017-07-04py/binary: Add missing "break" statements.Damien George
2017-07-03stmhal: Clean up some header includes.Damien George
2017-07-03stmhal/boards: Add configuration files for NUCLEO_F429ZI.Alberto Petrucci
2017-07-03docs/pyboard: Move info about using Windows from topindex to general.Damien George
2017-07-03extmod/modubinascii: Add check for empty buffer passed to hexlify.Damien George
Previous to this patch hexlify(b'', b':') would lead to a bad crash due to the computed length of the result being -1=0xffffffff.
2017-07-02docs/esp8266/general.rst: Fix name of NTP module.Patrick O'Leary
The simple NTP client module is named "ntptime.py".
2017-07-03docs/uerrno: Document "uerrno" module.Paul Sokolovsky
2017-07-02docs/pyboard: Move hardware info into General Info chapter.Paul Sokolovsky
This makes top-level ToC of the pyboard docs consistent with other ports (consisting of 3 chapters: QuickRef, General Info, and Tutorial). Also, some other minor tweaks applied, like local ToC for General Info and headings mentioning pyboard.
2017-07-02docs/*_index: Drop "Indices and tables" pseudo-section.Paul Sokolovsky
This pseudo-section causes artifacts with latexpdf generation (almost empty page with list containing literal "genindex", "modeindex", "search" items). For HTML docs, these sections can be accessed from "home" page.
2017-07-02py/objstr: Move uPy function wrappers to just after the C function.Damien George
This matches the coding/layout style of all the other objects.
2017-07-02docs/conf.py: Set "version" and "release" to the same value.Paul Sokolovsky
We don't use alpha/beta/RC, so for us version and release should be the same, or it leads to confusion (for example, current, 1.9.1 docs are marked as 1.9 at places).
2017-07-02docs/replace.inc: Add |see_cpython|, to xref individual symbols from CPython.Paul Sokolovsky
The idea is to use it for each symbol in builtins.rst.
2017-07-02docs/library: Add CPython docs xref to each pertinent module.Paul Sokolovsky
Cross-reference text/link is implemented as RST substitution, so easy to consistently.
2017-07-02docs/conf.py: Add file for global replacements definition.Paul Sokolovsky
The idea is to allow to define a kind of "macros" for repeatitive text, so all occurrances can be updated in one place. Unfortunately, RST doesn't support replacements with arguments, which limits usefulness of them and should be taken into account.