aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-07-23stream: Revert to checking for the correct error value.Paul Sokolovsky
2014-07-22Merge pull request #766 from dhylands/allow-dfu-overrideDamien George
Allow DFU_UTIL to be overridden from the environment.
2014-07-22Merge pull request #746 from blmorris/masterDamien George
Enable 16-bit memory addresses for i2c.mem_read and i2c_mem_write
2014-07-22Merge pull request #767 from dhylands/fix-short-readDamien George
Deal with reading a buffer less than what was allocated.
2014-07-21remove Myriad2 board config files from masterblmorris
2014-07-21Change 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-21Deal with reading a buffer less than what was allocated.Dave Hylands
With this fix, file_long_read now passes.
2014-07-21Allow DFU_UTIL to be overridden from the environment.Dave Hylands
2014-07-22tests: Add testcase for read by length past EOF.Paul Sokolovsky
Currently broken for unicode input streams.
2014-07-21Merge https://github.com/blmorris/micropython into Myriad2blmorris
2014-07-21Merge https://github.com/micropython/micropythonblmorris
2014-07-20stmhal: 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-20stmhal: Change calls to pfenv_printf to pfenv_vprintf.Damien George
Fixes printing bugs introduced by cb66f41ebc4980f4e6b7543bece19e3b9daac25c.
2014-07-19py: 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-19Merge pull request #757 from stinos/windows-fsyncDamien George
Add fsync for windows, i.e. _commit. See dce8876
2014-07-19Merge pull request #759 from micropython/unicode-read-charsDamien George
py: Add stream reading of n unicode chars; unicode support by default.
2014-07-19py: 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-19stmhal: Add file.flush and os.stat.Damien George
2014-07-18Merge https://github.com/micropython/micropythonblmorris
2014-07-17py: Remove unnecessary argument in bytearray print.Damien George
2014-07-17formatfloat.c: Typo fix in comment.Paul Sokolovsky
2014-07-17py, inline asm: Change "and" op name to "and_" to avoid keyword clash.Damien George
Addresses issue #753.
2014-07-17Merge pull request #755 from dhylands/teensy-coreDamien George
Add teensy core files and use same toolchain as stmhal
2014-07-17Merge pull request #754 from dhylands/fix-teensyDamien George
Fix teensy to build on latest tree.
2014-07-16Add fsync for windows, i.e. _commit. See dce8876stijn
2014-07-15Initial commit of Myriad2 board-specific configuration filesblmorris
2014-07-15Merge https://github.com/micropython/micropythonblmorris
2014-07-14Add core files and use same toolchain as stmhalDave Hylands
2014-07-14Fix 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-13unix: file: No fsync() on Windows.Paul Sokolovsky
2014-07-13stream: Factor out mp_stream_write() method to write a memstring to stream.Paul Sokolovsky
2014-07-13unix: file: Implement .flush() method.Paul Sokolovsky
This method apparently should be part of stream interface.
2014-07-13test: 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-13unix: 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-12run-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-12py: Add generic helper to align a pointer.Paul Sokolovsky
2014-07-12emitbc: Fix structure field alignment issue.Paul Sokolovsky
dummy_data field is accessed as uint value (e.g. in emit_write_bytecode_byte_ptr), but is not aligned as such, which causes bus errors or incorrect behavior on any arch requiring strictly aligned data (ARM pre-v7, MIPS, etc, etc).
2014-07-11Incorporate stylistic changes suggested by @dhylandsblmorris
2014-07-11Add keyword argument 'memaddr_use_16b' to i2c.mem_read and mem_write methodsblmorris
to allow these methods to transmit 16 bit addresses to an i2c device Add 'memaddr_use_16b' to qstrdefsport.h
2014-07-11moductypes: Add symbolic constants to specify bitfield position/length.Paul Sokolovsky
2014-07-09moductypes: Foreign data interface module, roughly based on ctype ideas.Paul Sokolovsky
But much smaller and memory-efficient. Uses Python builtin data structures (dict, tuple, int) to describe structure layout.
2014-07-07Merge branch 'dhylands-fix-sdcard-read'Damien George
2014-07-07stmhal: Protect SD_WriteBlocks by IRQ disable/enable pair.Damien George
2014-07-06Disable IRQs around sdcard reads.Dave Hylands
Once the code switches to using DMA, this can be removed.
2014-07-05binary: Factor out mp_binary_set_int().Paul Sokolovsky
2014-07-05tests: Rename test scripts, changing - to _ for consistency.Damien George
From now on, all new tests must use underscore. Addresses issue #727.
2014-07-05py: Automatically ake __new__ a staticmethod.Damien George
Addresses issue #622.
2014-07-03py: Implement sys.maxsize, standard way to check platform "bitness".Paul Sokolovsky
Implementing it as a static constant is a bit peculiar and require cooperation from long int implementation.
2014-07-03parser: Convert (u)int to mp_(u)int_t.Damien George
2014-07-03lexer: Convert type (u)int to mp_(u)int_t.Damien George