summaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAge
* Merge branch 'master' of github.com:micropython/micropythonDamien George2014-04-09
|\
| * gc.c: Remove superfluous typedef (bute defined in misc.h).Paul Sokolovsky2014-04-09
| |
* | stmhal: Update windows driver; \r\n newlines and addition USB id.Damien George2014-04-09
| |
* | stmhal: Add windows cdc .inf driver to flash filesystem.Damien George2014-04-09
| |
* | stmhal: Improve help() function.Damien George2014-04-09
|/
* stmhal: Add functionality to Servo object.Damien George2014-04-09
| | | | Can now calibrate, set pulse width, angle and speed.
* Merge pull request #454 from dhylands/make-pins-multiple-named-pinsDamien George2014-04-09
|\ | | | | Fix make-pins.py to support having multiple names for a pin.
| * Fix make-pins.py to support having multiple names for a pin.Dave Hylands2014-04-08
| | | | | | | | SW and X17 now both map to PB3
* | README: Python is required during build process unconditionally.Paul Sokolovsky2014-04-09
|/ | | | Fixes #449.
* py: Make it so that printing a small int does not allocate heap memory.Damien George2014-04-08
| | | | | | | | | | | | | | With the implementation of proper string formatting, code to print a small int was delegated to mpz_as_str_inpl (after first converting the small int to an mpz using stack memory). But mpz_as_str_inpl allocates heap memory to do the conversion, so small ints needed heap memory just to be printed. This fix has a separate function to print small ints, which does not allocate heap, and allocates less stack. String formatting, printf and pfenv are now large beasts, with some semi-duplicated code.
* Merge branch 'master' of github.com:micropython/micropythonDamien George2014-04-08
|\
| * objint: Implement int.from_bytes() class method and .to_bytes() method.Paul Sokolovsky2014-04-09
| | | | | | | | | | | | | | These two are apprerently the most concise and efficient way to convert int to/from bytes in Python. The alternatives are struct and array modules, but methods using them are more verbose in Python code and less efficient in memory/cycles.
| * py: Add mp_get_buffer(), mp_get_buffer_raise() convenience functions to API.Paul Sokolovsky2014-04-09
| |
* | py: Add comment mpz function, and free memory used for string printing.Damien George2014-04-08
|/
* tests: Oops: fix del-attr.Damien George2014-04-08
|
* stmhal: Make USRSW re-register the EXTI callback each time it's set.Damien George2014-04-08
|
* py: Reinstate old pfenv_print_int function for stmhal's printf.Damien George2014-04-08
|
* py: Remove obsolete mp_delete_subscr declaration.Damien George2014-04-08
|
* py: Remove DELETE_SUBSCR opcode, combine with STORE_SUBSCR.Damien George2014-04-08
| | | | | This makes the runtime and object APIs more consistent. mp_store_subscr functionality now moved into objects (ie list and dict store_item).
* Merge branch 'master' of github.com:micropython/micropythonDamien George2014-04-08
|\
| * py: Make bytearray a proper type.Paul Sokolovsky2014-04-08
| |
* | py: Finish implementation of all del opcodes.Damien George2014-04-08
|/ | | | | | | At this point, all opcodes are now implemented! Some del opcodes have been combined with store opcodes, with the value to store being MP_OBJ_NULL.
* Merge branch 'master' of github.com:micropython/micropythonDamien George2014-04-08
|\
| * unix modffi: Support any object implementing buffer protocol as a native arg.Paul Sokolovsky2014-04-08
| |
| * bytes: Support buffer protocol.Paul Sokolovsky2014-04-08
| |
| * bytearray: Support bytearray(int) constructor.Paul Sokolovsky2014-04-08
| | | | | | | | To create bytearray of given length.
* | py: Improve inline assembler; add a few more opcodes.Damien George2014-04-08
| |
* | py: implement UNPACK_EX byte code (for: a, *b, c = d)Damien George2014-04-08
| |
* | py: Raise exception for unimplemented byte codes.Damien George2014-04-08
| |
* | py: Improve compiler syntax errors; catch more errors.Damien George2014-04-08
| |
* | stmhal: in EXTI interrupt handler wrap uPy calls in gc_lock and nlr_buf.Damien George2014-04-08
|/
* unix: Oops, remove nlr_jump test in main.Damien George2014-04-08
|
* Add a check for NULL nlr_top in nlr_jump.Damien George2014-04-08
| | | | | | If no nlr_buf has been pushed, and an nlr_jump is called, then control is transferred to nlr_jump_fail (which should bail out with a fatal error).
* windows: Use most of the source files from unix/ port.Damien George2014-04-08
| | | | | To keep it maintainable, windows port now uses as much as possible from unix port. Maybe could even use mpconfigport.h.
* py: Continue line if last character is backslash.Damien George2014-04-08
|
* py: Improve GC locking/unlocking, and make it part of the API.Damien George2014-04-08
|
* Merge pull request #451 from lurch/repr-fixesDamien George2014-04-08
|\ | | | | Display \r and \t escape codes in string repr
| * Display \r and \t escape codes in string reprAndrew Scheller2014-04-08
| |
* | Improve REPL detecting when input needs to continue.Damien George2014-04-08
|/ | | | | | | | Full CPython compatibility with this requires actually parsing the input so far collected, and if it fails parsing due to lack of tokens, then continue collecting input. It's not worth doing it this way. Not having compatibility at this level does not hurt the goals of Micro Python.
* unix, stmhal: Consistently use "FileIO" as class name for file objects.Paul Sokolovsky2014-04-08
| | | | | They correspond to io.FileIO in io module hierarchy (with small caveat that io.FileIO is raw file and works with bytes, not strings).
* unix, windows: There's no "help" builtin.Paul Sokolovsky2014-04-08
|
* py: Rename pfenv_print_int to pfenv_print_mp_int, and add back former.Damien George2014-04-08
| | | | | | | | | | | | | | stmhal relies on pfenv_* to implement its printf. Thus, it needs a pfenv_print_int which prints a proper 32-bit integer. With latest change to pfenv, this function became one that took mp_obj_t, and extracted the integer value from that object. To fix temporarily, pfenv_print_int has been renamed to pfenv_print_mp_int (to indicate it takes a mp_obj_t for the int), and pfenv_print_int has been added (which takes a normal C int). Currently, pfenv_print_int proxies to pfenv_print_mp_int, but this means it looses the MSB. Need to find a way to fix this, but the only way I can think of will duplicate lots of code.
* Merge pull request #447 from dhylands/str-format-mpzDamien George2014-04-07
|\ | | | | Add string formatting support for longlong and mpz.
| * Fix truncation problem when using longlong implementation.Dave Hylands2014-04-07
| |
| * Add string formatting support for longlong and mpz.Dave Hylands2014-04-07
| |
* | README: Be specific that ARMv7 Linux is supported.Paul Sokolovsky2014-04-07
|/
* Add uPy welcome message to UNIX and Windows ports; update Teensy port.Damien George2014-04-07
| | | | Partly addresses issue #154.
* windows: Make it compile with latest changes to py core.Damien George2014-04-07
|
* Merge pull request #439 from lurch/makefile-tweaksDamien George2014-04-07
|\ | | | | Makefile tweaks
| * Merge remote-tracking branch 'upstream/master' into makefile-tweaksAndrew Scheller2014-04-07
| |\