| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2014-08-15 | py: Fix typing of viper locals; allow default types in annotation. | Damien George | |
| 2014-08-15 | py: Allow viper to have type annotations. | Damien George | |
| Viper functions can now be annotated with the type of their arguments and return value. Eg: @micropython.viper def f(x:int) -> int: return x + 1 | |||
| 2014-08-15 | py: Clean up and simplify functions in scope; add STATIC in compiler. | Damien George | |
| Some small code clean-ups that result in about 80 bytes ROM saving for stmhal. | |||
| 2014-08-14 | stmhal: Resolve question in comment about timer clock. | Damien George | |
| 2014-08-13 | Merge pull request #798 from stinos/msvc-alignof | Damien George | |
| msvc: Use built-in alignof | |||
| 2014-08-13 | py: Fix mult by negative number of tuple, list, str, bytes. | Damien George | |
| Multiplication of a tuple, list, str or bytes now yields an empty sequence (instead of crashing). Addresses issue #799 Also added ability to mult bytes on LHS by integer. | |||
| 2014-08-13 | msvc: Use built-in alignof | stijn | |
| This also fixes a 'unnamed type definition in parentheses' warning on the alignof implementation define in binary.c | |||
| 2014-08-12 | Merge branch 'pfalcon-modzlibd' | Damien George | |
| 2014-08-12 | extmod: Finish rename of zlib to zlibd; enable zlibd on stmhal. | Damien George | |
| 2014-08-13 | tests: Add test for zlibd module. | Paul Sokolovsky | |
| 2014-08-13 | modzlibd: Add tinfl.c from miniz SVN repo, r63. | Paul Sokolovsky | |
| The only change is line-ending convesion to LF. | |||
| 2014-08-13 | modzlibd: Decompress part of "zlib" module, based on miniz tinfl.c . | Paul Sokolovsky | |
| 2014-08-12 | py: #if guard qstrs that are optional. | Damien George | |
| Also disable gc module on bare-arm port. | |||
| 2014-08-12 | stmhal: Enable moductypes by default. | Damien George | |
| Also fixes compiler error in moductypes when compiled without debugging. Addresses issue #778. | |||
| 2014-08-12 | py: Add .real and .imag attributes to complex numbers. | Damien George | |
| 2014-08-12 | py: Improve range: add len, subscr, proper print. | Damien George | |
| Can now index ranges with integers and slices, and reverse ranges (although reversing is not very efficient). Not sure how useful this stuff is, but gets us closer to having all of Python's builtins. | |||
| 2014-08-12 | py: Implement builtin reversed() function. | Damien George | |
| reversed function now implemented, and works for tuple, list, str, bytes and user objects with __len__ and __getitem__. Renamed mp_builtin_len to mp_obj_len to make it publically available (eg for reversed). | |||
| 2014-08-12 | py: Make a function static; replace NULL with MP_OBJ_NULL. | Damien George | |
| 2014-08-11 | py, objstr: Optimise bytes subscr when unicode is enabled. | Damien George | |
| Saves code bytes and makes it faster, so why not? | |||
| 2014-08-11 | py, modcmath: Fix doc comment, and add some more of them. | Damien George | |
| 2014-08-11 | objstr: Make sure that bytes are indexed as bytes, not as unicode. | Paul Sokolovsky | |
| Fixes #795. | |||
| 2014-08-10 | Merge branch 'master' of github.com:micropython/micropython | Damien George | |
| 2014-08-10 | stmhal: Working STM32F4DISC accelerometer, via Python script. | Damien George | |
| Thanks to David Siorpaes. | |||
| 2014-08-10 | objstr: split(): check arg type consistency (str vs bytes). | Paul Sokolovsky | |
| Similar to other methods and following CPython3 strictness. | |||
| 2014-08-10 | py: binary.c: Properly implement alignment for native unpacked structs. | Paul Sokolovsky | |
| 2014-08-10 | modsocket: .recv() returns bytes object. | Paul Sokolovsky | |
| 2014-08-10 | doc: Fix up a few docs in sys module. | Damien George | |
| 2014-08-10 | doc: Document gc, sys, math, cmath. | Damien George | |
| 2014-08-10 | stmhal: Add sys.platform string to PYBv1.0 (it's "pyboard"). | Damien George | |
| 2014-08-10 | tools, gendoc: Output small descr about module TOC. | Damien George | |
| 2014-08-10 | objarray: Implement equality testing between arrays and other buffers. | Paul Sokolovsky | |
| 2014-08-10 | py: mp_buffer_info_t::buf may be valid, but NULL for empty objects. | Paul Sokolovsky | |
| This happens for example for zero-size arrays. As .get_buffer() method now has explicit return value, it's enough to distinguish success vs failure of getting buffer. | |||
| 2014-08-10 | moductypes: Remove debug inclusion of stdio.h . | Paul Sokolovsky | |
| 2014-08-09 | stmhal, pin: Save 140 bytes ROM by simplifying pin_print function. | Damien George | |
| 2014-08-09 | stmhal, pin: Simplify default value for alternate function init. | Damien George | |
| 2014-08-08 | tools, gendoc: Put module TOC/index in module/ directory. | Damien George | |
| 2014-08-08 | stmhal: Start of documentation for modos and modtime. | Damien George | |
| 2014-08-08 | tools, gendoc: Allow constants at module level; gen module index. | Damien George | |
| Addresses some issues from #585. | |||
| 2014-08-08 | Merge branch 'dhylands-pin-af' | Damien George | |
| 2014-08-08 | tests, pyb: Update pin test. | Damien George | |
| 2014-08-08 | stmhal/teensy: Use _ instead of - in source file names. | Damien George | |
| Trying to move towards consistency, let's use _ exclusively in names of source files (eg .c, .h, .csv). | |||
| 2014-08-08 | stmhal: Fix documentation; remove ability to specify af by str. | Damien George | |
| 2014-08-08 | stmhal: Comment out unused functions. | Damien George | |
| 2014-08-08 | Merge branch 'pin-af' of https://github.com/dhylands/micropython into ↵ | Damien George | |
| dhylands-pin-af | |||
| 2014-08-08 | py: Fix bug where GC finaliser table was not completely zeroed out. | Damien George | |
| This was a nasty bug to track down. It only had consequences when the heap size was just the right size to expose the rounding error in the calculation of the finaliser table size. And, a script had to allocate a small (1 or 2 cell) object at the very end of the heap. And, this object must not have a finaliser. And, the initial state of the heap must have been all bits set to 1. All these conspire on the pyboard, but only if your run the script fresh (so unused memory is all 1's), and if your script allocates a lot of small objects (eg 2-char strings that are not interned). | |||
| 2014-08-07 | Add support for selecting pin alternate functions from python. | Dave Hylands | |
| Converts generted pins to use qstrs instead of string pointers. This patch also adds the following functions: pyb.Pin.names() pyb.Pin.af_list() pyb.Pin.gpio() dir(pyb.Pin.board) and dir(pyb.Pin.cpu) also produce useful results. pyb.Pin now takes kw args. pyb.Pin.__str__ now prints more useful information about the pin configuration. I found the following functions in my boot.py to be useful: ```python def pins(): for pin_name in dir(pyb.Pin.board): pin = pyb.Pin(pin_name) print('{:10s} {:s}'.format(pin_name, str(pin))) def af(): for pin_name in dir(pyb.Pin.board): pin = pyb.Pin(pin_name) print('{:10s} {:s}'.format(pin_name, str(pin.af_list()))) ``` | |||
| 2014-08-07 | py: Fix bug in mpn_shl (multi-prec int shift left). | Damien George | |
| Before this patch, eg, 1 << 75 (or any large multiple of 15) was setting the MSB in the digits, which is outside the valid range of DIG_MASK. | |||
| 2014-08-06 | stmhal: Update STM32Cube F4 HAL driver to V1.3.0. | Damien George | |
| This patch updates ST's HAL to the latest version, V1.3.0, dated 19 June 2014. Files were copied verbatim from the ST package. Only change was to suppress compiler warning of unused variables in 4 places. A lot of the changes from ST are cosmetic: comments and white space. Some small code changes here and there, and addition of F411 header. Main code change is how SysTick interrupt is set: it now has a configuration variable to set the priority, so we no longer need to work around this (originall in system_stm32f4xx.c). | |||
| 2014-08-06 | stmhal: Ability to stat /flash and /sd. | Damien George | |
| Addresses issue #780. | |||
| 2014-08-06 | stmhal: Put #if guards around all GPIOx_CLK_ENABLE's. | Damien George | |
| Specifically, teensy port does not have these macros defined. | |||
