Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | examples: Added pins.py example script to list pin config/af. | Damien George | 2014-08-24 |
| | | | | Script is due to Dave Hylands. | ||
* | stmhal, pin: Update documentation. | Damien George | 2014-08-24 |
| | |||
* | Added python script to map AF to a pin name | Dave Hylands | 2014-08-24 |
| | | | | Added some functions to Pin class to query mode, pull, and af | ||
* | Merge branch 'dhylands-localtime' | Damien George | 2014-08-24 |
|\ | |||
| * | stmhal, modtime: Small changes, reduced code size by around 80 bytes. | Damien George | 2014-08-24 |
| | | | | | | | | Also added test for modtime. | ||
| * | Add time.mktime and enhance time.localtime (for stmhal) | Dave Hylands | 2014-08-24 |
|/ | | | | Now you can use time.localtime on the timestamps presented by os.stat | ||
* | py: Fix bug where GC collected native/viper/asm function data. | Damien George | 2014-08-24 |
| | | | | | | | | Because (for Thumb) a function pointer has the LSB set, pointers to dynamic functions in RAM (eg native, viper or asm functions) were not being traced by the GC. This patch is a comprehensive fix for this. Addresses issue #820. | ||
* | unix, modtermios: Make it properly configurable; fix spelling mistake. | Damien George | 2014-08-24 |
| | |||
* | modtermios: Add "termios" unix module, subset of CPython's. | Paul Sokolovsky | 2014-08-23 |
| | | | | | | | | 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). | ||
* | extmod, zlibd: Make some simple ROM and RAM savings. | Damien George | 2014-08-22 |
| | | | | | ROM down by 320 bytes on stmhal. RAM down by 5.5k for a decompression object. | ||
* | py: Change hash and len members of str from 16 bit to full word. | Damien George | 2014-08-22 |
| | | | | | 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. | ||
* | py: Small cleanup in stream.c. | Damien George | 2014-08-22 |
| | |||
* | py: Speed up GC allocation. | Damien George | 2014-08-22 |
| | | | | | | | | | 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 | ||
* | Merge pull request #796 from turbinenreiter/makeinstall | Paul Sokolovsky | 2014-08-18 |
|\ | | | | | unix: Added install/uninstall | ||
| * | added install/uninstall | Sebastian Plamauer | 2014-08-11 |
| | | |||
* | | py: Code clean-up in native emitter; improve thumb native calls. | Damien George | 2014-08-16 |
| | | |||
* | | py: Viper can call functions with native types, and raise exceptions. | Damien George | 2014-08-16 |
| | | |||
* | | Merge pull request #803 from dhylands/ld-opt | Damien George | 2014-08-16 |
|\ \ | | | | | | | Put some code into the first 16K of flash | ||
| * | | Put some code into the first 16K of flash | Dave Hylands | 2014-08-16 |
|/ / | | | | | | | | | This basically shrinks the remaining size of flash in the portion that goes after the internal flash drive. | ||
* | | py: Put SystemExit in builtin namespace. | Damien George | 2014-08-16 |
| | | | | | | | | Also fix unix port so that SystemExit with no arg exits with value 0. | ||
* | | stmhal: In safe mode, still mount SD card and present as MSD over USB. | Damien George | 2014-08-16 |
| | | | | | | | | | | | | | | | | 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. | ||
* | | stmhal: Fix printing of pin name in error message. | Damien George | 2014-08-16 |
| | | |||
* | | tests: Wait for just over 1 sec when testing RTC. | Damien George | 2014-08-16 |
| | | | | | | | | | | Waiting for 1000ms between seconds of RTC is sometimes too quick. Waiting for 1001ms is enough for the RTC to pass 1 second. | ||
* | | stmhal: For non-debug compile, enable CC/LD opt to remove dead code. | Damien George | 2014-08-16 |
| | | | | | | | | | | | | | | Saves over 35k ROM due to elimination of unused HAL functions. All tests pass. Addresses issue #702. | ||
* | | Merge branch 'danpeirce-master' | Damien George | 2014-08-16 |
|\ \ | |||
| * | | teensy/README.md (corrected typo) | Dan Peirce | 2014-08-16 |
| | | | |||
| * | | modified: teensy/README.md | Dan Peirce | 2014-08-16 |
|/ / | | | | | | | | | Updated teensy/README.md to reflect change in build process (teensyduino is no longer required for build). | ||
* | | py: Viper can now store to global. | Damien George | 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 | 2014-08-15 |
| | | | | | | | | | | | | | | | | | | 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 | ||
* | | py: Clean up and simplify functions in scope; add STATIC in compiler. | Damien George | 2014-08-15 |
| | | | | | | | | | | Some small code clean-ups that result in about 80 bytes ROM saving for stmhal. | ||
* | | stmhal: Resolve question in comment about timer clock. | Damien George | 2014-08-14 |
| | | |||
* | | Merge pull request #798 from stinos/msvc-alignof | Damien George | 2014-08-13 |
|\ \ | | | | | | | msvc: Use built-in alignof | ||
| * | | msvc: Use built-in alignof | stijn | 2014-08-13 |
| | | | | | | | | | | | | | | | This also fixes a 'unnamed type definition in parentheses' warning on the alignof implementation define in binary.c | ||
* | | | py: Fix mult by negative number of tuple, list, str, bytes. | Damien George | 2014-08-13 |
|/ / | | | | | | | | | | | | | 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. | ||
* | | Merge branch 'pfalcon-modzlibd'v1.3 | Damien George | 2014-08-12 |
|\ \ | |||
| * | | extmod: Finish rename of zlib to zlibd; enable zlibd on stmhal. | Damien George | 2014-08-12 |
| | | | |||
| * | | tests: Add test for zlibd module. | Paul Sokolovsky | 2014-08-13 |
| | | | |||
| * | | modzlibd: Add tinfl.c from miniz SVN repo, r63. | Paul Sokolovsky | 2014-08-13 |
| | | | | | | | | | | | | The only change is line-ending convesion to LF. | ||
| * | | modzlibd: Decompress part of "zlib" module, based on miniz tinfl.c . | Paul Sokolovsky | 2014-08-13 |
|/ / | |||
* | | py: #if guard qstrs that are optional. | Damien George | 2014-08-12 |
| | | | | | | | | Also disable gc module on bare-arm port. | ||
* | | stmhal: Enable moductypes by default. | Damien George | 2014-08-12 |
| | | | | | | | | | | | | Also fixes compiler error in moductypes when compiled without debugging. Addresses issue #778. | ||
* | | py: Add .real and .imag attributes to complex numbers. | Damien George | 2014-08-12 |
| | | |||
* | | py: Improve range: add len, subscr, proper print. | Damien George | 2014-08-12 |
| | | | | | | | | | | | | | | | | 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. | ||
* | | py: Implement builtin reversed() function. | Damien George | 2014-08-12 |
| | | | | | | | | | | | | | | | | 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). | ||
* | | py: Make a function static; replace NULL with MP_OBJ_NULL. | Damien George | 2014-08-12 |
| | | |||
* | | py, objstr: Optimise bytes subscr when unicode is enabled. | Damien George | 2014-08-11 |
| | | | | | | | | Saves code bytes and makes it faster, so why not? | ||
* | | 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 | 2014-08-11 |
|/ | | | | Fixes #795. | ||
* | Merge branch 'master' of github.com:micropython/micropython | Damien George | 2014-08-10 |
|\ |