summaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAge
* docs: Add CPy diff note for print_exception; embellish sys.platform.Damien George2014-12-19
|
* py: Add execfile function (from Python 2); enable in stmhal port.Damien George2014-12-19
| | | | Adds just 60 bytes to stmhal binary. Addresses issue #362.
* unix/windows: Make sure that process exit code is portable 8-bit value.Paul Sokolovsky2014-12-19
| | | | This fixes FORCED_EXIT internal flag leaking into Windows exit code.
* lib/libm: Add acosh, asinh, atanh, tan; get working with stmhal.Damien George2014-12-18
| | | | | | | | | acoshf, asinhf, atanhf were added from musl. mathsincos.c was split up into its original, separate files (from newlibe-nano-2). tan was added. All of the important missing float functions are now implemented, and pyboard now passes tests/float/math_fun.py (finally!).
* tests: Get misc/print_exception and pyb/spi working on pyboard.Damien George2014-12-18
|
* tests: sha256: skip test if uhashlib module is not available.Paul Sokolovsky2014-12-18
|
* Fix leds.rstGregory2014-12-18
| | | N (mod 4) is 0..3
* unix: Rename "time" module to "utime" to allow extensibility.Paul Sokolovsky2014-12-17
| | | | Name choosen per latest conventions and for compatibiity with stmhal port.
* docs: Define more clearly the behaviour of LED methods.Damien George2014-12-16
| | | | Addresses issue #1006.
* modffi: Support void (None) return value for Python callback functions.Paul Sokolovsky2014-12-16
|
* tests: Add testcase for ffi callbacks.Paul Sokolovsky2014-12-15
|
* modffi: 64-bit cleanness (fixes actual bug in callback arg handling).Paul Sokolovsky2014-12-15
|
* asmarm: Fix bug with encoding small negative ints using MVN instruction.Paul Sokolovsky2014-12-14
|
* unix: Enable Thumb2 and ARM emitters by default on corresponding archs.Paul Sokolovsky2014-12-14
|
* run-tests: Skip native/viper tests based on prefix.Paul Sokolovsky2014-12-13
| | | | | Otherwise, new tests are forgotten to be added to explicit lists. Issue found running on Debian/ARM.
* py: Fix optimised for-loop compiler so it follows proper semantics.Damien George2014-12-12
| | | | | | | | | You can now assign to the range end variable and the for-loop still works correctly. This fully addresses issue #565. Also fixed a bug with the stack not being fully popped when breaking out of an optimised for-loop (and it's actually impossible to write a test for this case!).
* py: Fix label printing in showbc; print sp in vm trace.Damien George2014-12-12
|
* run-tests: Reset MICROPYPATH, to make sure tests use only builtin modules.Paul Sokolovsky2014-12-12
|
* run-tests: PEP8 fix.Paul Sokolovsky2014-12-12
|
* tests: Activate recursive_data.py test, now that io.StringIO is available.Paul Sokolovsky2014-12-12
|
* tests: Add test for semantics of for-loop that optimisation can break.Damien George2014-12-11
|
* py: Fix a semantic issue with range optimisation.Damien George2014-12-11
| | | | | | | Now you can assign to the range variable within the for loop and it will still work. Partially addresses issue #565.
* tests: Disable print_exception test when using native emitter.Damien George2014-12-11
|
* tests: Fix print_exception test and re-enable it on Travis CI.Damien George2014-12-11
| | | | | | Issue was with uPy: on local machine with micropython-lib installed, io module is available. Not the case on Travis CI, where only _io module is available in uPy.
* run-tests: Skip print_exception.py on TravisCI, as it irreproducibly fails.Paul Sokolovsky2014-12-11
| | | | TODO: Figure out what's wrong on Travis.
* py: Tidy up a few function declarations.Damien George2014-12-10
|
* py: Remove static from definition of pfenv_printf.Damien George2014-12-10
| | | | It's used by stmhal, but not unix.
* py: Make functions static where appropriate.Damien George2014-12-10
|
* unix: add unlink function to os moduleNikita Nazarenko2014-12-10
|
* tests: Fix print_exception.py to work on Travis CI.Damien George2014-12-10
|
* tests: Add test for print_exception() function.Paul Sokolovsky2014-12-10
|
* docs: Add sys.print_exception().Paul Sokolovsky2014-12-10
|
* py: Fix function type: () -> (void).Damien George2014-12-10
|
* py: Allow builtins to be overridden.Damien George2014-12-09
| | | | | | | | | | | | | | This patch adds a configuration option (MICROPY_CAN_OVERRIDE_BUILTINS) which, when enabled, allows to override all names within the builtins module. A builtins override dict is created the first time the user assigns to a name in the builtins model, and then that dict is searched first on subsequent lookups. Note that this implementation doesn't allow deleting of names. This patch also does some refactoring of builtins code, creating the modbuiltins.c file. Addresses issue #959.
* drivers, nrf24: Nonblocking send now uses send_start and send_done.adminpete2014-12-09
|
* drivers, nrf24: Nonblocking send now done by generator.adminpete2014-12-09
|
* drivers, nrf24: Add nonblocking send option etc.Peter Hinch2014-12-09
|
* stmhal: Allow SPI.init to specify prescaler directly; improve SPI docs.Damien George2014-12-08
|
* stmhal: Enhance pyb.freq to configure bus (AHB, APB1, APB2) freqs.Damien George2014-12-08
| | | | | This is useful if you need precise control over the speed of peripherals (eg SPI clock).
* modsys: Add sys.print_exception(exc, file=sys.stdout) function.Paul Sokolovsky2014-12-08
| | | | | | | | | | | | The function is modeled after traceback.print_exception(), but unbloated, and put into existing module to save overhead on adding another module. Compliant traceback.print_exception() is intended to be implemented in micropython-lib in terms of sys.print_exception(). This change required refactoring mp_obj_print_exception() to take pfenv_t interface arguments. Addresses #751.
* stmhal: Allow network, uselect, usocket mods to be used by other ports.Damien George2014-12-07
| | | | | | Remove include of stm32f4xx_hal.h, replace by include of MICROPY_HAL_H where needed, and make it compile without float support. This makes these 3 modules much more generic and usable by other ports.
* windows: define __USE_MINGW_ANSI_STDIO for all Windows compilers.Damien George2014-12-06
|
* stmhal: Make SPI bus use DMA for transfers.Damien George2014-12-06
| | | | Uses DMA if interrupts are enabled, polling if they are disabled.
* esp8266/README: Fix typos.Paul Sokolovsky2014-12-06
|
* py: Rename mp_obj_int_get to mp_obj_int_get_truncated; fix struct.pack.Damien George2014-12-05
| | | | | | | | | | | mp_obj_int_get_truncated is used as a "fast path" int accessor that doesn't check for overflow and returns the int truncated to the machine word size, ie mp_int_t. Use mp_obj_int_get_truncated to fix struct.pack when packing maximum word sized values. Addresses issues #779 and #998.
* py: Fix printing of size_t entity; fix qemu-arm for changes to lexer.Damien George2014-12-05
|
* unix-cpy: Fix build due to change in lexer API.Damien George2014-12-05
|
* py: Optimise lexer by exposing lexer type.Damien George2014-12-05
| | | | | | | | | mp_lexer_t type is exposed, mp_token_t type is removed, and simple lexer functions (like checking current token kind) are now inlined. This saves 784 bytes ROM on 32-bit unix, 348 bytes on stmhal, and 460 bytes on bare-arm. It also saves a tiny bit of RAM since mp_lexer_t is a bit smaller. Also will run a bit more efficiently.
* docs: uzlib: Typo fix.Paul Sokolovsky2014-12-05
|
* docs: Add quick docs for uzlib.Paul Sokolovsky2014-12-05
|