- 08 Dec, 2016 2 commits
-
-
Damien George authored
This is a pure refactoring (and simplification) of code so that stmhal uses the software SPI class provided in extmod, for the machine.SPI implementation.
-
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 8 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
-
- 05 Dec, 2016 3 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.
-
- 04 Dec, 2016 1 commit
-
-
Damien George authored
-
- 02 Dec, 2016 4 commits
-
-
Damien George authored
To make moduselect be usable by any port.
-
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
-
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.
-
- 30 Nov, 2016 5 commits
-
-
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 1 commit
-
-
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.
-
- 26 Nov, 2016 1 commit
-
-
Dave Hylands authored
-
- 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 1 commit
-
-
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.
-
- 22 Nov, 2016 1 commit
-
-
Damien George authored
In the new HAL this is renamed to I2C_NOSTRETCH_DISABLE.
-
- 21 Nov, 2016 2 commits
-
-
Damien George authored
-
Damien George authored
The custom IRQ handler only works for F4 MCUs, which have the SR1 register.
-
- 20 Nov, 2016 1 commit
-
-
Paul Sokolovsky authored
-
- 16 Nov, 2016 4 commits
-
-
Krzysztof Blazewicz authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-