Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thirdpin/libopencm3.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-04-29stm32: rework spi, based on PR #740 and #742.Guillaume Revaillot
split spi stuff in three part: - v1 : basic spi peripheral - v1_frf : v1 spi with frf mode additional bit in spi_cr2 / spi_sr - v2 : spi with variable datasize, fifo and other fancy stuff. v1 maps to f1 chips v1_frf to f2, f4 and l0,l1 v2 to f0, f3 and l4 This breaks spi_master_init API for v2 devices : function prototype from common spi header used to be abused, with DFF bit reused for CRCL bit. New v2 spi_master_init does not handle anymore CRCL bits, as it does not usually mess with other crc configuration.
2016-01-04stm32: spi: correct typo in PHILIPSKarl Palsson
Fixes: #589 on github
2015-10-15Surround all macro parameters with ()Karl Palsson
All the macro arguments that are user supplied, or potentially, wrap properly in () as good practice. Probably missed one or two, and a lot of them are possibly unnecessary, but it's straightforward to just do it always. Fixes github issue #321
2015-05-25stm32: spi: Standard mode selectionKuldeep Singh Dhaka
Allow setting cpol/cpha via standard mode numbers, instead of separate calls for each bit.
2014-10-07stm32/spi: Replace all SPIx_I2S_BASE with SPIx_BASEKarl Palsson
Latest versions of all reference manuals refer to the address as SPIx_BASE, and simply name some of the individual registers as SPI_I2SXXXX. Likewise, the interrupts are simply SPIx, not SPIx/I2Sx. Rather than hacking more duplicates into the F0 and L0 parts where this was turning up, remove the pointless _I2S_ from SPI2/SPI3 and make it all consistent Compile tested only, with the examples collection. Signed-off-by: Karl Palsson <karlp@tweak.net.au> Fixes #331 Fixes #347
2014-03-11Changes to the header includes for all STM32 peripheralsKen Sarkies
to remove variations, redundancies, add missing, fix errors. All c files refer only to the dispatch style headers in /include/stm32. Those headers #include memorymap.h and cm3/common.h. All references to these are removed from the family specific headers. Ethernet untouched as it appears incomplete. Added dummy spi.c for F0/F3. Fix some doxygen anomalies.
2014-02-06Updates for STM32F429 chipcmcmanis
After a few rounds of review, changes are added to support additional peripherals of the STM32F427/429
2014-01-16Fix a number of top level doxygen issues.Ken Sarkies
So that the navigation pane works correctly in browsers. Some additional doc fixes put in where found (but many more still to go). Added some dummy .c and .h files to bring the associated docs into line. makefile changed to allow 'make html' as well as 'make doc' (the latter only does html anyway).
2013-07-08[STM32F3] Removed all specific F3 stuff out of common files.Piotr Esden-Tempski
2013-07-08stm32f3: i2c support increased. Now it works.Federico Ruiz Ugalde
- Several functions added (that only work on the f3) - The data register now has a 8bit access counter part that is necessary for 8bit transmissions, together with the access functions. - The init master functions doesn't work for the f3.
2013-07-08stm32f3: spi support added.Federico Ruiz Ugalde
2013-06-13Stile fixes run, 80 char boundry.Piotr Esden-Tempski
2013-06-13Changed to use stdint types.Piotr Esden-Tempski
2013-06-13First coarse run to fix coding style in locm3.Piotr Esden-Tempski
Added --terse and --mailback options to the make stylecheck target. It also does continue even if it enounters a possible error. We decided on two exceptions from the linux kernel coding standard: - Empty wait while loops may end with ; on the same line. - All blocks after while, if, for have to be in brackets even if they only contain one statement. Otherwise it is easy to introduce an error. Checkpatch needs to be adapted to reflect those changes.
2013-06-03Changes to doxygen markup to solve a few problems that upsetKen Sarkies
doxygen, and to correct minor errors.
2013-03-07Add test in common headers for improper inclusion of such files in application.Ken Sarkies
(prevents inclusion and also issues warning) Changes to some source files to remove references to common headers. Changes to rng.h to make guard symbols the same in f2 and f4.
2013-03-07Repair to documentation (most documented files)Ken Sarkies
to remove errors, duplications and inconsistencies. File lib/stm32/f1/pwr.c - all code removed as it duplicates that in common/pwr_common.c Remaining changes do not affect code. Compiles OK. TODO efm32 has no code so generates no modules TODO F2 needs pwr.c TODO L1 needs dma.h and dma.c
2013-02-27[stm32] [lib] Fixed declaration of spi_clean_disable to match implementation.Piotr Esden-Tempski
2013-02-27Implement SPI clean disable from TODO commentZachary Crockett
2013-01-08STM32: Moved SPI code into the common area.Ken Sarkies
Updated the documentation so that it appears in all families Also added it to the L1 area, but is untested. An addition to the memorymap allows commonality and a #ifdef added to the spi_common_all code to exclude the case of SPI3 for L1 and F0 as SPI3 doesn't exist in those. An rcc dispatch header was added to remove same code from the spi header.