aboutsummaryrefslogtreecommitdiff
path: root/stmhal
AgeCommit message (Collapse)Author
2017-01-12stmhal: fix wrong usage of gcc -print-libgcc-file-namePavol Rusnak
2017-01-12stmhal: Support PortG on STM32L476 and STM32L486.Dave Hylands
2017-01-04all: Consistently update signatures of .make_new and .call methods.Paul Sokolovsky
Otherwise, they serve reoccurring source of copy-paste mistakes and breaking nanbox build.
2016-12-28stmhal/uart: Increase inter-character timeout by 1ms.Damien George
Sys-tick resolution is 1ms and a value of 2 will give a delay between 1ms and 2ms (whereas a value of 1 gives a delay between 0ms and 1ms, which is too short).
2016-12-28stmhal/uart: Provide a custom function to transmit over UART.Damien George
The HAL_UART_Transmit function has changed in the latest HAL version such that the Timeout is a timeout for the entire function, rather than a timeout between characters as it was before. The HAL function also does not allow one to reliably tell how many characters were sent before the timeout (if a timeout occurred). This patch provides a custom function to do UART transmission, completely replacing the HAL version, to fix the above-mentioned issues.
2016-12-23stmhal, esp8266: Enable utimeq module.Paul Sokolovsky
2016-12-22stmhal: Add support for STM32 Nucleo64 L476RG.sergiuszm
2016-12-22stmhal/sdcard: Use mp_hal_pin_config function instead of HAL_GPIO_Init.Damien George
There is a minor functional change with this patch, that the GPIO are now configured in fast mode, whereas they were in high speed mode before. But the SDIO should still work because SD CK frequency is at most 25MHz.
2016-12-22stmhal/led: Use mp_hal_pin_config function instead of HAL_GPIO_Init.Damien George
2016-12-22stmhal/usrsw: Use mp_hal_pin_config function instead of HAL_GPIO_Init.Damien George
2016-12-22stmhal/mphalport.h: Explicitly use HAL's GPIO constants for pull modes.Damien George
They are the same as the existing raw constants (namely 0, 1, 2) but we want to explicitly show that one can use the HAL's constants if necessary (eg the mpconfigboard.h files do use the HAL's constants to define the pull state of certain configurable pins).
2016-12-22stmhal/led: Properly initialise timer handle to zero before using it.Damien George
Without this the timer will have random values for its State and Lock entries. The object can then be in a locked state leading to some HAL functions returning immediately with an error code (which is unchecked). This patch fixes such a bug which did manifest itself as PWM not working correctly for LEDs.
2016-12-15stmhal: Use core-provided keyboard exception object.Damien George
2016-12-15stmhal/usb: Always use the mp_kbd_exception object for VCP interrupt.Damien George
There's no need to store a separate pointer to this object.
2016-12-15stmhal: Rename mp_const_vcp_interrupt to mp_kbd_exception.Damien George
mp_kbd_exception is now considered the standard variable name to hold the singleton KeyboardInterrupt exception. This patch also moves the creation of this object from pyb_usb_init() to main().
2016-12-15stmhal/mpconfigport: Add weak-module links for io, collections, random.Damien George
2016-12-14py/runtime: Zero out fs_user_mount array in mp_init.Damien George
There's no need to force ports to copy-and-paste this initialisation code. If FSUSERMOUNT is enabled then this zeroing out must be done.
2016-12-13stmhal: Move PY_SYS_PLATFORM config from board to general config file.Damien George
It can be overridden by a board if needed.
2016-12-13stmhal: Add STM32F769DISC board files.Rami Ali
With minor changes to adc.c and storage.c to support the F769.
2016-12-13stmhal/cmsis: Add CMSIS file stm32f769xx.h, V1.1.2.Rami Ali
2016-12-13stmhal: Add NUCLEO_F767ZI board, with openocd config for stm32f7.Rami Ali
2016-12-13stmhal/cmsis: Add CMSIS file stm32f767xx.h, V1.1.2.Rami Ali
2016-12-08stmhal: Refactor to use extmod implementation of software SPI class.Damien George
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.
2016-12-08extmod/machine_spi: Provide reusable software SPI class.Damien George
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.
2016-12-07stmhal/hal: Update HALCOMMITS due to change in f7 hal files.Damien George
2016-12-07stmhal/boards/STM32F7DISC: Define LSE_STARTUP_TIMEOUT.Rami Ali
So it compiles with the latest F7 hal.
2016-12-07stmhal: Declare and initialise PrescTables for F7 MCUs.Rami Ali
2016-12-07stmhal: Port of f4 hal commit 1d7fb82 to updated f7 hal.Rami Ali
2016-12-07stmhal: Port of f4 hal commit 09de030 to updated f7 hal.Rami Ali
2016-12-07stmhal: Port of f4 hal commit c568a2b to updated f7 hal.Rami Ali
2016-12-07stmhal/hal: Update ST32CubeF7 HAL files to V1.1.2.Rami Ali
These files originate from the STM32Cube_FW_F7_V1.5.0 software package from ST. Newlines are unixified and trailing whitespace is removed.
2016-12-07stmhal/cmsis: Update STM32F7 CMSIS device include files to V1.1.2.Rami Ali
2016-12-05stmhal/uart: Add check that UART id is valid for the given board.Damien George
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.
2016-12-05stmhal/uart: Add support for UART7 and UART8 on F7 MCUs.Damien George
2016-12-05stmhal: Refactor UART configuration to use pin objects.Rami Ali
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.
2016-12-05stmhal/adc: Use constants from new HAL version.Damien George
2016-12-02extmod/moduselect: Use configurable EVENT_POLL_HOOK instead of WFI.Damien George
To make moduselect be usable by any port.
2016-12-02py/stream: Move ad-hoc ioctl constants to stream.h and rename them.Damien George
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.
2016-12-02stmhal/moduos: Implement POSIX behaviour of rename, allow to overwrite.Damien George
2016-12-02stmhal/sdcard: Clean/invalidate cache before DMA transfers with SD card.Jean-François Milants
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.
2016-11-30stmhal/adc: Make channel "16" always map to the temperature sensor.Damien George
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.
2016-11-30stmhal/adc: Add support for F767 MCU.Damien George
2016-11-30stmhal/adc: Add ADCAll.read_vref method, returning "3.3v" value.Damien George
2016-11-30stmhal/adc: Make ADCAll.read_core_temp return accurate float value.Damien George
It now uses factory calibration values to get a more accurate value, and returns a float instead of an integer.
2016-11-30stmhal/adc: Provide more accurate measure of VBAT and VREFINT.Damien George
By using factory calibration values.
2016-11-29stmhal/adc: Add "mask" selection parameter to pyb.ADCAll constructor.Damien George
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.
2016-11-28stmhal: Add address parameters to openocd config files.Nicholas Graumann
Also make l4 config the default for STM32L476DISC board.
2016-11-28stmhal: Add OpenOCD configuration for STM32L4.Nicholas Graumann
2016-11-28stmhal: Add back GPIO_BSRRL and GPIO_BSRRH constants to stm module.Damien George
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.
2016-11-26stmhal: Add support for flash storage on STM32F415.Dave Hylands