summaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAge
* py/mpstate: Make mp_pending_exception volatile.Damien George2015-11-17
| | | | It can change asynchronously.
* py/modmath: Make log2, log10 and hyperbolic funcs be SPECIAL_FUNCTIONS.Damien George2015-11-17
| | | | | | Will be included only when MICROPY_PY_MATH_SPECIAL_FUNCTIONS is enabled. Also covers cmath module (but only log10 is there at the moment).
* py: Implement default and star args for lambdas.Damien George2015-11-17
|
* py/compile: Don't unnecessarily save state when compiling param list.Damien George2015-11-17
| | | | | Parameter lists can't be nested so there is no need to save the global state when compiling them.
* cc3200: Unmount all user file systems after a soft reset.danicampora2015-11-16
|
* unix: Add "uselect" module, with poll() function.Paul Sokolovsky2015-11-17
| | | | Underlyingly, uses standard POSIX poll() for portability.
* unix/input: Switch to POSIX I/O for history reading/writing.Paul Sokolovsky2015-11-16
|
* tools: Update to upip 0.6.2. Fixes issue due to MacOSX undocumented behavior.Paul Sokolovsky2015-11-15
|
* tools: Update upip to 0.6.1. Fixes normal installs without -p switch.Paul Sokolovsky2015-11-14
|
* unix/modos: getenv(): Handle non-existing envvar correctly.Paul Sokolovsky2015-11-14
|
* stmhal/modmachine: Initial attempt to add I2C & SPI classes.Paul Sokolovsky2015-11-14
| | | | | | | | | | | | | | 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).
* unix/modos: Add Windows workaround for mkdir().Paul Sokolovsky2015-11-14
|
* windows: Define ssize_t and use renamed mphal headerstijn2015-11-14
| | | | This fixes the build after changes in [66fd3e4] and [3a6b3d2]
* py/modmath: Don't create symbol entry for expm1() if not needed.Paul Sokolovsky2015-11-14
|
* py/modmath: Make expm1() be in MICROPY_PY_MATH_SPECIAL_FUNCTIONS.Paul Sokolovsky2015-11-14
|
* tools: Update upip to 0.6.Paul Sokolovsky2015-11-14
| | | | | Removes FFI dependency, instead uses builtin os module. Thus can work on systems where dynamic library loading is not available.
* unix/modos: Add mkdir().Paul Sokolovsky2015-11-13
| | | | Dependency of upip.
* unix/modos: Add getenv().Paul Sokolovsky2015-11-13
| | | | Dependency of upip.
* unix/main: Remove stray mp_printf() from previous commit.Paul Sokolovsky2015-11-13
|
* unix: Use standard mphalport.h header.Paul Sokolovsky2015-11-13
| | | | This also unbreaks "make minimal".
* main.c: Switch stderr printing from ANSI C to native POSIX.Paul Sokolovsky2015-11-13
|
* unix: Allow to override MICROPY_PY_MATH_SPECIAL_FUNCTIONS from command-line.Paul Sokolovsky2015-11-13
|
* unix/mpconfigport: Move log2() definition to modmath.c.Paul Sokolovsky2015-11-13
| | | | | 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.
* py: Allow to import compiled bytecode files.Damien George2015-11-13
|
* py: Add MICROPY_PERSISTENT_CODE_LOAD/SAVE to load/save bytecode.Damien George2015-11-13
| | | | | | 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.
* py: Add MICROPY_PERSISTENT_CODE so code can persist beyond the runtime.Damien George2015-11-13
| | | | | | | | | | | 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.
* py: Add constant table to bytecode.Damien George2015-11-13
| | | | | Contains just argument names at the moment but makes it easy to add arbitrary constants.
* py: Put all bytecode state (arg count, etc) in bytecode.Damien George2015-11-13
|
* py: Reorganise bytecode layout so it's more structured, easier to edit.Damien George2015-11-13
|
* unix/main: Use builtin unichar_isdigit() in preference if libc's.Paul Sokolovsky2015-11-13
| | | | Less dependencies.
* tests/jni: Add test for working with container of List interface.Paul Sokolovsky2015-11-13
|
* unix/modjni: Add missing get_jclass_name() function.Paul Sokolovsky2015-11-11
|
* docs: Fix a typo in the REPL documentation.Dave Hylands2015-11-10
|
* lib/utils/printf: Move from stmhal/ .Paul Sokolovsky2015-11-10
| | | | | This file contains various MicroPython-specific helper functions, so isn't good fit for lib/libc/.
* windows: Allow specifying the python executable to use for msvc buildsstijn2015-11-10
| | | | This defaults to 'python' but can be now overridden if needed
* Fix project file for Visual Studio 2015omtinez2015-11-10
|
* docs/select: Document POLLIN/OUT/ERR/HUP.Paul Sokolovsky2015-11-09
|
* stmhal/moduselect: Expose POLLIN/OUT/ERR/HUP constants.Paul Sokolovsky2015-11-09
| | | | | | 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).
* py/emitinlinethumb: Allow to compile with -Wsign-compare.Damien George2015-11-09
|
* py/asmthumb: Allow to compile with -Wsign-compare and -Wunused-parameter.Damien George2015-11-09
|
* lib/pyexec: Move header pyexec.h from stmhal directory.Damien George2015-11-09
|
* py/objint_longlong: Instead of assert, throw OverflowError.Paul Sokolovsky2015-11-09
|
* cc3200: FatFS configuration moved to the library folder.Alex March2015-11-08
| | | | | Port specific settinigs defined in mpconfigport. FreeRTOS and semphr headers added to define SemaphoreHandle_t for the SYNC_T.
* stmhal: FatFS configuration moved to the library folder.Alex March2015-11-08
| | | | Port specific settings defined in mpconfigport.
* lib/fatfs: Unify fatfs configuration.Alex March2015-11-08
| | | | | | - 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.
* unix/gccollect: Fallback to setjmp-based register fetching automatically.Paul Sokolovsky2015-11-08
| | | | | | | | 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).
* stmhal: Fix RTC code to work on the F7Dave Hylands2015-11-07
|
* py: Clear finalizer flag when calling gc_free.Dave Hylands2015-11-07
| | | | | | | | | | | 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.
* stmhal: Print more information at HardFault time.Dave Hylands2015-11-07
|
* tools/pyboard.py: Don't add terminating \x04 character to stdout output.Paul Sokolovsky2015-11-07
|