aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-08-24unix, modtermios: Make it properly configurable; fix spelling mistake.Damien George
2014-08-23modtermios: Add "termios" unix module, subset of CPython's.Paul Sokolovsky
Also provides setraw() function from "tty" module (which in CPython is implemented in Python). The idea here is that 95% of "termios" module usage is to set raw mode to allow access to normal serial devices. Then, instead of exporting gazillion termios symbols, it's better to implement it in C, and export minimal number of symbols (mostly baud rates and drain values).
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-22py: Change hash and len members of str from 16 bit to full word.Damien George
This allows to make strings longer than 64k. It doesn't use any more RAM with current GC because a str object still fits in a GC block.
2014-08-22py: Small cleanup in stream.c.Damien George
2014-08-22py: Speed up GC allocation.Damien George
This simple patch gives a very significant speed up for memory allocation with the GC. Eg, on PYBv1.0: tests/basics/dict_del.py: 3.55 seconds -> 1.19 seconds tests/misc/rge_sm.py: 15.3 seconds -> 2.48 seconds
2014-08-18Merge pull request #796 from turbinenreiter/makeinstallPaul Sokolovsky
unix: Added install/uninstall
2014-08-16py: Code clean-up in native emitter; improve thumb native calls.Damien George
2014-08-16py: Viper can call functions with native types, and raise exceptions.Damien George
2014-08-16Merge pull request #803 from dhylands/ld-optDamien George
Put some code into the first 16K of flash
2014-08-16Put some code into the first 16K of flashDave Hylands
This basically shrinks the remaining size of flash in the portion that goes after the internal flash drive.
2014-08-16py: Put SystemExit in builtin namespace.Damien George
Also fix unix port so that SystemExit with no arg exits with value 0.
2014-08-16stmhal: In safe mode, still mount SD card and present as MSD over USB.Damien George
It's still "safe" because no scripts are run. Remove the SD card if you want to access the internal flash filesystem. Addresses issue #616. Also: remove obsolete pyb.source_dir setting, and reset pyb.main and pyb.usb_mode settings on soft-reset.
2014-08-16stmhal: Fix printing of pin name in error message.Damien George
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-11added install/uninstallSebastian Plamauer
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