summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-07-21minimal/Makefile: Enable gc-sections to remove unused code.Damien George
2017-07-21eps8266/general: Fix typo in recent example.Paul Sokolovsky
2017-07-21eps8266/general: Add known issue of WiFi RX buffers overflow.Peter Hinch
2017-07-21docs/pyboard/tutorial/amp_skin: Add example for playing large WAV files.Piotr MaliƄski
2017-07-21tests/basics/builtin_exec: Test various globals/locals args to exec().Tom Collins
2017-07-21py/builtinevex: Add typechecking of globals/locals args to eval/exec.Tom Collins
2017-07-21tests: Rename exec1.py to builtin_exec.py.Damien George
2017-07-20extmod/modussl_axtls: Allow to close ssl stream multiple times.Paul Sokolovsky
Make sure that 2nd close has no effect and operations on closed streams are handled properly.
2017-07-19esp8266/mpconfigport.h: Make socket a weak linkAlex Robbins
This way it can be overridden by a socket module in Python, as in other ports.
2017-07-19all: Remove trailing spaces, per coding conventions.Damien George
2017-07-19stmhal: Clean up USB CDC/MSC files and remove commented-out code.Damien George
2017-07-18py/modmicropython: Cast stack_limit value so it prints correctly.Damien George
Without this cast the print will give a wrong result on nan-boxing builds.
2017-07-18py/asmx64: Support moving a 64-bit immediate to one of top 8 registers.Damien George
If constants (eg mp_const_none_obj) are placed in very high memory locations that require 64-bits for the pointer then the assembler must be able to emit instructions to move such pointers to one of the top 8 registers (ie r8-r15).
2017-07-18py/vm: Make n_state variable local to just set-up part of VM.Damien George
It's not used anywhere else in the VM loop, and clashes with (is shadowed by) the n_state variable that's redeclared towards the end of the mp_execute_bytecode function. Code size is unchanged.
2017-07-18all: Unify header guard usage.Alexander Steffen
The code conventions suggest using header guards, but do not define how those should look like and instead point to existing files. However, not all existing files follow the same scheme, sometimes omitting header guards altogether, sometimes using non-standard names, making it easy to accidentally pick a "wrong" example. This commit ensures that all header files of the MicroPython project (that were not simply copied from somewhere else) follow the same pattern, that was already present in the majority of files, especially in the py folder. The rules are as follows. Naming convention: * start with the words MICROPY_INCLUDED * contain the full path to the file * replace special characters with _ In addition, there are no empty lines before #ifndef, between #ifndef and one empty line before #endif. #endif is followed by a comment containing the name of the guard macro. py/grammar.h cannot use header guards by design, since it has to be included multiple times in a single C file. Several other files also do not need header guards as they are only used internally and guaranteed to be included only once: * MICROPY_MPHALPORT_H * mpconfigboard.h * mpconfigport.h * mpthreadport.h * pin_defs_*.h * qstrdefs*.h
2017-07-17zephyr: Remove long-obsolete machine_ptr_t typedef's.Damien George
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