Jonathan Halmen
ec2d96433f
stm32f4: rcc: add plli2s config function
2019-09-27 13:55:56 +00:00
Jonathan Halmen
203d0ca295
stm32f4: rcc: remove unnecessary pllsai functions
...
existing standard functions for these are
* rcc_osc_on(RCC_PLLSAI);
* rcc_is_osc_ready(RCC_PLLSAI);
2019-09-27 13:43:06 +00:00
Guillaume Revaillot
8a1cfa8ceb
stm32g0: use proper register for gpio peripheral clock sleep enable.
...
Reviewed-by: Karl Palsson <karlp@tweak.net.au>
2019-08-28 20:54:35 +00:00
Guillaume Revaillot
998e647dde
stm32g0: memorymap: get rid of apb1/apb2 reference, device only has one apb.
...
I apparently based memorymap.h on previously written header without noticing
that g0 has only one apb despite a big hole in the memory space and addresses
matching usual apb1/apb2 split..
2019-08-28 12:03:55 +02:00
Guillaume Revaillot
562dca7358
stm32f4: doc: f4 are cortex m4f based
2019-08-28 01:41:14 +00:00
Guillaume Revaillot
ec597796d7
stm32g0: fix bad typos in memorymap, impacting tim1 and tim15-17.
2019-08-27 16:24:42 +02:00
Guillaume Revaillot
3eff201a4b
doc: stm32: adc: upgrade common_v2 documentation
...
add register grouping, fixup comment have them pickedup by doxygen, align style and masks.
2019-07-06 15:38:49 +00:00
Guillaume Revaillot
2035d84e55
stm32: lptim: add base support
...
Add basically what's needed to have some minimal but usefull subset of
function for a timer: irqs, compare, period, out polarity, enable/disable
and start.
2019-07-05 11:43:11 +02:00
Guillaume Revaillot
f99e711873
stm32g0: lptim: add additional cr bits and cfgr2 reg.
2019-07-05 11:43:11 +02:00
Guillaume Revaillot
811aebf096
stm32: lptimer: enable lptimer.h usage on f4,f7,l4 and g0 chips.
2019-07-05 10:48:55 +02:00
Guillaume Revaillot
2975c3151a
stm32: extract l0 lptimer stuff from timer.h to common lptimer.h
...
lptimer peripheral is present on f4,f7,l0,l4,g0,g4 and prob others. Extract
content from stm32l0 timer.h and make it usable by other chips.
2019-07-05 10:48:26 +02:00
Guillaume Revaillot
689e326f5f
stm32f4: lptim1 sits at 0x40002400 on stm32f410, update memorymap
2019-07-02 18:27:43 +02:00
Karl Palsson
38d88c6113
doc: stm32f0: rcc: add missing groups for pll factors and sources
2019-06-27 14:53:09 +00:00
Karl Palsson
1964fd72f2
doc: stm32f3: adc: register base addresses had landed outside a group
2019-06-25 21:15:35 +00:00
Karl Palsson
f63145db07
doc: stm32f7: rcc: add missing top level groups
2019-06-25 21:15:19 +00:00
Karl Palsson
2d0d29d946
doc: stm32l1: timer: fix params, missing groupings
2019-06-17 22:33:32 +00:00
Guillaume Revaillot
7d344b187d
stm32: dma: add dma_set_channel_request to ease dma cselr usage.
2019-06-17 11:44:44 +00:00
Guillaume Revaillot
eb0bc099f4
stm32l0: dma: include dma_cselr, present on l0x1-2-3.
2019-06-17 11:44:44 +00:00
Guillaume Revaillot
e06898d9a4
stm32: dma: cselr: factorize register definition.
...
F09x and L4 share the same cselr register, as well as some L0s, factorize
definitions in a new shared header and add helpers.
fyi, that register allows to redefine dma channel peripheral mapping - see
device datasheet for mapping tables.
2019-06-17 11:44:44 +00:00
Karl Palsson
19f1160ad1
doc: stm32: timer: remove redundant groupings and consistent names
2019-06-16 18:17:06 +00:00
Karl Palsson
0b0a4de7c2
doc: stm32l0: fix doxygen groupings.
...
Makes some @ingroup directives redundant.
2019-06-16 18:02:41 +00:00
Guillaume Revaillot
594c354068
stm32: l0: timer/lptimer: doc+
...
better doc for l0 lptimer registers, add mask.
2019-06-16 09:48:34 +02:00
Guillaume Revaillot
ab1b0c1a5e
stm32g0: exti doc fixup
2019-06-13 12:04:58 +02:00
Guillaume Revaillot
8173fb7249
stm32g0: add timer.
...
Only tim2/3/7/14 have been really tested yet - but the others should
work as well.
2019-06-13 12:04:58 +02:00
Guillaume Revaillot
74526f00cc
stm32g0: add crc.
...
Regular crc-v2 peripheral, except that CRC_IDR is now 32bit wide - but
not used.
2019-06-13 12:04:58 +02:00
Guillaume Revaillot
38006c3c82
stm32g0: add rng.
...
Regular rng peripheral, with one additional bit : clock error detection
apparently available on l4 chips). Curiously, Clock error detection is
_disabled_ when bit is set, but bit is cleared by default, so peripheral
/ clock error detection behaves like all other chips..
NB: RNG need proper rcc_ccicr_rngsel bits set to work, no clock is set by
default. Note also that on that chip fRNGCLK must be higher than fHCLK/32
2019-06-13 12:04:58 +02:00
Guillaume Revaillot
5a349d3ab6
stm32g0: add i2c.
...
Regular i2c peripheral.
Partially tested as i had no i2c slave on hand, but i can see i2c on my scope..
2019-06-13 12:04:58 +02:00
Guillaume Revaillot
ba3b50a4ad
stm32g0: add spi.
...
classic "common" spi + frf bit spi peripheral.
As for i2c, i could only check signals on scope, no spi slave to check, but looks ok.
2019-06-13 11:56:20 +02:00
Guillaume Revaillot
a51ecb4719
stm32g0: add usart.
2019-06-13 11:56:20 +02:00
Guillaume Revaillot
bb98d0755c
stm32g0: add iwdg.
...
regular v2 iwdg.
2019-06-13 11:07:53 +02:00
Eric Van Albert
3d422a930f
stm32l4: add common DAC support
...
Replace the DAC1_BASE style, only used on l4 with the standard DAC_BASE
used on all other targets.
Reviewed-by: Karl Palsson <karlp@tweak.net.au>
2019-06-12 23:25:22 +00:00
Karl Palsson
9f58ad4393
doc: fix trivial missing trailers or typos
2019-06-12 23:16:58 +00:00
Karl Palsson
55c899c93b
doc: stm32l0: rcc: add groups requested by existing docs
...
And cleanse the arguments to all match the docs.
2019-06-12 23:06:28 +00:00
Karl Palsson
7b6ca4be6b
doc: stm32l0: rcc: add groups and tags for bus prescalers
2019-06-12 23:06:28 +00:00
Karl Palsson
a2681b3122
doc: stm32f4: crypto trivial closing tag fix
2019-06-12 23:06:27 +00:00
Karl Palsson
502593ca6f
doc: stm32: exti-v1: fix conditionals, add registers
...
Fixes some missing definitions. cond/endcond is hard to get right
sometimes!
2019-06-12 23:06:22 +00:00
Karl Palsson
867bd164eb
doc:stm32: usart: fix grouping and heirarchy of base addrs
...
They were always landing on the top level, or not even present.
2019-06-12 23:06:22 +00:00
Karl Palsson
cfdb9b7856
doc: stm32f0: rcc: add groups and tags for bus prescalers
2019-06-12 23:06:22 +00:00
Karl Palsson
121d854841
doc: stm32: crc-v2 fix up markup for doxygen
...
Eliminates errors, fixes groupings, adds missing groupings.
2019-06-12 23:06:22 +00:00
Karl Palsson
7c0320bf21
doc: stm32g0: rcc: add groupings for periph resets
2019-06-12 23:06:22 +00:00
Karl Palsson
4129d89637
doc: stm32f7: rcc: add groupings for periph resets
2019-06-12 23:06:22 +00:00
Karl Palsson
5d3f13c40e
doc: stm32f4: rcc: add groupings for periph resets
2019-06-12 22:56:38 +00:00
Karl Palsson
64893177ed
doc: stm32f3: rcc: add groupings for periph resets
2019-06-12 22:56:38 +00:00
Karl Palsson
5ba8d94b81
doc: stm32l4: rcc: add groupings for periph resets
...
As we did with f2, use a parent grouping to contain the different sets
of APB1 fields.
2019-06-12 22:56:38 +00:00
Karl Palsson
e6e1c239e4
doc: stm32l0: rcc: add groupings for periph resets
2019-06-12 22:56:38 +00:00
Karl Palsson
da3466057b
doc: stm32f2: rcc: add groupings for periph resets
...
We use a parent grouping to make the generic "AHB" groups work, even
though F2 and many later families have AHB1, AHB2 and AHB3
2019-06-12 22:56:34 +00:00
Karl Palsson
21a0c1178c
doc: stm32l1: rcc: add groupings for periph resets
2019-06-12 21:56:13 +00:00
Karl Palsson
c7ce1ddd1a
doc: stm32f0: rcc: add groupings for periph resets
...
As done earlier for other families, makes the doxygen linking working
properly.
2019-06-12 21:56:13 +00:00
Karl Palsson
ce5d1ca9a2
doc: restore targets as pages.
...
You can't have two mainpage items, and the second was just being
ignored. This restores them, which makes the left side list longer,
which we may or may not like, but it's at least how it was documented to
be.
2019-06-10 11:10:34 +00:00
Guillaume Revaillot
a652856533
stm32l0: rcc: add rcc_set_peripheral_clk_sel(periph, sel)
2019-06-03 22:29:45 +00:00