aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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
2015-02-09cc3200: Add bootmanager relocator to the repository.danicampora
This file was accidentally skipped when the cc3200 port was added to the tree since binary files are by default igonerd by git. This is a small precompiled piece of software provided by TI that simply relocates the boot manager to the beginning of the RAM space after it has been written by the ROM bootloader.
2015-02-09objstr: Fix bytes creation from array of long ints.Paul Sokolovsky
2015-02-08py: Add MICROPY_OBJ_BASE_ALIGNMENT to help with 16-bit ports.Damien George
2015-02-08stmhal: Change type of received chr from char to int.Damien George
2015-02-08py: Initialise variables in mp_parse correctly, to satisfy gcc warning.Damien George
2015-02-08py: Parse big-int/float/imag constants directly in parser.Damien George
Previous to this patch, a big-int, float or imag constant was interned (made into a qstr) and then parsed at runtime to create an object each time it was needed. This is wasteful in RAM and not efficient. Now, these constants are parsed straight away in the parser and turned into objects. This allows constants with large numbers of digits (so addresses issue #1103) and takes us a step closer to #722.
2015-02-08py: Fix instance lookup, since object is not a real type.Damien George