Commit Graph

2753 Commits (master)

Author SHA1 Message Date
Harald Welte 32da9f931b vector.h: Add slot for openblt signature
The openblt boot loader needs one extra slot in the vector table in
order to store the signature and detect a valid boot image.
2021-03-28 21:40:42 +02:00
Bastian de Byl 0d72e6739c stm32 added better RTC periph API functions
Originally tracked at
2021-03-25 21:11:07 +00:00
Karl Palsson dc6ebac841 stm32h7: fix typo in fdcan2_it1 irq definition
reported by Ventyl on irc.
2021-03-25 21:05:02 +00:00
Eduard Drusa 458250dc61 STM32G4: Add support for FDCAN
Add stm32g4 support for FDCAN peripheral. Normal / FDCAN operation
supported, bitrate switching and filtering supported via API.
Timestamping and transmit event buffer support in API are TBD.

Originally tracked as:
Reviewed-by: Karl Palsson <>
2021-03-16 20:46:15 +00:00
Jean THOMAS a9cc695381 stm32: i2c: Use const qualifier for read-only pointer in i2c_transfer7 2021-02-26 13:07:20 +00:00
Marek Koza b4c03a840d stm32: rtc-v2: Fix ADD1S bit definition in the RTC SHIFTR register 2021-02-23 09:27:16 +00:00
Karl Palsson aeb3cee023 stm32h7: document optional parameters
Provide linking and explanations of optional values
2021-02-04 10:02:06 +00:00
Brian Viele c2dbea012b stm32h7: Updated pwr and rcc configs to support devices with SMPS.
Worked in nuances for differences between versions of STM32H7 devices, such as
handling of ODEN, explicit SCUEN bit, and different VOS mappings. This has
been validated on the STM32H7A3 and STM32H743 MCUs.
2021-02-04 09:43:47 +00:00
Karl Palsson 7b88c2d9d2 samd: doc: links and spelling
Fixes all doxygen warnings for samd. yay
2021-02-03 23:23:30 +00:00
Karl Palsson 49327dcdc4 samd: port: fix coding style
We always use braces.
2021-02-03 23:23:30 +00:00
Karl Palsson 458a0553a8 samd: overhaul doxygen 2021-02-03 23:23:28 +00:00
Karl Palsson b57dbc5429 samd: enable new port file 2021-02-03 23:08:08 +00:00
Gwenhael Goavec-Merou d11680638b sam:d: port: complete port (define, configuration and access) 2021-02-03 22:30:07 +00:00
Jacob Potter 5b9b784b30 cm3: scb: add Cortex-M7 cache registers and bits
Cortex-M7 supports a D-cache and I-cache on the AXI bus, controlled by these bits in SCB.
2021-02-03 22:17:21 +00:00
Karl Palsson 8722a03e2f stm32: enable quadspi for f7/g4/l4
Seeing as we'd started it, might as well finish enabling all the common
2021-01-29 14:03:46 +00:00
Karl Palsson ca479ad7d2 stm32: quadspi overhaul documentation
Provide all doxygen framework boilerplate.
Provide a very initial stub .c file to ensure that heirarchical headers
are pulled in properly.
2021-01-29 13:00:53 +00:00
Karl Palsson 2daef7c3ec stm32h7: enable quadspi includes
Fixes: fcb030cc883ca14 which left off the include header.
2021-01-29 13:00:49 +00:00
Karl Palsson c02ccfe47e stm32: quadspi: restore copyright after file move
The f4 quadspi implementation was moved to the -v1 file, so the
copyright should have moved with it.
2021-01-29 13:00:49 +00:00
Matt Walker 0cf8a47d88 STM32H7: Add QSPI Defines
Move the STM32F4 QuadSPI peripheral defines to the common folder as the
F4 and H7 variants of the IP share almost all the same bits. For those
bits that are separate put them into their own headers.
2021-01-29 13:00:49 +00:00
Karl Palsson 7df670b6aa stm32: usart: fix doxygen for h7 at least
The usart_common_fifos uses a very nice style of docs in the headers, so
inline help works in some editors, without having to have the source of
the library available as well.  However, it means that the group
definition with the name doesn't appear until later, and then the title
is ignored.  Move the description to the header definition instead.
2021-01-29 13:00:49 +00:00
Karl Palsson 5f4e2b3758 stm32:i2c-v1: eliminate doxygen warnings
We deprecated the defines in favour of just using the value itself, so
there's no longer a defined group to reference.
2021-01-28 00:33:07 +00:00
Karl Palsson bcccfc4a63 stm32h7:doc: eliminate some doxygen warnings. 2021-01-28 00:32:47 +00:00
Karl Palsson 7f74d92e34 stm32:dac:doc: clarify availability on part families 2021-01-27 23:50:22 +00:00
Karl Palsson 0f1f1ebd1a stm32:dac: Fix waveform generation apis
These were broken earlier, with no sane way of passing in correctly shifted
values, and didn't match examples.

