| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2014-07-31 | py: Make MP_OBJ_NEW_SMALL_INT cast arg to mp_int_t itself. | Damien George | |
| Addresses issue #724. | |||
| 2014-07-31 | stmhal, accel: Increase start-up times to 30ms; add extra 30ms delay. | Damien George | |
| For accel to start-up reliably, need to wait 30ms between on/off, and 30ms for it to enter active mode. With this fix the accel can be read immediately after initialising it. Addresses issue #763. | |||
| 2014-07-31 | stmhal: Add USB_VCP class/object, for direct USB VCP control. | Damien George | |
| Before, pyb.stdin/pyb.stdout allowed some kind of access to the USB VCP device, but it was basic access. This patch adds a proper USB_VCP class and object with much more control over the USB VCP device. Create an object with pyb.USB_VCP(), then use this object as if it were a UART object. It has send, recv, read, write, and other methods. send and recv allow a timeout to be specified. Addresses issue 774. | |||
| 2014-07-31 | py: Add mp_obj_str_builder_end_with_len. | Damien George | |
| This allows to create str's with a smaller length than initially asked for. | |||
| 2014-07-30 | py: Change lexer stream API to return bytes not chars. | Damien George | |
| Lexer is now 8-bit clean inside strings. | |||
| 2014-07-29 | Merge pull request #738 from dhylands/except-args | Damien George | |
| Add support for storing args during an exception raised by an irq. | |||
| 2014-07-28 | py: Implement __file__ attribute for modules. | Paul Sokolovsky | |
| 2014-07-28 | py: Make id() return small int for the most common address space mapping. | Paul Sokolovsky | |
| Many OSes/CPUs have affinity to put "user" data into lower half of address space. Take advantage of that and remap such addresses into full small int range (including negative part). If address is from upper half, long int will be used. Previously, small int was returned for lower quarter of address space, and upper quarter. For 2 middle quarters, long int was used, which is clearly worse schedule than the above. | |||
| 2014-07-27 | py: Change stream protocol API: fns return uint; is_text for text. | Damien George | |
| 2014-07-25 | Add support for storing args during an exception raised by an irq. | Dave Hylands | |
| The user code should call micropython.alloc_emergency_exception_buf(size) where size is the size of the buffer used to print the argument passed to the exception. With the test code from #732, and a call to micropython.alloc_emergenncy_exception_buf(100) the following error is now printed: ```python >>> import heartbeat_irq Uncaught exception in Timer(4) interrupt handler Traceback (most recent call last): File "0://heartbeat_irq.py", line 14, in heartbeat_cb NameError: name 'led' is not defined ``` | |||
| 2014-07-24 | Merge pull request #771 from dhylands/gitignore-GNUmakefile | Damien George | |
| Add GNUmakefile to the .gitignore file. | |||
| 2014-07-24 | py: Make long ints hashable. | Damien George | |
| Addresses issue #765. | |||
| 2014-07-24 | Add GNUmakefile to the .gitignore file. | Dave Hylands | |
| 2014-07-23 | streams: Treat non-error output size as unsigned. | Paul Sokolovsky | |
| 2014-07-23 | stream: Revert to checking for the correct error value. | Paul Sokolovsky | |
| 2014-07-22 | Merge pull request #766 from dhylands/allow-dfu-override | Damien George | |
| Allow DFU_UTIL to be overridden from the environment. | |||
| 2014-07-22 | Merge pull request #746 from blmorris/master | Damien George | |
| Enable 16-bit memory addresses for i2c.mem_read and i2c_mem_write | |||
| 2014-07-22 | Merge pull request #767 from dhylands/fix-short-read | Damien George | |
| Deal with reading a buffer less than what was allocated. | |||
| 2014-07-21 | remove Myriad2 board config files from master | blmorris | |
| 2014-07-21 | Change boolean 'use_16bit_addr' to int 'addr_size', can be either 8 or 16 ↵ | blmorris | |
| bits, default value is 8 to maintain compatibility with existing code. | |||
| 2014-07-21 | Deal with reading a buffer less than what was allocated. | Dave Hylands | |
| With this fix, file_long_read now passes. | |||
| 2014-07-21 | Allow DFU_UTIL to be overridden from the environment. | Dave Hylands | |
| 2014-07-22 | tests: Add testcase for read by length past EOF. | Paul Sokolovsky | |
| Currently broken for unicode input streams. | |||
| 2014-07-21 | Merge https://github.com/blmorris/micropython into Myriad2 | blmorris | |
| 2014-07-21 | Merge https://github.com/micropython/micropython | blmorris | |
| 2014-07-20 | stmhal: Fix REPL printing by cooking output sent to stdout_obj. | Damien George | |
| Recent changes to builtin print meant that print was printing to the mp_sys_stdout_obj, which was sending data raw to the USB CDC device. The data should be cooked so that \n turns into \r\n. | |||
| 2014-07-20 | stmhal: Change calls to pfenv_printf to pfenv_vprintf. | Damien George | |
| Fixes printing bugs introduced by cb66f41ebc4980f4e6b7543bece19e3b9daac25c. | |||
| 2014-07-19 | py: Make print() accept "file" argument, and actually print to stream. | Paul Sokolovsky | |
| And not system printf(), like it was before. For this, move pfenv_printf() from stmhal port to py/. | |||
| 2014-07-19 | Merge pull request #757 from stinos/windows-fsync | Damien George | |
| Add fsync for windows, i.e. _commit. See dce8876 | |||
| 2014-07-19 | Merge pull request #759 from micropython/unicode-read-chars | Damien George | |
| py: Add stream reading of n unicode chars; unicode support by default. | |||
| 2014-07-19 | py: Add stream reading of n unicode chars; unicode support by default. | Damien George | |
| With unicode enabled, this patch allows reading a fixed number of characters from text-mode streams; eg file.read(5) will read 5 unicode chars, which can made of more than 5 bytes. For an ASCII stream (ie no chars > 127) it only needs to do 1 read. If there are lots of non-ASCII chars in a stream, then it needs multiple reads of the underlying object. Adds a new test for this case. Enables unicode support by default on unix and stmhal ports. | |||
| 2014-07-19 | stmhal: Add file.flush and os.stat. | Damien George | |
| 2014-07-18 | Merge https://github.com/micropython/micropython | blmorris | |
| 2014-07-17 | py: Remove unnecessary argument in bytearray print. | Damien George | |
| 2014-07-17 | formatfloat.c: Typo fix in comment. | Paul Sokolovsky | |
| 2014-07-17 | py, inline asm: Change "and" op name to "and_" to avoid keyword clash. | Damien George | |
| Addresses issue #753. | |||
| 2014-07-17 | Merge pull request #755 from dhylands/teensy-core | Damien George | |
| Add teensy core files and use same toolchain as stmhal | |||
| 2014-07-17 | Merge pull request #754 from dhylands/fix-teensy | Damien George | |
| Fix teensy to build on latest tree. | |||
| 2014-07-16 | Add fsync for windows, i.e. _commit. See dce8876 | stijn | |
| 2014-07-15 | Initial commit of Myriad2 board-specific configuration files | blmorris | |
| 2014-07-15 | Merge https://github.com/micropython/micropython | blmorris | |
| 2014-07-14 | Add core files and use same toolchain as stmhal | Dave Hylands | |
| 2014-07-14 | Fix teensy to build on latest tree. | Dave Hylands | |
| Put #include of mpconfig.h before misc.h Replace uses of ARRAY_SIZE with MP_ARRAY_SIZE | |||
| 2014-07-13 | unix: file: No fsync() on Windows. | Paul Sokolovsky | |
| 2014-07-13 | stream: Factor out mp_stream_write() method to write a memstring to stream. | Paul Sokolovsky | |
| 2014-07-13 | unix: file: Implement .flush() method. | Paul Sokolovsky | |
| This method apparently should be part of stream interface. | |||
| 2014-07-13 | test: Add run-tests-exp.sh, script to run testsuite with only sh dependency. | Paul Sokolovsky | |
| This script uses expected test results as generated by run-tests --write-exp, and requires only standard unix shell funtionality (no bash). It is useful to run testsuite on embedded systems, where there's no CPython and Bash. | |||
| 2014-07-13 | unix: Allow to disable MICROPY_EMIT_X64 from commandline. | Paul Sokolovsky | |
| emitnative in particular requires nlr_* to be real functions, so doesn't compile with MICROPY_NLR_SETJMP=1. | |||
| 2014-07-12 | run-tests: Add option to write CPython's test results to .exp files. | Paul Sokolovsky | |
| Mostly to run testsuite on targets which doesn't have CPython. | |||
| 2014-07-12 | py: Add generic helper to align a pointer. | Paul Sokolovsky | |
