summaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAge
* py: Make inline assembler raise proper SyntaxError exception on error.Damien George2015-02-13
| | | | Also gives line number of location of error. Very useful!
* py: Add ldrex and strex to thumb2 inline assembler.Damien George2015-02-12
| | | | These are useful for implementing atomic lock operations.
* stmhal: Fix ADC multiplier from 4096 to 4095; optimise fp operation.Damien George2015-02-11
|
* modffi: Add toplevel func() function to create a function by pointer.Paul Sokolovsky2015-02-11
|
* stmhal: Add boot.py and main.py to qstr definitions, to save some RAM.Damien George2015-02-10
|
* py: Reuse value stack in VM WITH_CLEANUP opcode to reduce C-stack size.Damien George2015-02-10
| | | | Saves 8 bytes C-stack on stmhal and 16 bytes on unix x86.
* py: Add option to micropython.qstr_info() to dump actual qstrs.Damien George2015-02-10
|
* cc3200: Rename GPIO module to Pin.danicampora2015-02-09
| | | | | | | | | 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.
* py: Don't unnecessarily create a bound method.Damien George2015-02-09
|
* py: Allow subclass of native object to delegate to the native buffer_p.Damien George2015-02-09
| | | | Addresses issue #1109.
* py: Remove obsolete MP_F_LOAD_CONST_{INT,DEC} from emitnative.c.Damien George2015-02-09
|
* cc3200: Add bootmanager relocator to the repository.danicampora2015-02-09
| | | | | | | | 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.
* objstr: Fix bytes creation from array of long ints.Paul Sokolovsky2015-02-09
|
* py: Add MICROPY_OBJ_BASE_ALIGNMENT to help with 16-bit ports.Damien George2015-02-08
|
* stmhal: Change type of received chr from char to int.Damien George2015-02-08
|
* py: Initialise variables in mp_parse correctly, to satisfy gcc warning.Damien George2015-02-08
|
* py: Parse big-int/float/imag constants directly in parser.Damien George2015-02-08
| | | | | | | | | 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.
* py: Fix instance lookup, since object is not a real type.Damien George2015-02-08
|
* unix-cpy: Fix compiler warning about unused variable.Damien George2015-02-07
|
* py: Protect mp_parse and mp_compile with nlr push/pop block.Damien George2015-02-07
| | | | | | | | | | 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.
* py: Put mp_sys_path, mp_sys_argv and gc_collected in mp_state_ctx_t.Damien George2015-02-07
| | | | | Without mp_sys_path and mp_sys_argv in the root pointer section of the state, their memory was being incorrectly collected by GC.
* cc3200: Add cc3200 port of MicroPython.danicampora2015-02-06
| | | | | | | 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.
* stmhal/adc.c: Fix calculation of read_core_vref()blmorris2015-02-06
| | | | | | | 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
* modffi: Add .addr() method to just get symbol address.Paul Sokolovsky2015-02-06
|
* esp8266: modesp: Add status() function for connection status.Paul Sokolovsky2015-02-05
|
* fix type errorLi lin2015-02-04
|
* esp8266: modesp: Add disconnect() function to disconnect from WiFi AP.Paul Sokolovsky2015-02-03
|
* extmod: Make ujson.loads raise exception if given empty string.Damien George2015-02-02
| | | | Addresses issue #1097.
* tests: Disable float/cmath_fun.py for native emitter.Damien George2015-02-02
|
* py: Make list.sort keep stack usage within O(log(N)) bound.Damien George2015-02-02
| | | | | | | Also fix list.sort so it works with user-defined types, and parse the keyword arguments properly. Addresses issue #338.
* tests: Add test for cmath module.Damien George2015-02-02
|
* py: Fix cmath.log10; fix printing of complex number with negative imag.Damien George2015-02-02
|
* esp8266: modesp: Add connect() function to connect to WiFi AP.Paul Sokolovsky2015-02-01
|
* esp8266: Add "reset" target to Makefile.Paul Sokolovsky2015-01-31
| | | | | Just always keep jumper in bootloader position. After flashing, uPy automatically executed. And to get back to bootloader, do "make reset".
* esp8266: Update ROM address map to vendor SDK 0.9.5.Paul Sokolovsky2015-01-31
|
* py: Add MICROPY_PY_ALL_SPECIAL_METHODS and __iadd__ special method under it.Paul Sokolovsky2015-01-31
|
* py: Convert CR to LF and CR LF to LF in lexer.Damien George2015-01-30
| | | | | Only noticeable difference is how newlines are encoded in triple-quoted strings. The behaviour now matches CPython3.
* py: Implement Ellipsis object in native emitter.Damien George2015-01-29
|
* tests: Add some tests to improve coverage.Damien George2015-01-29
|
* unix: Add "coverage" target to do coverage testing using gcov.Damien George2015-01-29
|
* py: Change vstr_null_terminate -> vstr_null_terminated_str, returns str.Damien George2015-01-29
|
* tests: Make float/int_power.py pass on pyboard/single prec float.Damien George2015-01-29
|
* tests: Add some tests to improve coverage.Damien George2015-01-29
| | | | | 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.
* py: Make REPL printing function print repr of object, not str.Damien George2015-01-28
| | | | Addresses issue #1014.
* py: Change vstr so that it doesn't null terminate buffer by default.Damien George2015-01-28
| | | | | | | | | This cleans up vstr so that it's a pure "variable buffer", and the user can decide whether they need to add a terminating null byte. In most places where vstr is used, the vstr did not need to be null terminated and so this patch saves code size, a tiny bit of RAM, and makes vstr usage more efficient. When null termination is needed it must be done explicitly using vstr_null_terminate.
* tests: Add testcase for bytes() on values in range 128-255.Paul Sokolovsky2015-01-28
|
* py: bytes(): Make sure we add values as bytes, not as chars.Paul Sokolovsky2015-01-28
|
* py: Remove duplicated mp_obj_str_make_new function from objstrunicode.c.Damien George2015-01-28
|
* py: Be more precise about unicode type and disabled unicode behaviour.Damien George2015-01-28
|
* stmhal: Remove unnecessary #include "systick.h" from pyexec.c.Damien George2015-01-28
| | | | Makes pyexec.c more re-usable for other ports.