summaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAge
* Merge pull request #547 from cjbarnes18/pyboard_module_fixesDamien George2014-05-03
|\ | | | | Fix pyboard.py tests.
| * Fix pyboard.py tests.Craig Barnes2014-05-02
| |
* | unix-cpy: Put mpconfig.h before all other headers.Damien George2014-05-02
| |
* | Merge branch 'master' of github.com:micropython/micropythonDamien George2014-05-02
|\ \
| * | bare-arm, qemu-arm: Make "mpconfig.h" be first included, as other headers ↵Paul Sokolovsky2014-05-02
| | | | | | | | | | | | depend on it.
| * | unix,stmhal: Make "mpconfig.h" be first included, as other headers depend on it.Paul Sokolovsky2014-05-02
| | |
| * | py, unix: Make "mpconfig.h" be first included, as other headers depend on it.Paul Sokolovsky2014-05-02
| | | | | | | | | | | | Specifically, nlr.h does.
| * | objtype: Work around stupid strict aliasing check.Paul Sokolovsky2014-05-02
| | |
* | | stmhal: Add documentation for DAC and Timer classes.Damien George2014-05-02
|/ /
* / Add shell script to automatically build stmhal/ for all pyboards.Damien George2014-05-02
|/
* tests: Add testcases for catching user Exception subclasses.Paul Sokolovsky2014-05-02
|
* objexcept: Support tracebacks for user Exception subclasses.Paul Sokolovsky2014-05-02
|
* objtype: Rename mp_obj_class_t -> mp_obj_instance_t and move to local header.Paul Sokolovsky2014-05-02
| | | | TODO: Rename methods.
* objtype: .print() Exception instances in adhoc way.Paul Sokolovsky2014-05-02
| | | | This is ugly, just as expected.
* Merge pull request #542 from dhylands/fix-pinDamien George2014-05-01
|\ | | | | Fix pin initialization when a mode argument is provided
| * Fix pin initialization when a mode argument is providedDave Hylands2014-05-01
| |
* | Merge pull request #536 from lurch/patch-1Damien George2014-05-01
|\ \ | | | | | | Add flashboard target to the stmhal Makefile to run dfu-util
| * | Add flashboard target to the stmhal Makefile to run dfu-utilAndrew Scheller2014-05-01
| | | | | | | | | | | | Which allows you to run "make -C stmhal flashboard" from the top-level directory. Also ties in nicely with my configurable BUILD directory from #506
* | | Merge pull request #544 from lurch/fix-minmaxPaul Sokolovsky2014-05-01
|\ \ \ | | | | | | | | Fix the builtin min() and max() functions (and add tests).
| * | | Fix the builtin min() and max() functions (and add tests).Andrew Scheller2014-05-01
| | |/ | |/| | | | | | | Fixes #539
* | | objfun: More debug logging.Paul Sokolovsky2014-05-01
| | |
* | | objgenerator: Fix check for too few args passed to gen function.Paul Sokolovsky2014-05-01
| | |
* | | objgenerator: .print(): Output real underlying function name.Paul Sokolovsky2014-05-01
|/ /
* | py: Add tentative scheme for error messages configuration.Paul Sokolovsky2014-05-01
| |
* | objfun: Add function name accessor and .print slot method.Paul Sokolovsky2014-05-01
|/
* Merge branch 'master' of github.com:micropython/micropythonDamien George2014-04-30
|\
| * Merge pull request #528 from pfalcon/native-subclass1Damien George2014-04-30
| |\ | | | | | | Initial support for subclassing native types
| | * tests: Add test for calling inherited native method on subclass.Paul Sokolovsky2014-04-30
| | |
| | * objtype: Support calling normal methods inherited from native base class.Paul Sokolovsky2014-04-30
| | | | | | | | | | | | | | | | | | | | | | | | Biggest part of this support is refactoring mp_obj_class_lookup() to return standard "bound member" pair (mp_obj_t[2]). Actual support of inherited native methods is 3 lines then. Some inherited features may be not supported yet (e.g. native class methods, native properties, etc., etc.). There may be opportunities for further optimization too.
| | * tests: Add test for accessing attribute of inherited native type.Paul Sokolovsky2014-04-29
| | |
| | * objtype: Add support for looking up non-method attrs in native base class.Paul Sokolovsky2014-04-29
| | |
| | * tests: Add basic tests for subclassing native types and using special methods.Paul Sokolovsky2014-04-29
| | | | | | | | | | | | Even of these, some features do not yet work as expected.
| | * objtype: Implement basic framework for subclassing native types.Paul Sokolovsky2014-04-29
| | | | | | | | | | | | | | | | | | This implements checking of base types, allocation and basic initialization, and optimized support for special method lookups. Other features are not yet supported.
* | | stmhal, docs: Small changes to URL links; adds list of files if none given.Damien George2014-04-30
|/ / | | | | | | This documentation is now available at micropython.org/doc/
* | stmhal: Reinstate CC3000 driver from old stm/ port.Damien George2014-04-30
| | | | | | | | | | | | It's not enabled by default because it doesn't fully work. It can connect to an AP, get an IP address and do a host-lookup, but not yet do send or recv on a socket.
* | stmhal: Make LED.intensity return the same value it was set to.Damien George2014-04-30
| | | | | | | | | | | | | | Also give proper error message when trying to construct a non-existent LED. Addresses issue #530.
* | objfun: Factor out function to report positional args mismatch.Paul Sokolovsky2014-04-30
| |
* | py: Abstract no-return attribute for functions a bit.Paul Sokolovsky2014-04-30
| |
* | py: If setjmp NLR implementation is forced, omit native versions.Paul Sokolovsky2014-04-30
| |
* | nlr.h: As we treat all warnings as errors, can't use #warning.Paul Sokolovsky2014-04-30
| | | | | | | | And this is not good.
* | stmhal: Oops, typo.Damien George2014-04-29
| |
* | stmhal: Add documentation in comments, and script to generate HTML.Damien George2014-04-29
|/ | | | | | | | | | | | | | Decided to write own script to pull documentation from comments in C code. Style for writing auto generated documentation is: start line with /// and then use standard markdown to write the comment. Keywords recognised by the scraper begin with backslash. See code for examples. Running: python gendoc.py modpyb.c accel.c adc.c dac.c extint.c i2c.c led.c pin.c rng.c servo.c spi.c uart.c usrsw.c, will generate a HTML structure in gendoc-out/. gendoc.py is crude but functional. Needed something quick, and this was it.
* py: Fix bug in map lookup of interned string vs non-interned.Damien George2014-04-28
| | | | | | | Had choice of either interning or forcing full equality comparison, and chose latter. See comments in mp_map_lookup. Addresses issue #523.
* py: Fix lexerunix, where not all data may be read from a file.Damien George2014-04-28
| | | | Addresses issue #526.
* py: Remove silly comment about interning keywords.Damien George2014-04-28
| | | | | | | | | | Of course, keywords are turned into lexer tokens in the lexer, so will never need to be interned (unless you do something like x="def"). As it is now, the following on pyboard makes no new qstrs: import pyb pyb.info()
* py: Clear allocated, but unused memory in containers.Paul Sokolovsky2014-04-28
| | | | | | Also, clear up freed slots in containers. As a follow up to 32bef315be8e56ad2d7f69223fe7b9606893b6ab.
* objlist: We no longer need to assert on mem alloc results.Paul Sokolovsky2014-04-28
| | | | They either succeed or raise exception.
* objlist: Use static small int constructor.Paul Sokolovsky2014-04-28
|
* py: Add '*' qstr for 'import *'; use blank qstr for comprehension arg.Damien George2014-04-27
|
* py: Remove unnecessary LOAD_CONST_ID bytecode.Damien George2014-04-27
| | | | It's the same as LOAD_CONST_STR.