| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2017-03-28 | py: Use mp_raise_TypeError/mp_raise_ValueError helpers where possible. | Damien George | |
| Saves 168 bytes on bare-arm. | |||
| 2017-03-28 | stmhal/dma: Fix reinitialisation of DMA on F7 MCUs, following F4. | Damien George | |
| 2017-03-28 | stmhal/hal: For F7 MCUs, expose DMA_CalcBaseAndBitshift function. | Damien George | |
| It's needed by the DMA driver to do an efficient reinitialisation. This patch follows what is done in the F4 HAL. | |||
| 2017-03-28 | stmhal/spi: Clean and/or invalidate D-cache before SPI DMA transfers. | Damien George | |
| On MCUs with a cache (eg F7) this must be done or else the SPI data that is transferred is incorrect. | |||
| 2017-03-28 | stmhal/board: Fix existing and add more pin defs for NUCLEO_F767ZI. | Damien George | |
| 2017-03-28 | stmhal/boards: Fix alt-func config for PA5 of STM32F767. | Damien George | |
| 2017-03-27 | zephyr/prj_base.conf: Disable legacy kernel compatibility. | Paul Sokolovsky | |
| This keeps dependency on mdef, sysgen and other stuff which complicates build integration. | |||
| 2017-03-27 | py/objmap: Convert mp_uint_t to size_t. | Damien George | |
| 2017-03-27 | esp8266/modesp: Remove long-obsolete and unused espconn bindings. | Damien George | |
| 2017-03-27 | tests/basics: Add test for super() when self is closed over. | Damien George | |
| 2017-03-27 | py/compile: When compiling super(), handle closed-over self variable. | Damien George | |
| The self variable may be closed-over in the function, and in that case the call to super() should load the contents of the closure cell using LOAD_DEREF (before this patch it would just load the cell directly). | |||
| 2017-03-27 | py/vm: Fix VM opcode tracing to print correct stack pointer. | Damien George | |
| Also const_table is now moved to the code_state->fun_bc structure. | |||
| 2017-03-27 | zephyr/zephyr_getchar: Use native k_sem instead of legacy nano_sem. | Paul Sokolovsky | |
| 2017-03-26 | py/obj: Change mp_uint_t to size_t for mp_obj_get_array_fixed_n len arg. | Damien George | |
| 2017-03-26 | esp8266/modesp: Use mp_obj_str_get_str instead of mp_obj_str_get_data. | Damien George | |
| 2017-03-26 | extmod/modlwip: Use mp_obj_str_get_str instead of mp_obj_str_get_data. | Damien George | |
| 2017-03-26 | README: Change Travis & Coveralls badges to not use link references. | Damien George | |
| Link references don't seem to work anymore. | |||
| 2017-03-26 | py/nlrx86: Better check for Zephyr (requires 1.7). | Paul Sokolovsky | |
| 2017-03-25 | README: Describe extmod/ dir. | Paul Sokolovsky | |
| 2017-03-25 | README: Add link to docs.micropython.org. | Paul Sokolovsky | |
| 2017-03-25 | unix: Use mp_obj_str_get_str instead of mp_obj_str_get_data. | Damien George | |
| 2017-03-25 | py/objarray: Use mp_obj_str_get_str instead of mp_obj_str_get_data. | Damien George | |
| 2017-03-24 | py: Remove MP_STATE_CTX, use MP_STATE_THREAD instead (it's an alias). | Damien George | |
| MP_STATE_CTX was recently aliased to MP_STATE_THREAD and can now be removed. | |||
| 2017-03-24 | py: Use mp_locals/mp_globals accessor funcs instead of MP_STATE_CTX. | Damien George | |
| To improve maintainability of the code. | |||
| 2017-03-24 | py/objnamedtuple: Use size_t where appropriate, instead of mp_uint_t. | Damien George | |
| 2017-03-24 | py/objtype: Use size_t where appropriate, instead of mp_uint_t or uint. | Damien George | |
| 2017-03-24 | tests/float: Add tests for round() of inf, nan and large number. | Damien George | |
| 2017-03-24 | py/modbuiltins: Allow round() to return a big int if necessary. | Damien George | |
| Previous to this patch, if the result of the round function overflowed a small int, or was inf or nan, then a garbage value was returned. With this patch the correct big-int is returned if necessary and exceptions are raised for inf or nan. | |||
| 2017-03-24 | py/modbuiltins: For round() builtin use nearbyint instead of round. | Damien George | |
| The C nearbyint function has exactly the semantics that Python's round() requires, whereas C's round() requires extra steps to handle rounding of numbers half way between integers. So using nearbyint reduces code size and potentially eliminates any source of errors in the handling of half-way numbers. Also, bare-metal implementations of nearbyint can be more efficient than round, so further code size is saved (and efficiency improved). nearbyint is provided in the C99 standard so it should be available on all supported platforms. | |||
| 2017-03-24 | lib/libm: Add implementation of nearbyintf, from musl-1.1.16. | Damien George | |
| 2017-03-23 | tests/float: Add tests for math funcs that return ints. | Damien George | |
| One should test bigint, inf and nan to make sure all cases are covered. | |||
| 2017-03-23 | py/objint: Handle special case of -0 when classifying fp as int. | Damien George | |
| Otherwise -0.0 is classified as a bigint, which for builds without bigints will lead unexpectedly to an overflow. | |||
| 2017-03-23 | py/modmath: Allow trunc/ceil/floor to return a big int if necessary. | Damien George | |
| Previous to this patch, if the result of the trunc/ceil/floor functions overflowed a small int, or was inf or nan, then a garbage value was returned. With this patch the correct big-int is returned if necessary, and exceptions are raised for inf or nan. | |||
| 2017-03-23 | py/lexer: Remove obsolete comment, since lexer can now raise exceptions. | Damien George | |
| 2017-03-23 | py: Define and use MP_OBJ_ITER_BUF_NSLOTS to get size of stack iter buf. | Damien George | |
| It improves readability of code and reduces the chance to make a mistake. This patch also fixes a bug with nan-boxing builds by rounding up the calculation of the new NSLOTS variable, giving the correct number of slots (being 4) even if mp_obj_t is larger than the native machine size. | |||
| 2017-03-23 | py/sequence: Convert mp_uint_t to size_t where appropriate. | Damien George | |
| 2017-03-23 | py: Use size_t as len argument and return type of mp_get_index. | Damien George | |
| These values are used to compute memory addresses and so size_t is the more appropriate type to use. | |||
| 2017-03-23 | msvc: Remove directory with generated files when cleaning. | stijn | |
| This assures after cleaning all build artefacts (qstr related files, generated version header) have been removed. | |||
| 2017-03-23 | windows: Make msvc project file support any version from VS2013 to VS2017 | stijn | |
| Instead of having the PlatformToolset property hardcoded to a specific version just set it to the value of DefaultPlatformToolset: this gets defined according to the commandline environment in which the build was started. Instead of just supporting VS2015 the project can now be built by any version from VS2013 to VS2017 and normally future versions as well, without quirks like VS asking whether you want to upgrade the project to the latest version (as was the case when opening the project in VS2017) or not being able to build at all (as was the case when opening the project in VS2013). Also adjust the .gitignore file to ignore any artefacts from VS2017. | |||
| 2017-03-23 | minimal/Makefile: Change C standard from gnu99 to c99. | Damien George | |
| 2017-03-23 | bare-arm/Makefile: Change C standard from gnu99 to c99. | Damien George | |
| 2017-03-23 | all/Makefile: Remove -ansi from GCC flags, its ignored anyway. | Krzysztof Blazewicz | |
| The -ansi flag is used for C dialect selection and it is equivalent to -std=c90. Because it goes right before -std=gnu99 it is ignored as for conflicting flags GCC always uses the last one. | |||
| 2017-03-22 | tests/heapalloc_str: Test no-replacement case for str.replace(). | Paul Sokolovsky | |
| 2017-03-22 | py/bc: Provide better error message for an unexpected keyword argument. | Damien George | |
| Now, passing a keyword argument that is not expected will correctly report that fact. If normal or detailed error messages are enabled then the name of the unexpected argument will be reported. This patch decreases the code size of bare-arm and stmhal by 12 bytes, and cc3200 by 8 bytes. Other ports (minimal, unix, esp8266) remain the same in code size. For terse error message configuration this is because the new message is shorter than the old one. For normal (and detailed) error message configuration this is because the new error message already exists in py/objnamedtuple.c so there's no extra space in ROM needed for the string. | |||
| 2017-03-22 | cc3200/mods/modutime: Use generic sleep_ms and sleep_us implementations. | Damien George | |
| 2017-03-22 | stmhal/systick: Make mp_hal_delay_ms release the GIL when sleeping. | Damien George | |
| 2017-03-22 | extmod/utime_mphal: Don't exit/enter the GIL in generic sleep functions. | Damien George | |
| GIL behaviour should be handled by the port. And ports probably want to define sleep_us so that it doesn't release the GIL, to improve timing accuracy. | |||
| 2017-03-22 | stmhal/pybthread: Allow interrupts to work during lock/unlock of mutex. | Damien George | |
| When locking/unlocking a mutex we only need to protect against a thread switch, not general interrupts. | |||
| 2017-03-22 | stmhal/irq: Shift IRQ priorities of TIM and EXTINT to be above PENDSV. | Damien George | |
| This way, Timer and ExtInt callbacks can interrupt the low-priority pendsv handler (for example thread switching). | |||
| 2017-03-21 | esp8266/machine_pin: Fix pin.irq() to work when all args are keywords. | Damien George | |
