aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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-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
2014-07-03Rename machine_(u)int_t to mp_(u)int_t.Damien George
See discussion in issue #50.
2014-07-03Merge pull request #739 from errordeveloper/patch-1Damien George
qemu: fix typo in readme
2014-07-02qemu: fix typo in readmeIlya Dmitrichenko
2014-07-02Merge branch 'dhylands-add-timer-deinit'Damien George
2014-07-02stmhal: Some reordering of code/functions.Damien George
2014-07-02Merge branch 'add-timer-deinit' of github.com:dhylands/micropython into ↵Damien George
dhylands-add-timer-deinit
2014-07-02Merge pull request #709 from windelbouwman/masterDamien George
Added hexfile target
2014-07-02Merge branch 'dhylands-teensy-new'Damien George
2014-07-02Merge branch 'teensy-new' of github.com:dhylands/micropython into ↵Damien George
dhylands-teensy-new Conflicts: stmhal/pin_named_pins.c stmhal/readline.c Renamed HAL_H to MICROPY_HAL_H. Made stmhal/mphal.h which intends to define the generic Micro Python HAL, which in stmhal sits above the ST HAL.
2014-07-01Merge branch 'dhylands-preserve-except'Damien George
2014-07-01py, objexcept: Only check for locked gc if gc is enabled.Damien George