summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-11-17py/mpstate: Make mp_pending_exception volatile.Damien George
It can change asynchronously.
2015-11-17py/modmath: Make log2, log10 and hyperbolic funcs be SPECIAL_FUNCTIONS.Damien George
Will be included only when MICROPY_PY_MATH_SPECIAL_FUNCTIONS is enabled. Also covers cmath module (but only log10 is there at the moment).
2015-11-17py: Implement default and star args for lambdas.Damien George
2015-11-17py/compile: Don't unnecessarily save state when compiling param list.Damien George
Parameter lists can't be nested so there is no need to save the global state when compiling them.
2015-11-16cc3200: Unmount all user file systems after a soft reset.danicampora
2015-11-17unix: Add "uselect" module, with poll() function.Paul Sokolovsky
Underlyingly, uses standard POSIX poll() for portability.
2015-11-16unix/input: Switch to POSIX I/O for history reading/writing.Paul Sokolovsky
2015-11-15tools: Update to upip 0.6.2. Fixes issue due to MacOSX undocumented behavior.Paul Sokolovsky
2015-11-14tools: Update upip to 0.6.1. Fixes normal installs without -p switch.Paul Sokolovsky
2015-11-14unix/modos: getenv(): Handle non-existing envvar correctly.Paul Sokolovsky
2015-11-14stmhal/modmachine: Initial attempt to add I2C & SPI classes.Paul Sokolovsky
In new hardware API, these classes implement master modes of interfaces, and "mode" parameter is not accepted. Trying to implement new HW API in terms of older pyb module leaves variuos corner cases: In new HW API, I2C(1) means "I2C #1 in master mode" (? depends on interpretation), while in old API, it means "I2C #1, with no settings changes". For I2C class, it's easy to make mode optional, because that's last positional param, but for SPI, there's "baudrate" after it (which is inconsistent with I2C, which requires "baudrate" to be kwonly-arg).
2015-11-14unix/modos: Add Windows workaround for mkdir().Paul Sokolovsky
2015-11-14windows: Define ssize_t and use renamed mphal headerstijn
This fixes the build after changes in [66fd3e4] and [3a6b3d2]
2015-11-14py/modmath: Don't create symbol entry for expm1() if not needed.Paul Sokolovsky
2015-11-14py/modmath: Make expm1() be in MICROPY_PY_MATH_SPECIAL_FUNCTIONS.Paul Sokolovsky
2015-11-14tools: Update upip to 0.6.Paul Sokolovsky
Removes FFI dependency, instead uses builtin os module. Thus can work on systems where dynamic library loading is not available.
2015-11-13unix/modos: Add mkdir().Paul Sokolovsky
Dependency of upip.
2015-11-13unix/modos: Add getenv().Paul Sokolovsky
Dependency of upip.
2015-11-13unix/main: Remove stray mp_printf() from previous commit.Paul Sokolovsky
2015-11-13unix: Use standard mphalport.h header.Paul Sokolovsky
This also unbreaks "make minimal".
2015-11-13main.c: Switch stderr printing from ANSI C to native POSIX.Paul Sokolovsky
2015-11-13unix: Allow to override MICROPY_PY_MATH_SPECIAL_FUNCTIONS from command-line.Paul Sokolovsky
2015-11-13unix/mpconfigport: Move log2() definition to modmath.c.Paul Sokolovsky
It's safer to define it where it's used, defining it for all source files may lead to hard to diagnose conflicts in corner cases.
2015-11-13py: Allow to import compiled bytecode files.Damien George
2015-11-13py: Add MICROPY_PERSISTENT_CODE_LOAD/SAVE to load/save bytecode.Damien George
MICROPY_PERSISTENT_CODE must be enabled, and then enabling MICROPY_PERSISTENT_CODE_LOAD/SAVE (either or both) will allow loading and/or saving of code (at the moment just bytecode) from/to a .mpy file.
2015-11-13py: Add MICROPY_PERSISTENT_CODE so code can persist beyond the runtime.Damien George
Main changes when MICROPY_PERSISTENT_CODE is enabled are: - qstrs are encoded as 2-byte fixed width in the bytecode - all pointers are removed from bytecode and put in const_table (this includes const objects and raw code pointers) Ultimately this option will enable persistence for not just bytecode but also native code.
2015-11-13py: Add constant table to bytecode.Damien George
Contains just argument names at the moment but makes it easy to add arbitrary constants.
2015-11-13py: Put all bytecode state (arg count, etc) in bytecode.Damien George
2015-11-13py: Reorganise bytecode layout so it's more structured, easier to edit.Damien George
2015-11-13unix/main: Use builtin unichar_isdigit() in preference if libc's.Paul Sokolovsky
Less dependencies.
2015-11-13tests/jni: Add test for working with container of List interface.Paul Sokolovsky
2015-11-11unix/modjni: Add missing get_jclass_name() function.Paul Sokolovsky
2015-11-10docs: Fix a typo in the REPL documentation.Dave Hylands
2015-11-10lib/utils/printf: Move from stmhal/ .Paul Sokolovsky
This file contains various MicroPython-specific helper functions, so isn't good fit for lib/libc/.
2015-11-10windows: Allow specifying the python executable to use for msvc buildsstijn
This defaults to 'python' but can be now overridden if needed
2015-11-10Fix project file for Visual Studio 2015omtinez
2015-11-09docs/select: Document POLLIN/OUT/ERR/HUP.Paul Sokolovsky
2015-11-09stmhal/moduselect: Expose POLLIN/OUT/ERR/HUP constants.Paul Sokolovsky
This makes select.poll() interface fully compatible with CpYthon. Also, make their numeric values of these options compatible with Linux (and by extension, with iBCS2 standard, which jopefully means compatibility with other Unices too).
2015-11-09py/emitinlinethumb: Allow to compile with -Wsign-compare.Damien George
2015-11-09py/asmthumb: Allow to compile with -Wsign-compare and -Wunused-parameter.Damien George
2015-11-09lib/pyexec: Move header pyexec.h from stmhal directory.Damien George
2015-11-09py/objint_longlong: Instead of assert, throw OverflowError.Paul Sokolovsky
2015-11-08cc3200: FatFS configuration moved to the library folder.Alex March
Port specific settinigs defined in mpconfigport. FreeRTOS and semphr headers added to define SemaphoreHandle_t for the SYNC_T.
2015-11-08stmhal: FatFS configuration moved to the library folder.Alex March
Port specific settings defined in mpconfigport.
2015-11-08lib/fatfs: Unify fatfs configuration.Alex March
- A single ffcon.h file to configure fatfs settings across ports. - A single diskio.h file with common drive definitions. - Removed now reduntand ffconf_template.h.
2015-11-08unix/gccollect: Fallback to setjmp-based register fetching automatically.Paul Sokolovsky
Now, if we build for an architecture which doesn't have dedicated support for getting registers for GC scanning, fallback to setjmp-based method automatically. It's still possible to force setjmp-based implementation on archs with dedicated support (e.g. for testing, or for peculiar calling conventions/optimizations).
2015-11-07stmhal: Fix RTC code to work on the F7Dave Hylands
2015-11-07py: Clear finalizer flag when calling gc_free.Dave Hylands
Currently, the only place that clears the bit is in gc_collect. So if a block with a finalizer is allocated, and subsequently freed, and then the block is reallocated with no finalizer then the bit remains set. This could also be fixed by having gc_alloc clear the bit, but I'm pretty sure that free is called way less than alloc, so doing it in free is more efficient.
2015-11-07stmhal: Print more information at HardFault time.Dave Hylands
2015-11-07tools/pyboard.py: Don't add terminating \x04 character to stdout output.Paul Sokolovsky