- 08 Dec, 2016 1 commit
-
-
Damien George authored
So long as a port defines relevant mp_hal_pin_xxx functions (and delay) it can make use of this software SPI class without the need for additional code.
-
- 07 Dec, 2016 9 commits
-
-
Damien George authored
-
Rami Ali authored
So it compiles with the latest F7 hal.
-
Rami Ali authored
-
Rami Ali authored
-
Rami Ali authored
-
Rami Ali authored
-
Rami Ali authored
These files originate from the STM32Cube_FW_F7_V1.5.0 software package from ST. Newlines are unixified and trailing whitespace is removed.
-
Rami Ali authored
-
Damien George authored
-
- 05 Dec, 2016 7 commits
-
-
Damien George authored
Previous to this patch trying to construct, but not init, a UART that didn't exist on the target board would actually succeed. Only when initialising the UART would it then raise an exception that the UART does not exist. This patch adds an explicit check that the constructed UART does in fact exist for the given board.
-
Damien George authored
-
Rami Ali authored
This follows the pattern of other peripherals (I2C, SPI) to specify the pins using pin objects instead of a pair of GPIO port and pin number. It makes it easier to customise the UART pins for a particular board.
-
puuu authored
websocket_helper.py is used by webrepl. If webrepl is enabled and websocket_helper.py is not frozen bytecode it leads to heap fragmentation.
-
Damien George authored
-
Damien George authored
These are basic drawing primitives. They work in a generic way on all framebuf formats by calling the underlying setpixel or fill_rect C-level primitives.
-
Damien George authored
The STM32 F7 and L4 boards use significantly different code to the F4 boards so it's important to test them with CI. To keep CI build times within a reasonable limit the STM32F4DISC board is no longer built, it's anyway very similar to the standard F4 build for PYBv1.0.
-
- 04 Dec, 2016 3 commits
-
-
Damien George authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Rename recently introduced "sync" method to "flush" for consistency with usual files.
-
- 03 Dec, 2016 1 commit
-
-
Paul Sokolovsky authored
In 1.6, Zephyr switched to "unified kernel" and new API set. Older kernel API is supported, but marked as deprecated and leads to warnings.
-
- 02 Dec, 2016 12 commits
-
-
Peter Hinch authored
-
w4kpm authored
If you have longish operations on the db (such as logging data) it may be desirable to periodically sync the database to the disk. The added btree.sync() method merely exposes the berkley __bt_sync function to the user.
-
w4kpm authored
-
Damien George authored
Select and poll will now work on socket objects.
-
Damien George authored
Implementation of polling may need further fine tuning, but basic functionality works (tested on esp8266).
-
Damien George authored
To make moduselect be usable by any port.
-
Damien George authored
-
Damien George authored
The constants MP_IOCTL_POLL_xxx, which were stmhal-specific, are moved from stmhal/pybioctl.h (now deleted) to py/stream.h. And they are renamed to MP_STREAM_POLL_xxx to be consistent with other such constants. All uses of these constants have been updated.
-
Damien George authored
-
Damien George authored
-
Damien George authored
If the destination of os.rename() exists then it will be overwritten if it is a file. This is the POSIX behaviour, which is also the CPython behaviour, and so we follow suit. See issue #2598 for discussion.
-
Jean-François Milants authored
Add 2 macros in mphalport.h that clean and invalidate data caches only on STM32F7 MCUs. They are needed to ensure the cache coherency before/after DMA transferts. * MP_HAL_CLEANINVALIDATE_DCACHE cleans and invalidate the data cache. It must be called before starting a DMA transfer from the peripheral to the RAM memory. * MP_HAL_CLEAN_DCACHE cleans the data cache. It must be called before starting a DMA transfert from the RAM memory to the peripheral. These macros are called in sdcard.c, before reading from and writing to the SDCard, when DMA is used.
-
- 01 Dec, 2016 4 commits
-
-
Damien George authored
Fill is a very common operation (eg to clear the screen) and it is worth optimising it, by providing a specialised fill_rect function for each framebuffer format. This patch improved the speed of fill by 10 times for a 16-bit display with 160*128 pixels.
-
Damien George authored
For backwards compatibility. It simple creates a frame buffer with the MVLSB format.
-
Radomir Dopieralski authored
-
Radomir Dopieralski authored
Rename FrameBuffer1 into FrameBuffer and make it handle different bit depths via a method table that has getpixel and setpixel. Currently supported formats are MVLSB (monochrome, vertical, LSB) and RGB565. Also add blit() and fill_rect() methods.
-
- 30 Nov, 2016 3 commits
-
-
Damien George authored
-
Damien George authored
The temperature sensor on F4 and F7 MCUs is mostly, but not always, on channel 16. To retain compatibility across all these MCUs this patch maps the user-facing channel 16 to the internal temperature sensor.
-
Damien George authored
-