summaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAge
* modstruct: Fix .calcsize() to account for struct type/alignment.Paul Sokolovsky2014-04-19
|
* modstruct: Support 'q' & 'Q' type codes.Paul Sokolovsky2014-04-19
|
* modffi: Mark 'p' type spec deprecated, replace with 'P'.Paul Sokolovsky2014-04-19
| | | | 'p' in struct module is "pascal string". 'P' is void*.
* stmhal: Rename pyb.Led to pyb.LED to conform to naming rules.Damien George2014-04-19
| | | | It's Light Emitting Diode, so should be LED.
* stmhal: Remove pyb.input (use sys.stdio.read(1) instead).Damien George2014-04-19
|
* stmhal: Add lots of constants to stm module.Damien George2014-04-19
|
* Merge branch 'master' of github.com:micropython/micropythonDamien George2014-04-18
|\
| * sequence: Further simplify sequence comparison.Paul Sokolovsky2014-04-18
| |
| * sequence: Fix glaring bug in sequence comparison.Paul Sokolovsky2014-04-18
| |
| * objfloat: Try to achieve the same float printing format as CPython does.Paul Sokolovsky2014-04-18
| | | | | | | | | | | | | | Test usecase I used is print(time.time()) and print(time.time() - time.time()). On Linux/Glibc they now give the same output as CPython 3.3. Specifically, time.time() gives non-exponential output with 7 decimal digits, and subtraction gives exponential output e-06/e-07.
| * py: from import * should not import symbols starting with underscore.Paul Sokolovsky2014-04-18
| | | | | | | | | | I skipped implementing this initially, but then it causes __name__ of current module be overwritten and relative imports fail.
* | stmhal: Update ADC, DAC and I2C objects to use new buffer protocol.Damien George2014-04-18
| | | | | | | | | | | | | | | | | | | | Main reason for expanding buffer protocol API was to support writes to a buffer in ADC module (see read_timed). With this change you can now create an array of arbitrary type and ADC.read_timed will store into that array in the correct format (byte, int, float). I wonder though if all these changes were really worth it to support just this function. Hopefully this enhanced buffer protocol API (with typecode specified) will be used elsewhere.
* | py: Add mp_binary_set_val_array_from_int, to store an int directly.Damien George2014-04-18
| |
* | py: Allow to pass buffer protocol flags to get_buffer helper funcs.Damien George2014-04-18
| |
* | stmhal: Update help and comments re gpio changing to Pin.Damien George2014-04-18
| |
* | stmhal: Big cleanup; merge gpio into Pin; make names consistent.Damien George2014-04-18
| | | | | | | | | | | | | | | | This is an attempt to clean up the Micro Python API on the pyboard. Gpio functionality is now in the Pin object, which seems more natural. Constants for MODE and PULL are now in pyb.Pin. Names of some classes have been adjusted to conform to CamelCase. Other miscellaneous changes and clean up here and there.
* | unix: Update to use new buffer protocol interface with typecode.Damien George2014-04-18
| |
* | py: Add typecode to buffer protocol.Damien George2014-04-18
| | | | | | | | | | | | | | When querying an object that supports the buffer protocol, that object must now return a typecode (as per binary.[ch]). This does not have to be honoured by the caller, but can be useful for determining element size.
* | py: Tidy up function argument error messages.Damien George2014-04-18
| | | | | | | | We are not as verbose as CPython, and maybe a bit too cryptic sometimes.
* | py: Tidy up array.array; add more error handling.Damien George2014-04-18
| |
* | inlinethumb: Add wfi, cpsid and cpsie instructions.Damien George2014-04-18
| |
* | stmhal: Remove non-ascii character from include file.Damien George2014-04-18
| |
* | Add Python code conventions to CODECONVENTIONS.Damien George2014-04-18
|/
* py: Rename USE_COMPUTED_GOTOS to USE_COMPUTED_GOTO and enable on stmhal.Damien George2014-04-17
| | | | | | On stmhal, computed gotos make the binary about 1k bigger, but makes it run faster, and we have the room, so why not. All tests pass on pyboard using computed gotos.
* tests: Move gen_context to import tests, because it relies on import.Damien George2014-04-17
|
* py: Add MP_OBJ_STOP_ITERATION and make good use of it.Damien George2014-04-17
| | | | | Also make consistent use of MP_OBJ_NOT_SUPPORTED and MP_OBJ_NULL. This helps a lot in debugging and understanding of function API.
* Merge branch 'master' of github.com:micropython/micropythonDamien George2014-04-17
|\
| * unix modffi: Convert to static module structures.Paul Sokolovsky2014-04-18
| |
* | py: Merge BINARY_OP_SUBSCR and store_subscr (w/ delete) into subscr.Damien George2014-04-17
|/ | | | mp_obj_t->subscr now does load/store/delete.
* py: Simplify objfun/objgenerator connection, no need to call bc_get.Damien George2014-04-17
|
* Merge branch 'master' of github.com:micropython/micropythonDamien George2014-04-17
|\
| * unix modsocket: Convert to static module structures.Paul Sokolovsky2014-04-17
| |
| * unix: Make mem_info() dump GC info too.Paul Sokolovsky2014-04-17
| | | | | | | | mem_info() is already pretty hacky, let it be more hacky.
| * unix modtime: Convert to static module structures.Paul Sokolovsky2014-04-17
| |
| * unix modtime: Adhere to MICROPY_ENABLE_FLOAT better.Paul Sokolovsky2014-04-17
| |
| * objgenerator: Generator must execute in its defining lexical context.Paul Sokolovsky2014-04-17
| | | | | | | | | | I.e. with its own globals. So, just as for functions, we need to switch globals when resuming a generator.
| * objfun: Add local header.Paul Sokolovsky2014-04-17
| | | | | | | | | | | | | | | | | | This follows pattern already used for objtuple, etc.: objfun.h's content is not public - each and every piece of code should not have access to it. It's not private either - with out architecture and implementation language (C) it doesn't make sense to keep implementation of each object strictly private and maintain cumbersome accessors. It's "local" - intended to be used by a small set of "friend" (in C++ terms) objects.
* | py: Fix pfenv_print_strn to return correct number of chars printed.Damien George2014-04-17
|/ | | | With this fix, all tests in tests/basics pass on pyboard.
* py: Make built-in 'range' a class.Damien George2014-04-17
| | | | Addresses issue #487.
* build: Simplify build directory layout by putting all headers in genhdr.Damien George2014-04-17
| | | | | Any generated headers go in $(BUILD)/genhdr/, and are #included as 'genhdr/xxx.h'.
* Merge branch 'relocatable-build-dir' of github.com:lurch/micropython into ↵Damien George2014-04-17
|\ | | | | | | lurch-relocatable-build-dir
| * build directory can now be renamedAndrew Scheller2014-04-16
| | | | | | | | | | | | | | | | | | The autogenerated header files have been moved about, and an extra include dir has been added, which means you can give a custom BUILD=newbuilddir option to make, and everything "just works" Also tidied up the way the different Makefiles build their include- directory flags
* | Merge pull request #507 from pfalcon/nlr-setjmpDamien George2014-04-17
|\ \ | | | | | | nlr: Add implementation using setjmp/longjmp.
| * | nlr: Add implementation using setjmp/longjmp.Paul Sokolovsky2014-04-17
| |/ | | | | | | | | Having an optimized asm implementation is good, but if we want portability, that's it.
* | Merge pull request #505 from lurch/patch-5Damien George2014-04-17
|\ \ | | | | | | Add 'test' target to unix/Makefile
| * | Updated the envvar used by ./run-testsAndrew Scheller2014-04-17
| | | | | | | | | As discussed in #504
| * | Add 'test' target to unix/MakefileAndrew Scheller2014-04-16
| |/ | | | | | | | | | | | | | | | | In conjunction with #504 this allows you to do things like: ```shell make -C unix clean && make -C unix test CC=gcc-4.7 ``` all from the top-level micropython directory :-) Something similar could probably be done for windows/Makefile too, but I don't have a cygwin setup to test with.
* | Merge pull request #504 from lurch/patch-4Damien George2014-04-17
|\ \ | | | | | | Allow the uPy used by run-tests to be overridden
| * | Changed the envvar name to MICROPY_MICROPYTHONAndrew Scheller2014-04-17
| | | | | | | | | As discussed in #504
| * | Stupid typoAndrew Scheller2014-04-16
| | |