summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-02-13docs: Bump version to 1.3.10.v1.3.10Damien 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
2015-02-07unix-cpy: Fix compiler warning about unused variable.Damien George
2015-02-07py: Protect mp_parse and mp_compile with nlr push/pop block.Damien George
To enable parsing constants more efficiently, mp_parse should be allowed to raise an exception, and mp_compile can already raise a MemoryError. So these functions need to be protected by an nlr push/pop block. This patch adds that feature in all places. This allows to simplify how mp_parse and mp_compile are called: they now raise an exception if they have an error and so explicit checking is not needed anymore.
2015-02-07py: Put mp_sys_path, mp_sys_argv and gc_collected in mp_state_ctx_t.Damien George
Without mp_sys_path and mp_sys_argv in the root pointer section of the state, their memory was being incorrectly collected by GC.
2015-02-06cc3200: Add cc3200 port of MicroPython.danicampora
The port currently implements support for GPIO, RTC, ExtInt and the WiFi subsystem. A small file system is available in the serial flash. A bootloader which makes OTA updates possible, is also part of this initial implementation.
2015-02-06stmhal/adc.c: Fix calculation of read_core_vref()blmorris
There was a stray factor of 2 (VBAT_DIV) that looks like it was copied incorrectly from the read_core_vbat() function. The factor exists in read_core_vbat() because VBAT is measured through a 2:1 voltage divider. read_core_vref now returns values around 1.21V (assuming that external reference voltage is 3.3V) which is in line with the datasheet values. See comment at http://forum.micropython.org/viewtopic.php?f=6&t=533&p=2991#p2991
2015-02-06modffi: Add .addr() method to just get symbol address.Paul Sokolovsky
2015-02-05esp8266: modesp: Add status() function for connection status.Paul Sokolovsky
2015-02-04fix type errorLi lin
2015-02-03esp8266: modesp: Add disconnect() function to disconnect from WiFi AP.Paul Sokolovsky
2015-02-02extmod: Make ujson.loads raise exception if given empty string.Damien George
Addresses issue #1097.
2015-02-02tests: Disable float/cmath_fun.py for native emitter.Damien George
2015-02-02py: Make list.sort keep stack usage within O(log(N)) bound.Damien George
Also fix list.sort so it works with user-defined types, and parse the keyword arguments properly. Addresses issue #338.
2015-02-02tests: Add test for cmath module.Damien George
2015-02-02py: Fix cmath.log10; fix printing of complex number with negative imag.Damien George
2015-02-01esp8266: modesp: Add connect() function to connect to WiFi AP.Paul Sokolovsky
2015-01-31esp8266: Add "reset" target to Makefile.Paul Sokolovsky
Just always keep jumper in bootloader position. After flashing, uPy automatically executed. And to get back to bootloader, do "make reset".
2015-01-31esp8266: Update ROM address map to vendor SDK 0.9.5.Paul Sokolovsky
2015-01-31py: Add MICROPY_PY_ALL_SPECIAL_METHODS and __iadd__ special method under it.Paul Sokolovsky
2015-01-30py: Convert CR to LF and CR LF to LF in lexer.Damien George
Only noticeable difference is how newlines are encoded in triple-quoted strings. The behaviour now matches CPython3.
2015-01-29py: Implement Ellipsis object in native emitter.Damien George
2015-01-29tests: Add some tests to improve coverage.Damien George
2015-01-29unix: Add "coverage" target to do coverage testing using gcov.Damien George
2015-01-29py: Change vstr_null_terminate -> vstr_null_terminated_str, returns str.Damien George
2015-01-29tests: Make float/int_power.py pass on pyboard/single prec float.Damien George
2015-01-29tests: Add some tests to improve coverage.Damien George
Used gcov to find some parts of vm.c, runtime.c, obj.c that were not covered by any tests. Still need to use gcov more thoroughly.
2015-01-28py: Make REPL printing function print repr of object, not str.Damien George
Addresses issue #1014.