aboutsummaryrefslogtreecommitdiff
path: root/extmod
AgeCommit message (Collapse)Author
2014-10-30moductypes: Make sure we can apply .sizeof() to all aggregate types.Paul Sokolovsky
Before, sizeof() could be applied to a structure field only if that field was itself a structure. Now it can be applied to PTR and ARRAY fields too. It's not possible to apply it to scalar fields though, because as soon as scalar field (int or float) is dereferenced, its value is converted into Python int/float value, and all original type info is lost. Moreover, we allow sizeof of type definitions too, and there int is used to represent (scalar) types. So, we have ambiguity what int may be - either dereferenced scalar structure field, or encoded scalar type. So, rather throw an error if user tries to apply sizeof() to int.
2014-10-22extmod: Add uheapq module.Damien George
2014-10-17modure: Update to re1.5 v0.6.1, fixed and extended character class support.Paul Sokolovsky
2014-10-15modure: Update to re1.5 v0.6, support for char sets/classes ([a-c]).Paul Sokolovsky
2014-10-13modzlibd: Remove, superceded by moduzlib.Paul Sokolovsky
2014-10-12moduzlib: Fix fn prototype and some code style; use it in stmhal port.Damien George
2014-10-13moduzlib: Import uzlib v1.1.Paul Sokolovsky
https://github.com/pfalcon/uzlib
2014-10-13moduzlib: New zlib-like module, based on uzlib.Paul Sokolovsky
2014-10-12modure: Make sure that re1.5 compiled in only of modure itself is enabled.Paul Sokolovsky
This is achieved by including re1.5 *.c files straight from modure.c .
2014-10-12modure: Upgrade re1.5 to 0.5.1Paul Sokolovsky
Changes include: regexp.h: Add double-include protection.
2014-10-11modure: Import needed files from re1.5 v0.5.Paul Sokolovsky
https://github.com/pfalcon/re1.5
2014-10-11modure: Initial module, using re1.5 (which is based on re1 codebase).Paul Sokolovsky
https://github.com/pfalcon/re1.5
2014-10-06py: Make mp_binary_set_val work on big endian machine.Damien George
2014-09-27Fix timer overflow code.Dave Hylands
Teensy doesn't need to worry about overflows since all of its timers are only 16-bit. For PWM, the pulse width needs to be able to vary from 0..period+1 (pulse-width == period+1 corresponds to 100% PWM) I couldn't test the 0xffffffff cases since we can't currently get a period that big in python. With a prescaler of 0, that corresponds to a freq of 0.039 (i.e. cycle every 25.56 seconds), and we can't set that using freq or period. I also tested both stmhal and teensy with floats disabled, which required a few other code changes to compile.
2014-09-21extmod, ujson: Add test and comment for loads.Damien George
2014-09-21extmod, ujson: Add \uxxxx parsing in json strings.Damien George
2014-09-21extmod, ujson: Slight reduction in code size.Damien George
2014-09-21extmod: Add loads to ujson module.Damien George
2014-09-17py: Add native json printing using existing print framework.Damien George
Also add start of ujson module with dumps implemented. Enabled in unix and stmhal ports. Test passes on both.
2014-09-07Remove skeletal modselect from extmod and just put it in stmhal.Damien George
2014-09-07stmhal: Implement generic select.select and select.poll.Damien George
2014-09-07py: Add ioctl method to stream protocol; add initial modselect.Damien George
2014-09-02extmod: Fix type-punned-ptr error.Damien George
2014-09-02msvc: Exclude modtermios, include extmod and fix compilation errorstijn
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-22extmod, zlibd: Make some simple ROM and RAM savings.Damien George
ROM down by 320 bytes on stmhal. RAM down by 5.5k for a decompression object.
2014-08-12extmod: Finish rename of zlib to zlibd; enable zlibd on stmhal.Damien George
2014-08-13modzlibd: Add tinfl.c from miniz SVN repo, r63.Paul Sokolovsky
The only change is line-ending convesion to LF.
2014-08-13modzlibd: Decompress part of "zlib" module, based on miniz tinfl.c .Paul Sokolovsky
2014-08-12stmhal: Enable moductypes by default.Damien George
Also fixes compiler error in moductypes when compiled without debugging. Addresses issue #778.
2014-08-10moductypes: Remove debug inclusion of stdio.h .Paul Sokolovsky
2014-07-31py: Make MP_OBJ_NEW_SMALL_INT cast arg to mp_int_t itself.Damien George
Addresses issue #724.
2014-07-11moductypes: Add symbolic constants to specify bitfield position/length.Paul Sokolovsky
2014-07-09moductypes: Foreign data interface module, roughly based on ctype ideas.Paul Sokolovsky
But much smaller and memory-efficient. Uses Python builtin data structures (dict, tuple, int) to describe structure layout.