- 28 Aug, 2014 1 commit
-
-
Damien George authored
Recent speed up of GC allocation made the GC have a fragmented heap. This patch restores "original fragmentation behaviour" whilst still retaining relatively fast allocation. This patch works because there is always going to be a single block allocated now and then, which advances the gc_last_free_atb_index pointer often enough so that the whole heap doesn't need scanning. Should address issue #836.
-
- 27 Aug, 2014 4 commits
-
-
Damien George authored
-
Damien George authored
Saves ROM (16 on stmhal, 240 on 64-bit unix) and should be quicker since there is 1 less branch.
-
-
Dave Hylands authored
-
- 26 Aug, 2014 11 commits
-
-
Paul Sokolovsky authored
-t/--target is a pip option. Trying to use pip options for different meanings in pip-micropython may lead to big confusion. That's why the original passed any extra parameters using environment variables. "All options belong to pip."
-
Damien George authored
With a file with 1 line (and an error on that line), used to show the line as number 0. Now shows it correctly as line number 1. But, when line numbers are disabled, it now prints line number 1 for any line that has an error (instead of 0 as previously). This might end up being confusing, but requires extra RAM and/or hack logic to make it print something special in the case of no line numbers.
-
Damien George authored
Fix sdcard_power_on to not do anything if the card is already powered on...
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
David Siorpaes authored
-
Damien George authored
Also add -t/--target option to pip-micropython to allowing installing to the pyboard. Thanks to turbinenreiter/Sebastian Plamauer for the patch.
-
Damien George authored
Thanks to Dave Hylands for this patch.
-
Damien George authored
Addresses issue #825.
-
Damien George authored
Addresses issue #827.
-
- 25 Aug, 2014 9 commits
-
-
Damien George authored
-
Dave Hylands authored
-
Damien George authored
SysTick IRQ now increases millisecond counter directly (ie without calling HAL_IncTick). Provide our own version of HAL_Delay that does a wfi while waiting. This more than halves power consumption when running a loop containing a pyb.delay call. It used to be like this, but new version of HAL library regressed this feature.
-
Damien George authored
-
Damien George authored
Also some whitespace cleanup.
-
Dave Hylands authored
I also removed trailing spaces from modpyb.c which affected a couple of lines technically not part of this patch. Tested using: https://github.com/dhylands/upy-examples/blob/master/micros_test.py which eventually fails due to wraparound issues (I could fix the test to compensate but didn't bother)
-
Dave Hylands authored
Factored irq functions into a separate file.
-
Damien George authored
These functions are generally 1 machine instruction, and are used in critical code, so makes sense to have them inline. Also leave these functions uninverted (ie 0 means enable, 1 means disable) and provide macro constants if you really need to distinguish the states. This makes for smaller code as well (combined with inlining). Applied to teensy port as well.
-
Dave Hylands authored
Factored irq functions into a separate file.
-
- 24 Aug, 2014 9 commits
-
-
Damien George authored
Addresses issue #811.
-
Damien George authored
Script is due to Dave Hylands.
-
Damien George authored
-
Dave Hylands authored
Added some functions to Pin class to query mode, pull, and af
-
Damien George authored
-
Damien George authored
Also added test for modtime.
-
Dave Hylands authored
Now you can use time.localtime on the timestamps presented by os.stat
-
Damien George authored
Because (for Thumb) a function pointer has the LSB set, pointers to dynamic functions in RAM (eg native, viper or asm functions) were not being traced by the GC. This patch is a comprehensive fix for this. Addresses issue #820.
-
Damien George authored
-
- 23 Aug, 2014 1 commit
-
-
Paul Sokolovsky authored
Also provides setraw() function from "tty" module (which in CPython is implemented in Python). The idea here is that 95% of "termios" module usage is to set raw mode to allow access to normal serial devices. Then, instead of exporting gazillion termios symbols, it's better to implement it in C, and export minimal number of symbols (mostly baud rates and drain values).
-
- 22 Aug, 2014 4 commits
-
-
Damien George authored
ROM down by 320 bytes on stmhal. RAM down by 5.5k for a decompression object.
-
Damien George authored
This allows to make strings longer than 64k. It doesn't use any more RAM with current GC because a str object still fits in a GC block.
-
Damien George authored
-
Damien George authored
This simple patch gives a very significant speed up for memory allocation with the GC. Eg, on PYBv1.0: tests/basics/dict_del.py: 3.55 seconds -> 1.19 seconds tests/misc/rge_sm.py: 15.3 seconds -> 2.48 seconds
-
- 18 Aug, 2014 1 commit
-
-
Paul Sokolovsky authored
unix: Added install/uninstall
-