aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-09-03Merge pull request #845 from Vogtinator/masterDamien George
Add allocation macros (per platform) and ARM cache flush
2014-09-03Add cache flush in py/asmarm.c and add new MP_PLAT_ALLOC_EXEC and ↵Fabian Vogt
MP_PLAT_FREE_EXEC macros Fixes issue #840
2014-09-03Merge pull request #844 from chrisdearman/do_strDamien George
Declare do_str() function before the implementation
2014-09-02Merge branch 'stinos-msvc-extmod'Damien George
2014-09-02extmod: Fix type-punned-ptr error.Damien George
2014-09-02Merge branch 'msvc-extmod' of github.com:stinos/micropython into ↵Damien George
stinos-msvc-extmod
2014-09-02msvc: Exclude modtermios, include extmod and fix compilation errorstijn
2014-09-01Declare do_str() function before the implementationChris Dearman
This ensures that GCC does not discard the do_str implementation in some cases eg when compiling tests with debug enabled: make RUN_TESTS=1 DEBUG=1
2014-09-01stmhal, modwiznet5k: Add very minimal documentation.Damien George
2014-09-01stmhal: Add wiznet5k module, to control WIZnet ethernet adaptor.Damien George
Allows to create socket objects that support TCP and UDP in server and client mode. Interface is very close to standard Python socket class, except bind and accept do not work the same (due to hardware not supporting them in the usual way). Not compiled by default. To compile this module, use: make MICROPY_PY_WIZNET5K=1
2014-09-01drivers, wiznet5k: Make DNS service use HAL sys tick.Damien George
2014-09-01drivers, wiznet5k: Add HAL_Delay(1) to "infinite" loops.Damien George
2014-09-01drivers, wiznet5k: Properly fix ARP bug with W5200 chipset.Damien George
2014-09-01drivers, wiznet5k: Add W5200 support.Damien George
2014-09-01drivers, wiznet5k: Change SPI interface to read/write multiple bytes.Damien George
2014-09-01drivers, wiznet5k: Fix IP addr verification.Damien George
2014-09-01drivers: Initial import of WIZnet5x000 driver.Damien George
2014-09-01Added 'drivers' directory, intended to hold code for specific hardware.Damien George
2014-08-31Merge pull request #841 from dhylands/teensy-READMEDamien George
Update teensy README.md file
2014-08-30Update teensy README.md fileDave Hylands
Thanks to Artur Wroblewski for some suggested changes. I also added the TIPs section at the end while I was updating.
2014-08-30py: Small simplifications in tuple and list accessors.Damien George
2014-08-30py: Change uint to mp_uint_t in runtime.h, stackctrl.h, binary.h.Damien George
Part of code cleanup, working towards resolving issue #50.
2014-08-30py: Remove use of int type in obj.h.Damien George
Part of code cleanup, working towards resolving issue #50.
2014-08-30py: Change all uint to mp_uint_t in obj.h.Damien George
Part of code cleanup, working towards resolving issue #50.
2014-08-30py: Make tuple and list use mp_int_t/mp_uint_t.Damien George
Part of code cleanup, to resolve issue #50.
2014-08-30py: Make map, dict, set use mp_int_t/mp_uint_t exclusively.Damien George
Part of code cleanup, towards resolving issue #50.
2014-08-30py: Save about 200 bytes of ROM by using smaller type for static table.Damien George
2014-08-30Change some parts of the core API to use mp_uint_t instead of uint/int.Damien George
Addressing issue #50, still some way to go yet.
2014-08-29lib, libm: Add back dummy definition of tanf.Damien George
2014-08-29lib: Add lib and libm, moving current files from stmhal.Damien George
Top-level lib directory is for standard C libraries that we want to provide our own versions of (for efficiency and stand-alone reasons). It currently has libm in it for math functions. Also add atanf and atan2f, which addresses issue #837.
2014-08-29py: Use memmove instead of memcpy when appropriate.Damien George
Found this bug by running unix/ tests with DEBUG=1 enabled when compiling.
2014-08-29py: Fix 2 bugs in native emitter: jump_or_pop and stack settling.Damien George
Addresses issue #838.
2014-08-29py: Add compiler optimisation for conditions in parenthesis.Damien George
Optimises: if () -> if False if (x,...) -> if True if (a and b) -> if a and b
2014-08-29tests: Add option to run-tests to enable native emitter.Damien George
2014-08-28py: Move native glue code from runtime.c to new file nativeglue.c.Damien George
This way, the native glue code is only compiled if native code is enabled (which makes complete sense; thanks to Paul Sokolovsky for the idea). Should fix issue #834.
2014-08-28Merge pull request #833 from Vogtinator/arm-nativeDamien George
Basic native ARM emitter
2014-08-28py, gc: Further reduce heap fragmentation with new, faster gc alloc.Damien George
The heap allocation is now exactly as it was before the "faster gc alloc" patch, but it's still nearly as fast. It is fixed by being careful to always update the "last free block" pointer whenever the heap changes (eg free or realloc). Tested on all tests by enabling EXTENSIVE_HEAP_PROFILING in py/gc.c: old and new allocator have exactly the same behaviour, just the new one is much faster.
2014-08-28py: Reduce fragmentation of GC heap.Damien George
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.
2014-08-28Clarify copyright on asmarm filesFabian Vogt
2014-08-27Basic native ARM emitterFabian Vogt
2014-08-27Merge branch 'dhylands-int-bytes'Damien George
2014-08-27py: Improve efficiency of MP_OBJ_IS_STR_OR_BYTES.Damien George
Saves ROM (16 on stmhal, 240 on 64-bit unix) and should be quicker since there is 1 less branch.
2014-08-27Merge branch 'int-bytes' of https://github.com/dhylands/micropython into ↵Damien George
dhylands-int-bytes
2014-08-26Make int(b'123') work properly.Dave Hylands
2014-08-27pip-micropython: Revert to using PIP_MICROPY_DEST environment var.Paul Sokolovsky
-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."
2014-08-26py: Fix line number printing for file with 1 line.Damien George
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.
2014-08-26Merge pull request #824 from dhylands/sdcard-powerDamien George
Fix sdcard_power_on to not do anything if the card is already powered on...
2014-08-26stmhal, STM32F4DISC: Small changes to ST accel driver.Damien George
2014-08-26Merge branch 'siorpaes-master'Damien George
2014-08-26stmhal, staccel.py: Style cleanup.Damien George