summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-02-21extmod: Pull in upstream changes to re1.5; fixes bug, adds named class.Damien George
2015-02-21run-tests-exp.sh: Typo fix in comment.Paul Sokolovsky
2015-02-20cc3200: Disable MICROPY_PY_SYS_EXIT and MICROPY_EMIT_INLINE_THUMB.danicampora
Disabling MICROPY_EMIT_INLINE_THUMB gives us back around 6K of precious RAM.
2015-02-20cc3200: Refactor UART and I2C object creation.danicampora
I2C objects can be freed by the GC and a __del__ method is provided in order to de-init the peripheral prior to being garbage collected. UART objects are now added to a local list and this list is now part of the VM_STATE.
2015-02-20cc3200: Increase UART default read buffer size to 128 bytes.danicampora
2015-02-20cc3200: Add ADC module.danicampora
2015-02-20cc3200: Change safe-boot pin to GPIO28.danicampora
2015-02-20cc3200: Remove asserts from sl_Stop() and reduce timeout to 250ms.danicampora
2015-02-20cc3200: Move `closed` field in mod_network_socket_obj_t out of the union.danicampora
2015-02-20cc3200: Disable FreeRTOS asserts. Optimize more files if BTYPE=debug.danicampora
2015-02-18extmod/modure: Make num_matches store actual number of matches.Damien George
2015-02-17py: Fix mp_obj_print() to work when Python streams are not used.Paul Sokolovsky
2015-02-17py: Revamp mp_obj_print() to use Python streams.Paul Sokolovsky
Most of printing infrastructure now uses streams, but mp_obj_print() used libc's printf(), which led to weird buffering issues in output. So, switch mp_obj_print() to streams too, even though it may make sense to move it to a separate file, as it is purely a debugging function now.
2015-02-16py: Implement bl/bx instructions for inline Thumb assembler.Damien George
2015-02-16py: Implement "it" instruction for inline Thumb assembler.Damien George
2015-02-16py: More robust checking in inline assembler compiler.Damien George
2015-02-16qemu-arm: Enable source line numbers, for easier debugging.Damien George
2015-02-16tests: Add another testcase for relative imports.Paul Sokolovsky
2015-02-16builtinimport: Revamp&refactor handling of relative imports.Paul Sokolovsky
Relative imports are based of a package, so we're currently at a module within a package, we should get to package first. Also, factor out path travsering operation, but this broke testing for boundary errors with relative imports. TODO: reintroduce them, together with proper tests.
2015-02-16builtinimport: Improve debugging output.Paul Sokolovsky
2015-02-15stackctrl: Encode "recursion depth exceeded" message as qstr.Paul Sokolovsky
So corresponding exception can be thrown even under tight memory conditions.
2015-02-15objexcept: Optimize traceback allocation for exception.Paul Sokolovsky
Traceback allocation for exception will now never lead to recursive MemoryError exception - if there's no memory for traceback, it simply won't be created.
2015-02-15objexcept: Optimize using messages without formatting substitutions.Paul Sokolovsky
They are directly cast to str object, skipping allocation of formatting buffer.
2015-02-15nlr: Add even more optional debugging logging.Paul Sokolovsky
Has to be enabled by manual editing, but at least it's there, as debugging NLR issues may be weird.
2015-02-15nlr: If DEBUG, guard against recursive nlr_push().Paul Sokolovsky
Pushing same NLR record twice would lead to "infinite loop" in nlr_jump (but more realistically, it will crash as soon as NLR record on stack is overwritten).
2015-02-15py: Make old_globals part of mp_code_state structure.Paul Sokolovsky
Conceptually it is part of code state, so let it be allocated in the same way as the rest of state.
2015-02-15py: Use TextIOWrapper only if PY_IO_FILEIO def'd; cast size_t for print.Damien George
2015-02-15stmhal: Add support for CAN rx callbacks.Henrik Sölver
2015-02-15tests: Remove obsolete test; don't use fp in micropython/ tests.Damien George
2015-02-15py: Simplify and remove redundant code for __iter__ method lookup.Damien George
2015-02-15py: Fix loading of immediate pointer in Thumb assembler.Damien George
Addresses issue #1117.
2015-02-15py: Check for valid file when creating lexer for execfile.Damien George
Addresses issue #1119.
2015-02-14py: Cleanup duplication in instance_is_callable/instance_call.stijn
2015-02-14py: Add setattr builtin.stijn
2015-02-13stmhal: Fix setting of VID.Damien George
2015-02-13esp8266: Add basic pyb.Pin class; supports output mode only.Damien George
2015-02-13stmhal: Add uart.sendbreak() method, to send a break condition.Damien George
2015-02-14py/asm*.c: Typo fixes in comments.Paul Sokolovsky
2015-02-13cc3200: Add I2C module. Only master mode is currently supported.danicampora
2015-02-13minimal: Allow to compile without defining MICROPY_HAL_H.Damien George
2015-02-13cc3200: Get bootloader compiling with changes to HAL.Damien George
2015-02-13stmhal: Make pybstdio usable by other ports, and use it.Damien George
Now all ports can use pybstdio.c to provide sys.stdin/stdout/stderr, so long as they implement mp_hal_stdin_* and mp_hal_stdout_* functions.
2015-02-13stmhal: Remove obsolete usbdev file.Damien George
2015-02-13stmhal: Coding style cleanup in usbd_cdc_msc_hid.c.Damien George
2015-02-13stmhal: Properly define pyb.usb_mode() semantics.Damien George
2015-02-13stmhal: Put CDC last in config descriptors to match with iface nums.Damien George
Apparently the order of interface numbers should be sequential and increasing in a config descriptor. So as to retain compatibility with Windows drivers for the CDC+MSC and CDC+HID modes, we move the CDC configs to the end of the descriptors, instead of changing the interface numbers. See PR #957 for background.
2015-02-13stmhal: Add "CDC" option to pyb.usb_mode, for CDC device only.Damien George
2015-02-13stmhal: Add Python-configurable USB HID mode.Damien George
Different HID modes can be configured in Python. You can either use predefined mouse or keyboard, or write your own report descriptor.
2015-02-13stmhal: Remove unused usbdev files, and move used ones up a dir.Damien George
The unused files are from the ST demos for different USB classes and are not needed for the stmhal port.
2015-02-13tools: Make gen-changelog.sh sort version strings correctly.Damien George