summaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAge
* py: Comment exc_state member from mp_obj_gen_instance_t as it gives troublestijn2014-05-05
| | | | | | | ...to some compilers who can't process 2 zero-sized arrays in structs. It's never referenced directly anyway. See disussion on #568 as well.
* py-version.sh: Use --always option of git describe.Paul Sokolovsky2014-05-05
|
* Merge pull request #571 from dhylands/fix-extint-docDamien George2014-05-05
|\ | | | | Change references (in comments) of pyb.GPIO to be pyb.Pin
| * Change references (in comments) of pyb.GPIO to be pyb.PinDave Hylands2014-05-05
|/ | | | | The documentation at http://micropython.org/doc/module/pyb/ExtInt should also be updated.
* examples, SDdatalogger: Add more comments; reduce power consumption.Damien George2014-05-05
|
* Merge pull request #566 from turbinenreiter/masterDamien George2014-05-05
|\ | | | | added SDdatalogger example
| * deleted garbageSebastian Plamauer2014-05-04
| |
| * created SDdatalogger exampleSebastian Plamauer2014-05-04
| |
* | py: Turn down amount of RAM parser and compiler use.Damien George2014-05-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are 2 locations in parser, and 1 in compiler, where memory allocation is not precise. In the parser it's the rule stack and result stack, in the compiler it's the array for the identifiers in the current scope. All other mallocs are exact (ie they don't allocate more than is needed). This patch adds tuning options (MP_ALLOC_*) to mpconfig.h for these 3 inexact allocations. The inexact allocations in the parser should actually be close to logarithmic: you need an exponentially larger script (absent pathological cases) to use up more room on the rule and result stacks. As such, the default allocation policy for these is now to start with a modest sized stack, but grow only in small increments. For the identifier arrays in the compiler, these now start out quite small (4 entries, since most functions don't have that many ids), and grow incrementally by 6 (since if you have more ids than 4, you probably have quite a few more, but it wouldn't be exponentially more). Partially addresses issue #560.
* | tests/bench/var: Add tests for class/instance var access.Paul Sokolovsky2014-05-05
| | | | | | | | | | Also compared with method abstraction for accessing instance vars - it's more than 3 times slower than accessing var directly.
* | tests: Add framework for comparative benchmarking.Paul Sokolovsky2014-05-05
| | | | | | | | | | | | | | | | | | | | Motivation is optimizing handling of various constructs as well as understanding which constructs are more efficient in MicroPython. More info: http://forum.micropython.org/viewtopic.php?f=3&t=77 Results are wildly unexpected. For example, "optimization" of range iteration into while loop makes it twice as slow. Generally, the more bytecodes, the slower the code.
* | py-version.sh: Make it work in case no git tag is present.Paul Sokolovsky2014-05-05
| |
* | py, unix: Add -v option, print bytecode dump if used.Paul Sokolovsky2014-05-05
| | | | | | | | | | | | | | | | | | | | This will work if MICROPY_DEBUG_PRINTERS is defined, which is only for unix/windows ports. This makes it convenient to user uPy normally, but easily get bytecode dump on the spot if needed, without constant recompiles back and forth. TODO: Add more useful debug output, adjust verbosity level on which specifically bytecode dump happens.
* | showbc: Quote block name, so it was easily visible.Paul Sokolovsky2014-05-04
|/
* stmhal: Document physical pins for SPI, I2C, UART busses.Damien George2014-05-04
|
* tests, pyb: Add 'import pyb' when needed.Damien George2014-05-04
|
* unix: Remove test class and code.Damien George2014-05-04
|
* Merge pull request #563 from turbinenreiter/patch-2Damien George2014-05-04
|\ | | | | updated to use new pyb.Accel() object
| * updated to use new pyb.Accel() objectSebastian Plamauer2014-05-04
|/
* Merge pull request #561 from turbinenreiter/patch-1Damien George2014-05-04
|\ | | | | updated to fit new acceleration and time/millis
| * updated to fit new acceleration and time/millisSebastian Plamauer2014-05-04
|/ | | | Changed pyb.accel() and pyb.time() to the new pyb.Accel() object and pyb.millis() function. Also shortened the loop so the writing is finished before the USB connection messes things up.
* tools: In build-stm-latest, replace git hash with git tag.Damien George2014-05-04
|
* Add license header to (almost) all files.Damien George2014-05-03
| | | | | | | Blanket wide to all .c and .h files. Some files originating from ST are difficult to deal with (license wise) so it was left out of those. Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
* Merge pull request #535 from pfalcon/blurbDamien George2014-05-03
|\ | | | | Proposed license/copyright file header.
| * py: Add copyright/license header to each file.Paul Sokolovsky2014-05-01
| |
* | Merge branch 'stinos-mingw-float-printf'Damien George2014-05-03
|\ \
| * | windows: Argument to () function should be (void).Damien George2014-05-03
| | |
| * | Merge branch 'mingw-float-printf' of github.com:stinos/micropython into ↵Damien George2014-05-03
|/| | | | | | | | | | | stinos-mingw-float-printf
| * | mingw: Fix number of exponent digits in floating point formattingstijn2014-05-03
| | | | | | | | | | | | | | | | | | | | | By default mingw outputs 3 digits instead of the standard 2 so all float tests using printf fail. Using setenv at the start of the program fixes this. To accomodate calling platform specific initialization a MICROPY_MAIN_INIT_FUNC macro is used which is called in mp_init()
* | | py, stream: Implement readlines for a stream.Damien George2014-05-03
| | |
* | | Merge pull request #557 from cjbarnes18/device_id_in_deployDamien George2014-05-03
|\ \ \ | | | | | | | | Add device ID to deploy make target for stmhal.
| * | | Add device ID to deploy make target for stmhal.Craig Barnes2014-05-03
| |/ /
* / / py: Add --dirty flag to git describe.Damien George2014-05-03
|/ /
* | Don't print git hash as well as git tag in banner.v1.0Damien George2014-05-03
| |
* | Merge branch 'master' of github.com:micropython/micropythonDamien George2014-05-03
|\ \
| * \ Merge pull request #554 from stinos/mingw-realpathPaul Sokolovsky2014-05-03
| |\ \ | | | | | | | | mingw: Add implementation of realpath()
| | * | mingw: Add implementation of realpath()stijn2014-05-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The mingw port used _fullpath() until now, but the behaviour is not exactly the same as realpath()'s on unix; major difference being that it doesn't return an error for non-existing files, which would bypass main's error checking and bail out without any error message. Also realpath() will return forward slashes only since main() relies on that.
* | | | py: Print tag/version/git describe in uPy banner.Damien George2014-05-03
|/ / /
* | | Merge pull request #555 from lurch/patch-1v1.0-rc1Damien George2014-05-03
|\ \ \ | | | | | | | | RTC doc fix
| * | | Fix incorrect fix ;)Andrew Scheller2014-05-03
| | | |
| * | | Updated doc fixAndrew Scheller2014-05-03
| | | |
| * | | RTC doc fixAndrew Scheller2014-05-03
| | | |
* | | | stmhal: Enable cmath module.Damien George2014-05-03
| | | |
* | | | stmhal: Add .gitignore to ignore the new build dir names.Damien George2014-05-03
| | | |
* | | | tools: pyboard.py now acts as a command-line program to run scripts.Damien George2014-05-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | You can run a local script on the pyboard using: python pyboard.py test.py where test.py is the local script you want to run.
* | | | stmhal: Change names: flash to firmware, flashboard to deploy.Damien George2014-05-03
| | | | | | | | | | | | | | | | | | | | | | | | Since firmware lives in a build directory which already specifies the board name, no real reason to also have the firmware have the board name.
* | | | stmhal: Default build directory now includes board name.Damien George2014-05-03
| | | | | | | | | | | | | | | | BUILD is build-$(BOARD) by default.
* | | | stmhal: Wrap CC3000 driver in MICROPY_HW_ENABLE_CC3K.Damien George2014-05-03
|/ / / | | | | | | | | | | | | | | | This renames MICROPY_HW_HAS_WLAN to MICROPY_HW_ENABLE_CC3K (since it's a driver, not a board feature) and wraps all CC3000 code in this #if. It's disabled for all boards.
* | | py, objtype.c: Rename class_ to instance_ following change of typedef.Damien George2014-05-03
| | | | | | | | | | | | This follows up 0a7e01ae3c529fddf79dc5c71bf7e43cff3f9fa0.
* | | unix, file.c: adhere to coding conventions.Damien George2014-05-03
| | |