aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-08-16tests: Wait for just over 1 sec when testing RTC.Damien George
Waiting for 1000ms between seconds of RTC is sometimes too quick. Waiting for 1001ms is enough for the RTC to pass 1 second.
2014-08-16stmhal: For non-debug compile, enable CC/LD opt to remove dead code.Damien George
Saves over 35k ROM due to elimination of unused HAL functions. All tests pass. Addresses issue #702.
2014-08-16Merge branch 'danpeirce-master'Damien George
2014-08-16teensy/README.md (corrected typo)Dan Peirce
2014-08-16modified: teensy/README.mdDan Peirce
Updated teensy/README.md to reflect change in build process (teensyduino is no longer required for build).
2014-08-15py: Viper can now store to global.Damien George
2014-08-15py: Fix typing of viper locals; allow default types in annotation.Damien George
2014-08-15py: 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-15py: 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-14stmhal: Resolve question in comment about timer clock.Damien George
2014-08-13Merge pull request #798 from stinos/msvc-alignofDamien George
msvc: Use built-in alignof
2014-08-13py: 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-13msvc: Use built-in alignofstijn
This also fixes a 'unnamed type definition in parentheses' warning on the alignof implementation define in binary.c
2014-08-12Merge branch 'pfalcon-modzlibd'Damien George
2014-08-12extmod: Finish rename of zlib to zlibd; enable zlibd on stmhal.Damien George
2014-08-13tests: Add test for zlibd module.Paul Sokolovsky
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-12py: #if guard qstrs that are optional.Damien George
Also disable gc module on bare-arm port.
2014-08-12stmhal: Enable moductypes by default.Damien George
Also fixes compiler error in moductypes when compiled without debugging. Addresses issue #778.
2014-08-12py: Add .real and .imag attributes to complex numbers.Damien George
2014-08-12py: 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-12py: 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-12py: Make a function static; replace NULL with MP_OBJ_NULL.Damien George
2014-08-11py, objstr: Optimise bytes subscr when unicode is enabled.Damien George
Saves code bytes and makes it faster, so why not?
2014-08-11py, modcmath: Fix doc comment, and add some more of them.Damien George
2014-08-11objstr: Make sure that bytes are indexed as bytes, not as unicode.Paul Sokolovsky
Fixes #795.
2014-08-10Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-08-10stmhal: Working STM32F4DISC accelerometer, via Python script.Damien George
Thanks to David Siorpaes.
2014-08-10objstr: split(): check arg type consistency (str vs bytes).Paul Sokolovsky
Similar to other methods and following CPython3 strictness.
2014-08-10py: binary.c: Properly implement alignment for native unpacked structs.Paul Sokolovsky
2014-08-10modsocket: .recv() returns bytes object.Paul Sokolovsky
2014-08-10doc: Fix up a few docs in sys module.Damien George
2014-08-10doc: Document gc, sys, math, cmath.Damien George
2014-08-10stmhal: Add sys.platform string to PYBv1.0 (it's "pyboard").Damien George
2014-08-10tools, gendoc: Output small descr about module TOC.Damien George
2014-08-10objarray: Implement equality testing between arrays and other buffers.Paul Sokolovsky
2014-08-10py: 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-10moductypes: Remove debug inclusion of stdio.h .Paul Sokolovsky
2014-08-09stmhal, pin: Save 140 bytes ROM by simplifying pin_print function.Damien George
2014-08-09stmhal, pin: Simplify default value for alternate function init.Damien George
2014-08-08tools, gendoc: Put module TOC/index in module/ directory.Damien George
2014-08-08stmhal: Start of documentation for modos and modtime.Damien George
2014-08-08tools, gendoc: Allow constants at module level; gen module index.Damien George
Addresses some issues from #585.
2014-08-08Merge branch 'dhylands-pin-af'Damien George
2014-08-08tests, pyb: Update pin test.Damien George
2014-08-08stmhal/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-08stmhal: Fix documentation; remove ability to specify af by str.Damien George
2014-08-08stmhal: Comment out unused functions.Damien George
2014-08-08Merge branch 'pin-af' of https://github.com/dhylands/micropython into ↵Damien George
dhylands-pin-af