aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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
2015-02-13docs: Bump version to 1.3.10.Damien George
2015-02-13stmhal: Properly deinit timer object.Damien George
Addresses issue #1113.
2015-02-13py: Implement clz and rbit for inline Thumb assembler.Damien George
2015-02-13py: Implement sdiv/udiv for inline Thumb assembler.Damien George
2015-02-13py: Implement push/pop for inline Thumb assembler.Damien George
2015-02-13py: Expose compile.c:list_get as mp_parse_node_extract_list.Damien George
2015-02-13py: Make inline assembler raise proper SyntaxError exception on error.Damien George
Also gives line number of location of error. Very useful!
2015-02-12py: Add ldrex and strex to thumb2 inline assembler.Damien George
These are useful for implementing atomic lock operations.
2015-02-11stmhal: Fix ADC multiplier from 4096 to 4095; optimise fp operation.Damien George
2015-02-11modffi: Add toplevel func() function to create a function by pointer.Paul Sokolovsky
2015-02-10stmhal: Add boot.py and main.py to qstr definitions, to save some RAM.Damien George
2015-02-10py: Reuse value stack in VM WITH_CLEANUP opcode to reduce C-stack size.Damien George
Saves 8 bytes C-stack on stmhal and 16 bytes on unix x86.
2015-02-10py: Add option to micropython.qstr_info() to dump actual qstrs.Damien George
2015-02-09cc3200: Rename GPIO module to Pin.danicampora
This change helps making the cc3200 port API a bit closer to stmhal. The ramaining differences are due to the specific hardware details of each chip. One feature that has been deliberately disabled is the possibility to add custom names and custom pin mappings. Those features are nice and convenient, but in this port, code size is a major concern.
2015-02-09py: Don't unnecessarily create a bound method.Damien George
2015-02-09py: Allow subclass of native object to delegate to the native buffer_p.Damien George
Addresses issue #1109.
2015-02-09py: Remove obsolete MP_F_LOAD_CONST_{INT,DEC} from emitnative.c.Damien George