aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-10-19py: Add lsl/lsr/asr opcode support to inline Thumb2 assembler.Damien George
2015-10-19unix/unix_mphal: Implement HAL_Delay() and HAL_GetTick().Paul Sokolovsky
2015-10-18py/stream: Allow to reuse is_nonblocking_error().Paul Sokolovsky
2015-10-18unix/modos: Checking config macros requires mpconfig.h.Paul Sokolovsky
2015-10-18unix/modos: Guard sys/statvfs.h include with MICROPY_PY_OS_STATVFS check.Paul Sokolovsky
E.g. Windows lacks this header.
2015-10-18docs: In top index fix machine module link for the WiPy.danicampora
2015-10-18unix/modos: Add statvfs() function.Paul Sokolovsky
Another function (like stat) which is problematic to deal with on ABI level (FFI), as struct statvfs layout may differ unpredictably between OSes and even different versions of a same OS. So, implement it in C, returning a 10-element tuple of f_bsize, f_frsize, f_blocks, f_bfree, f_bavail, f_files, f_ffree, f_favail, f_flag, f_namemax. This is exactly the order described in Python3 docs, https://docs.python.org/3/library/os.html#os.statvfs (but note that os.statvfs() should make these values available as attributes).
2015-10-18unix: Build libffi in a directory which is gitgnored.Paul Sokolovsky
To avoid "-dirty" version previous and spurious "modified" output from git status, etc.
2015-10-17docs: Update all WiPy docs to reflect the new API.danicampora
2015-10-17cc3200: Improvements to terminal duplication.danicampora
2015-10-17cc3200: In scan results rename 'auth' field to 'sec'.danicampora
As defined by the new API, since 'auth' is actually a tuple composed by the security type and the key.
2015-10-17stmhal: Make USB serial number actually be unique.Dave Hylands
2015-10-17tools/upip: Update to 0.5.9.Paul Sokolovsky
MICROPYPATH environment variable is now honored, package are installed to first path specified in it.
2015-10-17lib/libffi: Add libffi as a submodule.Paul Sokolovsky
This allows to build libffi from source together with micropython, and is useful for cross-compilation. Support for this was already merged previously, to use: make libffi make MICROPY_STANDALONE=1 (To both commands appropriate cross-compilition flags can be added).
2015-10-17py: Add support for _ in REPL to hold last computed value.Damien George
Only available when MICROPY_CAN_OVERRIDE_BUILTINS is enabled.
2015-10-16py: Add option for inline assembler to support ARMv7-M instructions.Damien George
Cortex-M0, M0+ and M1 only have ARMv6-M Thumb/Thumb2 instructions. M3, M4 and M7 have a superset of these, named ARMv7-M. This patch adds a config option to enable support of the superset of instructions.
2015-10-15py: Fix with+for+return bug by popping for-iter when unwinding exc stack.Damien George
Addresses issue #1182.
2015-10-15unix: Fix coverage build now that mp_plat_print uses write.Damien George
2015-10-15py: Remove dependency on printf/fwrite in mp_plat_print.Damien George
See issue #1500.
2015-10-15unix: Allow to build against Android down to 1.5.Paul Sokolovsky
Bionic libc in Android 1.5 missed log2() and nan() functions.
2015-10-14py/compile: Remove unnecessary label in compilation of for statement.Damien George
2015-10-14py: Fix build of ARM native emitter due to recent viper changes.Damien George
Addresses #1510.
2015-10-14tests/jni: Start adding modjni tests.Paul Sokolovsky
These are currently not intended to run with the rest of testsuite, as they require dependencies and special environment setup anyway (drafted in tests/jni/README).
2015-10-14unix/modjni: Add iteration support for Java List objects.Paul Sokolovsky
Using generic iteration-via-subscription support (TODO: factor it out for reuse).
2015-10-14unix/modjni: call_method: Check for Java exception after method return.Paul Sokolovsky
2015-10-13tests: Add more tests for viper 16/32-bit load/store, and ellipsis.Damien George
2015-10-13py/qstr: Fix calc of qstr memory usage, due to new qstr chunk allocation.Damien George
2015-10-13docs: Fix formatting of DAC code examples.Damien George
2015-10-13stmhal: Allow to set bits resolution for DAC; 8 is default, can have 12.Damien George
This patch allows to configure the DAC resolution in the constructor and in the init function, eg: dac = DAC(1, bits=12). The default resolution is 8 bits for backwards compatibility. The bits sets the maximum value accepted by write and write_timed methods, being 2**bits - 1. When using write_timed with 12-bit resolution, the input buffer is treated as an unsigned half-word array, typecode 'H'. See PR #1130 for discussion.
2015-10-13py: Implement ptr32 load and store in viper emitter.Damien George
2015-10-13unix/modtermios: tcsetattr: If 0 passed for "when" param, treat as TCSANOW.Paul Sokolovsky
As we dn't export constants for TCSANOW, etc., zero makes a good "don't care" param, and now it will work also under Android Bionic and any other libc.
2015-10-12py: Add support to call __init__ from a builtin module on first import.Damien George
2015-10-12py: Allow to to build MicroPython as a static library.Paul Sokolovsky
The whole current port gets slurped into a static lib named "libmicropython.a". Maybe that's not ideal, but at least something to start with.
2015-10-12py/parse: Make parser error handling cleaner, less spaghetti-like.Damien George
2015-10-12py: Move constant folding from compiler to parser.Damien George
It makes much more sense to do constant folding in the parser while the parse tree is being built. This eliminates the need to create parse nodes that will just be folded away. The code is slightly simpler and a bit smaller as well. Constant folding now has a configuration option, MICROPY_COMP_CONST_FOLDING, which is enabled by default.
2015-10-12py/objarray: Allow to create array of void pointers, as extension to CPython.Paul Sokolovsky
Using 'P' format specifier (matches struct module). This is another shortcut for FFI, just as previously introduced "array of objects" ('O').
2015-10-12unix: Add exit and paste-mode hints to shell startup banner.Damien George
Thanks to @nyov for the initial patch.
2015-10-12README.md: Document "Ctrl+D" shell exit.nyov
2015-10-12Rename "Micro Python" to "MicroPython" in REPL, help, readme's and misc.Damien George
2015-10-11stmhal: Enable REPL auto indent; document paste mode in help().Damien George
2015-10-11repl: Add paste mode to friendly REPL, entered via CTRL-E.Damien George
Use CTRL-E to enter paste mode. Prompt starts with "===" and accepts all characters verbatim, echoing them back. Only control characters are CTRL-C which cancels the input and returns to normal REPL, and CTRL-D which ends the input and executes it. The input is executed as though it were a file. The input is not added to the prompt history.
2015-10-11py: Rename MP_BOOL() to mp_obj_new_bool() for consistency in naming.Paul Sokolovsky
2015-10-11py/makeqstrdata.py: Catch and report case of empty input file.Paul Sokolovsky
The usual cause would be that a cross-compiler for a port is not in PATH.
2015-10-10unix/modsocket: Fix usage of pointers to locals outside scopeAnmol Sarma
2015-10-10drivers/sdcard: Allow up to 5 retries to initialise SD card.Damien George
Apparently some cards need more than 2 retries. See issue #1482.
2015-10-10docs: Describe properly how MCU can be woken from pyb.standby() state.Damien George
2015-10-10unix/modjni: py2jvalue: Support bool and None values.Paul Sokolovsky
2015-10-09tests: In pyb RTC tests, check wakeup register values.Peter Hinch
2015-10-09stmhal: Fix USB CDC-only mode under Windows.Dave Hylands
This fix adds PIDs 9801 and 9802 to the pybcdc.inf file. When in CDC only mode, it presents itself as a Communcations device rather than as a composite device. Presenting as a composite device with only the CDC interface seems to confuse windows. To test and make sure that the correct pybcdc.inf was being used, I used USBDeview from http://www.nirsoft.net/utils/usb_devices_view.html to uninstall any old pyboard drivers (Use Control-F and search for pyboard). I found running USBDeview as administrator worked best. Installing the driver in CDC+MSC mode first is recommended (since the pybcdc.inf file in on the internal flash drive). Then when you switch modes everything seems to work properly. I used https://github.com/dhylands/upy-examples/blob/master/boot_switch.py to easily switch the pyboard between the various USB modes for testing.
2015-10-08py/parse: Factor logic when creating parse node from and-rule.Damien George