summaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAge
* py: Add include guards to mpconfig,misc,qstr,obj,runtime,parsehelper.Damien George2014-12-29
|
* py: In VM, for selective ip saving, store 1 byte past last opcode.Damien George2014-12-29
| | | | | | This is for efficiency, so we don't need to subtract 1 from the ip before storing it to code_state->ip. It saves a lot of ROM bytes on unix and stmhal.
* py: Add note about -fno-crossjumping when compiling vm.c.Paul Sokolovsky2014-12-29
|
* docs: Bump version to 1.3.8.Damien George2014-12-29
| | | | Should have done it before tagging...
* py: Add MP_LIKELY(), MP_UNLIKELY() macros to help branch prediction.v1.3.8Paul Sokolovsky2014-12-29
|
* showbc: Print operation mnemonic in BINARY_OP.Paul Sokolovsky2014-12-28
|
* showbc: Make code object start pointer semi-public.Paul Sokolovsky2014-12-28
| | | | | This allows to pring either absolute addresses or relative offsets in jumps and code references.
* vm: Record exception ip only for instructions where exceptions may happen.Paul Sokolovsky2014-12-28
| | | | | | | Mirroring ip to a volatile memory variable for each opcode is an expensive operation. For quite a lot of often executed opcodes like stack manipulation or jumps, exceptions cannot actually happen. So, record ip only for opcode where that's possible.
* drivers: Add SD card driver, controlled via SPI bus.Damien George2014-12-27
|
* stmhal: Add ability to mount custom block device.Damien George2014-12-27
|
* lib/fatfs: Allow a smaller minimum sector count for fatfs to be created.Damien George2014-12-27
|
* stmhal: Upgrade to latest fatfs driver.Damien George2014-12-27
|
* lib/fatfs: Support our volume names; make some funcs static.Damien George2014-12-27
|
* lib/fatfs: Upgrade to new FatFs driver, put in lib/ for common use.Damien George2014-12-27
| | | | Patches to fatfs for our use will follow.
* py: Allow to properly disable builtin slice operation.Damien George2014-12-27
| | | | | | | This patch makes the MICROPY_PY_BUILTINS_SLICE compile-time option fully disable the builtin slice operation (when set to 0). This includes removing the slice sytanx from the grammar. Now, enabling slice costs 4228 bytes on unix x64, and 1816 bytes on stmhal.
* py: Allow to properly disable builtin "set" object.Damien George2014-12-27
| | | | | | | | This patch makes MICROPY_PY_BUILTINS_SET compile-time option fully disable the builtin set object (when set to 0). This includes removing set constructor/comprehension from the grammar, the compiler and the emitters. Now, enabling set costs 8168 bytes on unix x64, and 3576 bytes on stmhal.
* Makefiles: Support py/*.h includes per #1022.Paul Sokolovsky2014-12-27
|
* py: Move to guarded includes for compile.h and related headers.Paul Sokolovsky2014-12-27
|
* showbc: Refactor to allow inline instruction printing.Paul Sokolovsky2014-12-27
|
* py: Make bytes objs work with more str methods; add tests.Damien George2014-12-24
|
* tests: Add run-tests-exp.py, simple MicroPython-based test runner.Paul Sokolovsky2014-12-24
| | | | | | | This script is rewrite of run-tests-exp.sh, and tries to achieve self-hosted testsuite running in environments where neither CPython nor unix shell is available. As run-tests-exp.sh, it requires complete set of .exp files pre-generated with ./run-test --write-exp.
* stmhal: Enable ubinascii module, weak link to binascii.Damien George2014-12-24
|
* docs: Add mention about using USB charger when resetting the filesystem.Dave Hylands2014-12-23
| | | | | | It seems the Mac will happily wipe out at least some of the data on a freshly reset filesytem, if the filesystem was reset while plugged into the Mac.
* unix, windows: Add _os.system() call.Paul Sokolovsky2014-12-23
| | | | | | system() is the basic function to support automation of tasks, so have it available builtin, for example, for bootstrapping rest of micropython environment.
* docs: Make admonition for CPy-difference use "attention" class.Damien George2014-12-22
| | | | This renders it in yellow/orange box on RTD server.
* py: Reduce size of VM exception stack element by 1 machine word.Damien George2014-12-22
| | | | | | | | | | | This optimisation reduces the VM exception stack element (mp_exc_stack_t) by 1 word, by using bit 1 of a pointer to store whether the opcode was a FINALLY or WITH opcode. This optimisation was pending, waiting for maturity of the exception handling code, which has now proven itself. Saves 1 machine word RAM for each exception (4->3 words per exception). Increases stmhal code by 4 bytes, and decreases unix x64 code by 32 bytes.
* py: Use str_to_int function in more places to reduce code size.Damien George2014-12-21
|
* py: Remove last uses of printf from compile; use proper SyntaxError.Damien George2014-12-21
|
* py: Move global/nonlocal decl code to compiler for proper SyntaxError.Damien George2014-12-21
| | | | | | This patch gives proper SyntaxError exceptions for bad global/nonlocal declarations. It also reduces code size: 304 bytes on unix x64, 132 bytes on stmhal.
* py: Fix iteration over map in 2 places.Damien George2014-12-21
|
* docs: Add RTD local_settings file, to add custom templates.Damien George2014-12-21
|
* docs: Add custom CSS file, with code for admonition.Damien George2014-12-21
|
* stmhal: gccollect.h is superfluous in many places.Paul Sokolovsky2014-12-21
|
* stmhal: Use gc_dump_info() function instead of adhoc code.Paul Sokolovsky2014-12-21
|
* stmhal: Include MICROPY_HAL_H only if defined.Paul Sokolovsky2014-12-20
| | | | Helps other ports.
* py: Remove unnecessary RULE_none and PN_none from parser.Damien George2014-12-20
|
* py: Add blank and ident flags to grammar rules to simplify parser.Damien George2014-12-20
| | | | This saves around 100 bytes code space on stmhal, more on unix.
* tools, pyboard.py: Write data to pyboard in chunks of 256 bytes.Damien George2014-12-20
| | | | This speeds up writes significantly.
* py: Save a few code bytes in parser; make vars local where possible.Damien George2014-12-20
|
* run-tests: Allow to run testuite against Windows build on Linux (using Wine).Paul Sokolovsky2014-12-20
| | | | | | | | | Just adjust line-endings of micropython.exe output, the rest should be handled by Wine (automagically on properly configured distro). To run: MICROPY_MICROPYTHON=../windows/micropython.exe ./run-tests
* windows: Correctly interpret skipped tests, enable uhashlib and ubinasciistijn2014-12-20
|
* docs: Add CPy diff note for print_exception; embellish sys.platform.Damien George2014-12-19
|
* py: Add execfile function (from Python 2); enable in stmhal port.Damien George2014-12-19
| | | | Adds just 60 bytes to stmhal binary. Addresses issue #362.
* unix/windows: Make sure that process exit code is portable 8-bit value.Paul Sokolovsky2014-12-19
| | | | This fixes FORCED_EXIT internal flag leaking into Windows exit code.
* lib/libm: Add acosh, asinh, atanh, tan; get working with stmhal.Damien George2014-12-18
| | | | | | | | | acoshf, asinhf, atanhf were added from musl. mathsincos.c was split up into its original, separate files (from newlibe-nano-2). tan was added. All of the important missing float functions are now implemented, and pyboard now passes tests/float/math_fun.py (finally!).
* tests: Get misc/print_exception and pyb/spi working on pyboard.Damien George2014-12-18
|
* tests: sha256: skip test if uhashlib module is not available.Paul Sokolovsky2014-12-18
|
* Fix leds.rstGregory2014-12-18
| | | N (mod 4) is 0..3
* unix: Rename "time" module to "utime" to allow extensibility.Paul Sokolovsky2014-12-17
| | | | Name choosen per latest conventions and for compatibiity with stmhal port.
* docs: Define more clearly the behaviour of LED methods.Damien George2014-12-16
| | | | Addresses issue #1006.