Noticed while merging:
2021-01-27 23:50:22 +00:00
Karl Palsson 8295d248e0 stm32:dac: new api for waveform characteristics
Old API required users to manually construct bit maps frm opaquely named
defines, with little help.  It also was a pure OR operation, with no way
to ever clear bits.

Signed-off-by: Karl Palsson <>
2021-01-27 23:50:15 +00:00
Karl Palsson da9db7f1f5 stm32:dac: fix doxygen tags on v2
Trivial copy paste error.
2021-01-26 22:33:33 +00:00
Stijn Martens f9d5fb738e stm32: usart: add idle interrupt enable/disable 2021-01-26 10:43:23 +01:00
Karl Palsson 34a44af4e4 stm32: dac: fix doxygen parameter link 2021-01-24 22:34:10 +00:00
Karl Palsson 4576f29048 stm32g4: adc: fix doxygen grouping
avoids stub groups
2021-01-24 22:28:15 +00:00
Karl Palsson 59fdb61bf2 stm32: dac: doc: link data types
And also drop pointless whitespace and divider markers
2021-01-24 22:23:25 +00:00
Karl Palsson 3eb94bb335 stm32: dac: document: whitespace for legibility 2021-01-24 22:10:05 +00:00
Karl Palsson 4fe5103851 stm32: dac: doxygenize the registers and values
Not 100% complete, but far closer, mostly just tagging the existing
information properly to get it included.
2021-01-24 22:08:20 +00:00
Karl Palsson 03cfd6b1ac stm32: dac: doxygen grouping for register bases 2021-01-24 21:38:50 +00:00
Karl Palsson fda0282b43 stm32f0: dac: drop redundant definitions
we're breaking the DAC api already, so don't bother keeping f0 specific
aliases for some of the t1 triggers.
2021-01-24 21:36:21 +00:00
Ben Brewer 1ebf172bcb stm32/dac: Update API to support multiple DACs and add v2 support 2021-01-07 15:30:51 +00:00
Kejia Hu 52781dee56 stm32g4: add SPI
The SPI peripheral on G4 is identical to F3, this patch copies the
header files directly from F3
2020-12-11 11:15:02 +00:00
Karl Palsson a499ea3480 stm32: timer/dmamux: fix broken includes
bad Karl, you can't just _start_ using pragma on common files, and
expect it to keep working.  Just finish, convert them fully to pragma.

pros: no more weird @cond boilerplate mess and trailing #endifs. easier
to follow
cons: no warning for people who deliberately try and include things in
bad orders.
2020-12-10 23:00:11 +00:00
Karl Palsson 1abb945dcd stm32f7: flash: doxygenize existing comments.
Just putting it in a different place and it all gets included in the
output nicely.
2020-12-10 22:26:05 +00:00
Karl Palsson 97d5e9a403 doxygen: fix more broken groupings 2020-12-10 22:25:51 +00:00
Karl Palsson 992a4d3753 stm32: rtc: doxygenize existing docs
Might as well show the information we have!
2020-12-10 22:00:03 +00:00
Karl Palsson e07f23bb70 doxygen: fix many warnings on "end of file while in group" 2020-12-10 21:51:48 +00:00
Karl Palsson 6f81e49290 stm32:crc: simplify doxygen and fix groupings
The @cond stuff has always been a lot of work for the rare cases of
people trying to include things by hand.  Just drop it
2020-12-10 21:34:49 +00:00
Ben Brewer e923a6fe6a stm32g4: Add support for OPAMP
Move implementations into common and split into v1 and v2.
2020-12-10 16:46:24 +00:00
Karl Palsson 8435287300 stm32: dma: doxygen fixups
Use a single @defgroup for the "root" of a common heirarchy, and only
addtogroup for additions.  This prevents an alphabetically "first" entry
from being used as the documentation for the entire group.
2020-12-02 00:04:44 +00:00
Karl Palsson 382dde5a6d stm32f7/g4: usb: enable all classes 2020-12-01 23:37:26 +00:00
Karl Palsson f82053000c stm32: crs: fix doxygen
We need per device header includes to make the per target documentation
generation work properly.  The dispatch headers are to dispatch to the
_target_ not directly to the final implementation, remember, the final
required headers for each may be multiple files, plus extra definitions!
2020-12-01 23:13:38 +00:00
Ben Brewer 98855377c6 stm32g4: Enable CRS 2020-12-01 22:41:07 +00:00
Sam Kirkham 82b4626ae3 stm32g4: Add support for USB
Co-authored-by: Ben Brewer <>
2020-12-01 22:41:07 +00:00
Sam Kirkham cdf235ca0c stm32g4: Add support for ADC
Co-authored-by: Ben Brewer <>
2020-12-01 22:41:07 +00:00
Ben Brewer 7219b32902 stm32: adc_common_v2: Make EXTSEL and ALIGN definitions per chip
STM32G4 uses v2 ADC but has EXTSEL and ALIGN fields modified, rather
than making a v3 ADC for these minor changes, the definitions have been
moved to the chip specific headers, so that the common code can work for
G4 onwards.
2020-12-01 22:41:02 +00:00