Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | examples/hwapi: Add example for machine.time_pulse_us(). | Paul Sokolovsky | 2016-11-17 |
| | |||
* | stmhal: Update HALCOMMITS due to change to hal. | Krzysztof Blazewicz | 2016-11-16 |
| | |||
* | stmhal/make-stmconst.py: Restore Python 2 compatibility. | Damien George | 2016-11-16 |
| | |||
* | stmhal: Update HALCOMMITS due to change to hal. | Damien George | 2016-11-16 |
| | |||
* | stmhal/make-stmconst.py: Add support for files with invalid utf8 bytes. | Damien George | 2016-11-16 |
| | |||
* | stmhal/mphalport.h: use single GPIOx->BSRR register | Krzysztof Blazewicz | 2016-11-16 |
| | |||
* | stmhal/hal: do not include <stdio.h> in HAL headers | Krzysztof Blazewicz | 2016-11-16 |
| | | | | | | | | stdio.h was included in all HAL files only to provide definition of NULL symbol "stdio.h" includes "types.h" which contains some conflicting definitions with "drivers/cc3000/inc/socket.h" | ||
* | stmhal/i2c: provide custom IRQ handlers | Krzysztof Blazewicz | 2016-11-16 |
| | | | | | Use custom handlers providing minimal required functionality because those provided by ST increase code size by almost 2 KiB. | ||
* | stmhal/can: clear FIFO flags in IRQ handler | Krzysztof Blazewicz | 2016-11-16 |
| | | | | | | | | HAL Driver before v1.4.2 had a bug which caused clearing all pending flags in MSR, TSR, RF0R and RF1R instead of only the requested one. This is why micropython got away without explicitly clearing flags in IRQ handler. | ||
* | stmhal/dma: mark DMA sate as READY even if HAL_DMA_Init is skipped | Krzysztof Blazewicz | 2016-11-16 |
| | | | | | Current version of HAL drivers checks if `hdma->State == HAL_DMA_STATE_READY` before executing some functions. | ||
* | stmhal/dma: precalculate register base and bitshift on handle init | Krzysztof Blazewicz | 2016-11-16 |
| | | | | | | | | | | | | Current version of HAL drivers optimize IRQ handler by using precalculated DMA register address and stream bitshift instead of calculating it on every interrupt. Since we skip call to `HAL_DMA_Init` on reused DMA, fields StreamBaseAddress and StreamIndex of DMA handle are not initialized and thus leads to SegFault in `DMA_IRQHandler`. HAL_DMA_Init is a big routine and we do not need to call it on each use of DMA (ex.: series of I2C operations) and DMA_CalcBaseAndBitshift is really small and releasing it increases code size by only 8 bytes. | ||
* | stmhal/i2c: handle I2C IRQs | Krzysztof Blazewicz | 2016-11-16 |
| | | | | This is required by HAL Driver for error handling since v1.5.0 | ||
* | stmhal/make-stmconst.py: fix regex's to work with current CMSIS | Krzysztof Blazewicz | 2016-11-16 |
| | | | | CMSIS v2.5.0 removed all uint32_t casts and uses only Misra Cast (U) | ||
* | stmhal/boards: configure all F4 boards to work with new HAL | Krzysztof Blazewicz | 2016-11-16 |
| | | | | | | | changes include: * use single GPIO.BSRR instead of BSRRH and BSRRL * change HSE_STARTUP_TIMEOUT to 100 ms * define LSE_STARTUP_TIMEOUT to 5 s | ||
* | stmhal/hal/sd: reapply HAL commit 09de030 for f4 | Krzysztof Blazewicz | 2016-11-16 |
| | |||
* | stmhal/hal/rcc: reapply HAL commit c568a2b for f4 | Krzysztof Blazewicz | 2016-11-16 |
| | |||
* | stmhal/hal: reapply HAL commit 9db719b for f4 | Krzysztof Blazewicz | 2016-11-16 |
| | |||
* | stmhal/hal/sd: reapply HAL commit 1d7fb82 for f4 | Krzysztof Blazewicz | 2016-11-16 |
| | |||
* | stmhal/hal/i2c: reapply HAL commit ea040a4 for f4 | Krzysztof Blazewicz | 2016-11-16 |
| | |||
* | stmhal: apply STM32CubeF4 v1.13.1 patch - upgrade HAL driver to v1.5.2 | Krzysztof Blazewicz | 2016-11-16 |
| | |||
* | stmhal: upgrade to STM32CubeF4 v1.13.0 - HAL v1.5.1 | Krzysztof Blazewicz | 2016-11-16 |
| | |||
* | stmhal: upgrade to STM32CubeF4 v1.13.0 - CMSIS/Device 2.5.1 | Krzysztof Blazewicz | 2016-11-16 |
| | |||
* | windows: Enable READER_POSIX to get access to lexer_new_from_file. | Damien George | 2016-11-16 |
| | |||
* | mpy-cross: Get compiling after recent persistent code refactors. | Damien George | 2016-11-16 |
| | |||
* | py/lexer: Make lexer use an mp_reader as its source. | Damien George | 2016-11-16 |
| | |||
* | py/lexer: Rewrite mp_lexer_new_from_fd in terms of mp_reader. | Damien George | 2016-11-16 |
| | |||
* | py/lexer: Provide generic mp_lexer_new_from_file based on mp_reader. | Damien George | 2016-11-16 |
| | | | | | | If a port defines MICROPY_READER_POSIX or MICROPY_READER_FATFS then lexer.c now provides an implementation of mp_lexer_new_from_file using the mp_reader_new_file function. | ||
* | py/lexer: Rewrite mp_lexer_new_from_str_len in terms of mp_reader_mem. | Damien George | 2016-11-16 |
| | |||
* | py: Factor out persistent-code reader into separate files. | Damien George | 2016-11-16 |
| | | | | | | | Implementations of persistent-code reader are provided for POSIX systems and systems using FatFS. Macros to use these are MICROPY_READER_POSIX and MICROPY_READER_FATFS respectively. If an alternative implementation is needed then a port can define the function mp_reader_new_file. | ||
* | py: Factor persistent code load/save funcs into persistentcode.[ch]. | Damien George | 2016-11-16 |
| | |||
* | docs/library/index: Elaborate on u-modules. | Paul Sokolovsky | 2016-11-16 |
| | | | | Also, remove an "only" directive in u-modules description. | ||
* | tests/basics: Add test for logical constant folding. | Damien George | 2016-11-15 |
| | |||
* | py/parse: Add code to fold logical constants in or/and/not operations. | Damien George | 2016-11-15 |
| | | | | Adds about 200 bytes to the code size when constant folding is enabled. | ||
* | py/parse: Make mp_parse_node_new_leaf an inline function. | Damien George | 2016-11-15 |
| | | | | | | It is split into 2 functions, one to make small ints and the other to make a non-small-int leaf node. This reduces code size by 32 bytes on bare-arm, 64 bytes on unix (x64-64) and 144 bytes on stmhal. | ||
* | py/parse: Move function to check for const parse node to parse.[ch]. | Damien George | 2016-11-15 |
| | |||
* | cc3200/mods/pybspi: Remove SPI.MASTER constant, it's no longer needed. | Damien George | 2016-11-15 |
| | |||
* | cc3200/pybspi: Remove static mode=SPI.MASTER parameter for latest HW API. | Paul Sokolovsky | 2016-11-15 |
| | | | | | | | Per the latest HW API, "SPI" class implements only master side of the protocol, so mode=SPI.MASTER (which was static for WiPy anyway) is not required (or allowed). This change is required to correspond to updated documentation of machine.SPI class which no longer lists "mode". | ||
* | py/*.mk: Replace uses of 'sed' with $(SED). | Damien George | 2016-11-15 |
| | |||
* | py/mkrules.mk: Rework find command so it works on OSX. | Dave Hylands | 2016-11-15 |
| | | | | | The Mac version of find doesn't support -printf, so this changes things to use sed to strip off the leading path element instead. | ||
* | py/runtime: mp_resume: Fix exception handling for nanbox port. | Paul Sokolovsky | 2016-11-15 |
| | |||
* | py/runtime: mp_resume: Handle exceptions in Python __next__(). | Paul Sokolovsky | 2016-11-15 |
| | | | | | | | | This includes StopIteration and thus are important to make Python-coded iterables work with yield from/await. Exceptions in Python send() are still not handled and left for future consideration and optimization. | ||
* | docs: Remove references to readall() and update stream read() docs. | Damien George | 2016-11-14 |
| | |||
* | cc3200/tools/smoke.py: Change readall() to read(). | Damien George | 2016-11-14 |
| | |||
* | py/objexcept: Allow clearing traceback with 'exc.__traceback__ = None'. | Paul Sokolovsky | 2016-11-14 |
| | | | | | | | | | | | | | We allow 'exc.__traceback__ = None' assignment as a low-level optimization of pre-allocating exception instance and raising it repeatedly - this avoids memory allocation during raise. However, uPy will keep adding traceback entries to such exception instance, so before throwing it, traceback should be cleared like above. 'exc.__traceback__ = None' syntax is CPython compatible. However, unlike it, reading that attribute or setting it to any other value is not supported (and not intended to be supported, again, the only reason for adding this feature is to allow zero-memalloc exception raising). | ||
* | examples/hwapi: Add uasyncio example of fading 2 LEDs in parallel. | Paul Sokolovsky | 2016-11-14 |
| | |||
* | tests: Use read() instead of readall(). | Paul Sokolovsky | 2016-11-14 |
| | |||
* | examples/http_client: Use read() instead of readall(). | Paul Sokolovsky | 2016-11-14 |
| | |||
* | all: Remove readall() method, which is equivalent to read() w/o args. | Paul Sokolovsky | 2016-11-14 |
| | | | | | | Its addition was due to an early exploration on how to add CPython-like stream interface. It's clear that it's not needed and just takes up bytes in all ports. | ||
* | examples/hwapi: Add soft_pwm example converted to uasyncio. | Paul Sokolovsky | 2016-11-13 |
| | |||
* | tools/tinytest-codegen: Blacklist recently added uheapq_timeq test (qemu-arm). | Paul Sokolovsky | 2016-11-12 |
| |