- Nov 15, 2016
-
-
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.
-
- Nov 14, 2016
-
-
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
-
- Nov 13, 2016
-
-
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
-
- Nov 12, 2016
-
-
Paul Sokolovsky authored
-
- Nov 11, 2016
-
-
Paul Sokolovsky authored
As required for further elaboration of uasyncio, like supporting baremetal systems with wraparound timesources. This is not intended to be public interface, and likely will be further refactored in the future.
-
Paul Sokolovsky authored
Requires BUTTON defined in hwconfig, so far tested on DragonBoard 410c.
-
Damien George authored
This way the caller doesn't need to initialise a big GPIO_InitTypeDef struct, and HAL_GPIO_Init is no longer called.
-
Damien George authored
If an I2C send/recv fails then the peripheral is now checked to see if it's in a "stuck" state waiting for the stop bit, and if so then it is reset so that the next I2C transaction can proceed. This patch also de-inits the I2C peripheral in the init() method, before init'ing it again.
-
Damien George authored
New keyword option in constructor and init() method is "dma=<bool>". DMA is now disabled by default for I2C transfers because it currently does not handle I2C bus errors very well (eg if slave device doesn't ACK or NACK correctly during a transfer).
-
Damien George authored
The DMA state is always HAL_DMA_STATE_RESET because of the memset clearing all the data, so prior to this patch HAL_DMA_DeInit was never called. Now it is always called to make sure the DMA is properly reset.
-
- Nov 10, 2016
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
- Nov 09, 2016
-
-
Paul Sokolovsky authored
This requires recently added implementation of machine.Pin from micropython-lib.
-
Damien George authored
-
Damien George authored
-
- Nov 08, 2016
-
-
Chris Popp authored
The ESP SDK supports configuring the hostname that is reported when doing a DHCP request in station mode. This commit exposes that under network.WLAN(network.STA_IF).config('dhcp_hostname') as a read/write value similar to other parameters.
-
Paul Sokolovsky authored
-
Damien George authored
-
Damien George authored
With this patch one can now do "make FROZEN_MPY_DIR=../../frozen" to specify a directory containing scripts to be frozen (as well as absolute paths). The compiled .mpy files are now stored in $(BUILD)/frozen_mpy/.
-
Damien George authored
Now, to use frozen bytecode all a port needs to do is define FROZEN_MPY_DIR to the directory containing the .py files to freeze, and define MICROPY_MODULE_FROZEN_MPY and MICROPY_QSTR_EXTRA_POOL.
-
Paul Sokolovsky authored
-
- Nov 07, 2016
-
-
puuu authored
-
Paul Sokolovsky authored
Previously, it was included only in release builds, but it's important tool which should be always at the fingertips to be useful (and to pump up its usage).
-
Paul Sokolovsky authored
To make its inclusion as frozen modules in multiple ports less magic. Ports are just expected to symlink 2 files into their scripts/modules subdirs. Unix port updated to use this and in general follow frozen modules setup tested and tried on baremetal ports, where there's "scripts" predefined dir (overridable with FROZEN_DIR make var), and a user just drops Python files there.
-
Olivier Ortigues authored
At the WS2812 driver level, a 400ns value was used for T0H (time high to send a 0 bit) but LED specification says it should be 350ns +- 150ns. Due to loop overhead the 400ns value could lead to T0H close to 500ns which is too close from the limit value and gave glitches (bad data to pixels) in some cases. This patch makes the calculated T0H value 350ns.
-
Ryan Shaw authored
-