aboutsummaryrefslogtreecommitdiff
path: root/stmhal/hal
AgeCommit message (Collapse)Author
2017-08-29stmhal: Remove cmsis and hal files, they are now a submodule.Damien George
2017-07-31all: Use the name MicroPython consistently in commentsAlexander Steffen
There were several different spellings of MicroPython present in comments, when there should be only one.
2017-03-28stmhal/hal: For F7 MCUs, expose DMA_CalcBaseAndBitshift function.Damien George
It's needed by the DMA driver to do an efficient reinitialisation. This patch follows what is done in the F4 HAL.
2016-12-07stmhal/hal: Update HALCOMMITS due to change in f7 hal files.Damien George
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-11-16stmhal: Update HALCOMMITS due to change to hal.Krzysztof Blazewicz
2016-11-16stmhal: Update HALCOMMITS due to change to hal.Damien George
2016-11-16stmhal/hal: do not include <stdio.h> in HAL headersKrzysztof Blazewicz
stdio.h was included in all HAL files only to provide definition of NULL symbol "stdio.h" includes "types.h" which contains some conflicting definitions with "drivers/cc3000/inc/socket.h"
2016-11-16stmhal/dma: precalculate register base and bitshift on handle initKrzysztof Blazewicz
Current version of HAL drivers optimize IRQ handler by using precalculated DMA register address and stream bitshift instead of calculating it on every interrupt. Since we skip call to `HAL_DMA_Init` on reused DMA, fields StreamBaseAddress and StreamIndex of DMA handle are not initialized and thus leads to SegFault in `DMA_IRQHandler`. HAL_DMA_Init is a big routine and we do not need to call it on each use of DMA (ex.: series of I2C operations) and DMA_CalcBaseAndBitshift is really small and releasing it increases code size by only 8 bytes.
2016-11-16stmhal/hal/sd: reapply HAL commit 09de030 for f4Krzysztof Blazewicz
2016-11-16stmhal/hal/rcc: reapply HAL commit c568a2b for f4Krzysztof Blazewicz
2016-11-16stmhal/hal: reapply HAL commit 9db719b for f4Krzysztof Blazewicz
2016-11-16stmhal/hal/sd: reapply HAL commit 1d7fb82 for f4Krzysztof Blazewicz
2016-11-16stmhal/hal/i2c: reapply HAL commit ea040a4 for f4Krzysztof Blazewicz
2016-11-16stmhal: apply STM32CubeF4 v1.13.1 patch - upgrade HAL driver to v1.5.2Krzysztof Blazewicz
2016-11-16stmhal: upgrade to STM32CubeF4 v1.13.0 - HAL v1.5.1Krzysztof Blazewicz
2016-09-22stmhal: Remove STM32CubeF2 HAL files, they are unused/unsupported.Krzysztof Blazewicz
2016-06-29stmhal: Update HALCOMMITS due to change to haldpslwk
2016-06-29stmhal: Port of f4 hal commit 1d7fb82 to l4 haldpslwk
2016-04-16stmhal: Update HALCOMMITS due to change to hal.Damien George
2016-04-16stmhal: L4: Adapt UART HAL to avoid 64-bit integer division.Tobias Badertscher
64-bit integer division brings a dependency on library functions. It is avoided here by dividing fck and baud by a common divisior. The error is the better (1/(2*0x300)) as with 64 bit division (1/(0x300)).
2016-04-16stmhal: L4: Add basic STM32L4xx HAL files.Tobias Badertscher
These files come from STM32Cube_FW_L4_V1.3.0, with Windows line endings converted to unix. Only basic HAL files are added. In addition the QSPI support is included to support later external QSPI flash as mass storage.
2016-01-30stmhal: Update HALCOMMITS due to change to hal.Damien George
2016-01-30stmhal: In HAL I2C driver, move DMA setup to after sending I2C address.Damien George
Previous to this patch the DMA was setup and then the I2C address sent. If the I2C address sending failed (eg no I2C device on the bus) then the DMA was left in an inconsistent state. This patch moves the DMA setup to after a successful sending of the I2C address(es). See issue #1765.
2015-08-03stmhal: Add HALCOMMITS file with list of commits that touch the hal.Damien George
This file should be kept up to date with list of hal commits.
2015-08-03stmhal: Port of f4 hal commit 1d7fb82 to f7 halDave Hylands
2015-08-03stmhal: Port of f4 hal commit 09de030 to f7 halDave Hylands
2015-08-03stmhal: Port of f4 hal commit c568a2b to f7 halDave Hylands
2015-07-30stmhal: Expose uwTick in f7 hal.Damien George
2015-07-30stmhal: Add hal and cmsis files from STM32Cube_FW_F7_V1.1.0.Dave Hylands
All files were converted to linux line endings. All trailing whitespace was removed using: for f in f7/inc/* f7/src/*; do sed --in-place 's/[[:space:]]\+$//' $f; done All non-ascii chars in comments were replaced with ascii equivalents or removed.
2015-07-21stmhal: Add stm32fxxx_hal_i2s_ex.c to hal/f2 (dummy) and hal/f4.Damien George
2015-07-20stmhal: Add STM32CubeF2 version 1.1.0, in hal/f2 directory.Wojtek Siudzinski
Only those files which are needed by the stmhal port are added. Also includes a dummy file (stm32f2xx_hal_pcd_ex.c) to keep the build system the same for f4 and f2 MCU series.
2015-07-20stmhal: Move HAL Cube files to f4/ subdir, keeping only those we use.Damien George
This is in preparation for supporting other MCU series, such as STM32F2xx. Directory structure for the HAL is now hal/f4/{inc,src}, where "f4" will in the future be different for other series. HAL source/header files that are not use are removed to reduce the size of the code.
2014-10-04stmhal: Adjust computation of SYSCLK to retain precision.Damien George
2014-09-15stmhal: Change 64-bit arithmetic to 32-bit for SD card block addressing.Damien George
By measuring SD card addresses in blocks and not bytes, one can get away with using 32-bit numbers. This patch also uses proper atomic lock/unlock around SD card read/write, adds SD.info() function, and gives error code for failed read/writes.
2014-09-15stmhal/hal/src/stm32f4xx_hal_sd.c: fix SDHC card capacityFelix Domke
2014-08-25stmhal: Improve efficiency of SysTick IRQ and HAL_Delay.Damien George
SysTick IRQ now increases millisecond counter directly (ie without calling HAL_IncTick). Provide our own version of HAL_Delay that does a wfi while waiting. This more than halves power consumption when running a loop containing a pyb.delay call. It used to be like this, but new version of HAL library regressed this feature.
2014-08-06stmhal: Update STM32Cube F4 HAL driver to V1.3.0.Damien George
This patch updates ST's HAL to the latest version, V1.3.0, dated 19 June 2014. Files were copied verbatim from the ST package. Only change was to suppress compiler warning of unused variables in 4 places. A lot of the changes from ST are cosmetic: comments and white space. Some small code changes here and there, and addition of F411 header. Main code change is how SysTick interrupt is set: it now has a configuration variable to set the priority, so we no longer need to work around this (originall in system_stm32f4xx.c).
2014-04-20stmhal: Add SPI class.Damien George
Also some updates to compile with latest changes to core py.
2014-03-13stmhal - More systick cleanup. Fix HAL_DelayDave Hylands
2014-03-11Initial checkin with STM HALDave Hylands
This compiles and links, but hasn't been tested on a board yet and even if it was run, it doesn't currently do anything.