- 16 Nov, 2016 20 commits
-
-
Krzysztof Blazewicz authored
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.
-
Krzysztof Blazewicz authored
This is required by HAL Driver for error handling since v1.5.0
-
Krzysztof Blazewicz authored
CMSIS v2.5.0 removed all uint32_t casts and uses only Misra Cast (U)
-
Krzysztof Blazewicz authored
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
-
Krzysztof Blazewicz authored
-
Krzysztof Blazewicz authored
-
Krzysztof Blazewicz authored
-
Krzysztof Blazewicz authored
-
Krzysztof Blazewicz authored
-
Krzysztof Blazewicz authored
-
Krzysztof Blazewicz authored
-
Krzysztof Blazewicz authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
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.
-
Damien George authored
-
Damien George authored
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.
-
Damien George authored
-
- 15 Nov, 2016 9 commits
-
-
Paul Sokolovsky authored
Also, remove an "only" directive in u-modules description.
-
Damien George authored
-
Damien George authored
Adds about 200 bytes to the code size when constant folding is enabled.
-
Damien George authored
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.
-
Damien George authored
-
Damien George authored
-
Paul Sokolovsky authored
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".
-
Damien George authored
-
Dave Hylands authored
The Mac version of find doesn't support -printf, so this changes things to use sed to strip off the leading path element instead.
-
- 14 Nov, 2016 4 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
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.
-
Damien George authored
-
Damien George authored
-
- 13 Nov, 2016 6 commits
-
-
Paul Sokolovsky authored
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).
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
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.
-
Paul Sokolovsky authored
-
- 12 Nov, 2016 1 commit
-
-
Paul Sokolovsky authored
-