summaryrefslogtreecommitdiffstatshomepage
path: root/extmod
Commit message (Collapse)AuthorAge
* py: Make functions static where appropriate.Damien George2014-12-10
|
* py: Rename mp_obj_int_get to mp_obj_int_get_truncated; fix struct.pack.Damien George2014-12-05
| | | | | | | | | | | mp_obj_int_get_truncated is used as a "fast path" int accessor that doesn't check for overflow and returns the int truncated to the machine word size, ie mp_int_t. Use mp_obj_int_get_truncated to fix struct.pack when packing maximum word sized values. Addresses issues #779 and #998.
* Use MP_DEFINE_CONST_DICT macro to define module dicts.Damien George2014-11-29
| | | | | This is just a clean-up of the code. Generated code is exactly the same.
* modubinascii: Add, with hexlify() implementation.Paul Sokolovsky2014-11-29
|
* moduhashlib: Integrate sha256 implementation.Paul Sokolovsky2014-11-22
|
* moduhashlib: Add sha256 implementation from "crypto-algorithms" project.Paul Sokolovsky2014-11-22
| | | | https://github.com/B-Con/crypto-algorithms revision 100f4ff
* moduhashlib: Initial module skeleton.Paul Sokolovsky2014-11-22
|
* windows: Update config with latest featuresstijn2014-11-21
| | | | | - update mpconfigport.h to reflect latest unix version - fix compilation error in modure due to msvc not allowing dynamic arrays
* moductypes: Make .sizeof() work with bytearrays.Paul Sokolovsky2014-10-30
|
* moductypes: When dereferencing a field which is array of uint8, use bytearray.Paul Sokolovsky2014-10-30
| | | | | Because bytearrays are much friendlier to work with, e.g. they can be printed easily.
* moductypes: Make sure we can apply .sizeof() to all aggregate types.Paul Sokolovsky2014-10-30
| | | | | | | | | | | | 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.
* extmod: Add uheapq module.Damien George2014-10-22
|
* modure: Update to re1.5 v0.6.1, fixed and extended character class support.Paul Sokolovsky2014-10-17
|
* modure: Update to re1.5 v0.6, support for char sets/classes ([a-c]).Paul Sokolovsky2014-10-15
|
* modzlibd: Remove, superceded by moduzlib.Paul Sokolovsky2014-10-13
|
* moduzlib: Fix fn prototype and some code style; use it in stmhal port.Damien George2014-10-12
|
* moduzlib: Import uzlib v1.1.Paul Sokolovsky2014-10-13
| | | | https://github.com/pfalcon/uzlib
* moduzlib: New zlib-like module, based on uzlib.Paul Sokolovsky2014-10-13
|
* modure: Make sure that re1.5 compiled in only of modure itself is enabled.Paul Sokolovsky2014-10-12
| | | | This is achieved by including re1.5 *.c files straight from modure.c .
* modure: Upgrade re1.5 to 0.5.1Paul Sokolovsky2014-10-12
| | | | | | Changes include: regexp.h: Add double-include protection.
* modure: Import needed files from re1.5 v0.5.Paul Sokolovsky2014-10-11
| | | | https://github.com/pfalcon/re1.5
* modure: Initial module, using re1.5 (which is based on re1 codebase).Paul Sokolovsky2014-10-11
| | | | https://github.com/pfalcon/re1.5
* py: Make mp_binary_set_val work on big endian machine.Damien George2014-10-06
|
* Fix timer overflow code.Dave Hylands2014-09-27
| | | | | | | | | | | | | | | | 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.
* extmod, ujson: Add test and comment for loads.Damien George2014-09-21
|
* extmod, ujson: Add \uxxxx parsing in json strings.Damien George2014-09-21
|
* extmod, ujson: Slight reduction in code size.Damien George2014-09-21
|
* extmod: Add loads to ujson module.Damien George2014-09-21
|
* py: Add native json printing using existing print framework.Damien George2014-09-17
| | | | | Also add start of ujson module with dumps implemented. Enabled in unix and stmhal ports. Test passes on both.
* Remove skeletal modselect from extmod and just put it in stmhal.Damien George2014-09-07
|
* stmhal: Implement generic select.select and select.poll.Damien George2014-09-07
|
* py: Add ioctl method to stream protocol; add initial modselect.Damien George2014-09-07
|
* extmod: Fix type-punned-ptr error.Damien George2014-09-02
|
* msvc: Exclude modtermios, include extmod and fix compilation errorstijn2014-09-02
|
* Change some parts of the core API to use mp_uint_t instead of uint/int.Damien George2014-08-30
| | | | Addressing issue #50, still some way to go yet.
* extmod, zlibd: Make some simple ROM and RAM savings.Damien George2014-08-22
| | | | | ROM down by 320 bytes on stmhal. RAM down by 5.5k for a decompression object.
* extmod: Finish rename of zlib to zlibd; enable zlibd on stmhal.Damien George2014-08-12
|
* modzlibd: Add tinfl.c from miniz SVN repo, r63.Paul Sokolovsky2014-08-13
| | | | The only change is line-ending convesion to LF.
* modzlibd: Decompress part of "zlib" module, based on miniz tinfl.c .Paul Sokolovsky2014-08-13
|
* stmhal: Enable moductypes by default.Damien George2014-08-12
| | | | | | Also fixes compiler error in moductypes when compiled without debugging. Addresses issue #778.
* moductypes: Remove debug inclusion of stdio.h .Paul Sokolovsky2014-08-10
|
* py: Make MP_OBJ_NEW_SMALL_INT cast arg to mp_int_t itself.Damien George2014-07-31
| | | | Addresses issue #724.
* moductypes: Add symbolic constants to specify bitfield position/length.Paul Sokolovsky2014-07-11
|
* moductypes: Foreign data interface module, roughly based on ctype ideas.Paul Sokolovsky2014-07-09
But much smaller and memory-efficient. Uses Python builtin data structures (dict, tuple, int) to describe structure layout.