- 02 Dec, 2016 7 commits
-
-
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 6 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
-
Damien George authored
-
Damien George authored
It now uses factory calibration values to get a more accurate value, and returns a float instead of an integer.
-
Damien George authored
By using factory calibration values.
-
- 29 Nov, 2016 4 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
That's where Zephyr keeps object files and produced executables.
-
Damien George authored
-
Damien George authored
The "mask" parameter is used to select which pins the ADCAll constructor will initialise to analog mode. It defaults to all pins (0xffffffff), which is backwards compatible with previous behaviour.
-
- 28 Nov, 2016 3 commits
-
-
Nicholas Graumann authored
Also make l4 config the default for STM32L476DISC board.
-
Nicholas Graumann authored
-
Damien George authored
These were inadvertently removed with a recent upgrade to CMSIS, where those registers were no longer defined in the CMSIS headers, and hence no longer extracted.
-
- 27 Nov, 2016 1 commit
-
-
Damien George authored
All assemblers should "derive" from mp_asm_base_t.
-
- 26 Nov, 2016 6 commits
-
-
Dave Hylands authored
-
Damien George authored
Also add a test to check case when 3rd arg is 0.
-
Damien George authored
And then it can run with the native emitter.
-
Damien George authored
Short circuiting is handled correctly by c_if_cond, and constants within short-circuit expressions are optimised by the parser.
-
Damien George authored
-
Damien George authored
Improves coverage because it tests the case where the arg does not have a __len__ slot.
-
- 25 Nov, 2016 3 commits
-
-
Damien George authored
With this patch machine.I2C() uses HW I2C peripheral blocks on F4 MCUs. Software I2C is used for other MCUs.
-
Damien George authored
So they can be used by other parts of the code.
-
Damien George authored
-
- 23 Nov, 2016 6 commits
-
-
Damien George authored
This allows one to construct an I2C object using ids that are specific to the stmhal port, eg machine.I2C('X'). Right now the implementation of I2C uses software I2C but the idea is to just change the C-level I2C protocol functions to hardware implementations later on.
-
Damien George authored
If MICROPY_PY_MACHINE_I2C_MAKE_NEW is defined then it is called when an I2C object is constructed with an id which is not -1.
-
Damien George authored
For external use by ports if needed.
-
Damien George authored
-
Damien George authored
-
Damien George authored
-