Christian Tacke
914521de90
Add RAM3 support for L4-Plus to linker generation
...
This only adds basic support.
Specific settings still need to be added.
2018-02-22 23:51:17 +00:00
Christian Tacke
0b3adfb9b3
Let the created ld script depend on devices.data
...
If devices.data changes, rebuild the linker scripts, so they have all the
new information in it.
2018-02-22 21:38:56 +01:00
Vegard Storheil Eriksen
fdaac94ba1
Add .travis.yml
2018-02-16 10:56:51 +00:00
Joel Holdsworth
8cd36ae9f9
stm32f0: Removed duplicate uart_{enable,disable}_{rx,tx}_dma functions
...
These are now defined in lib/stm32/common/usart_common_all.c
2018-02-13 23:57:43 +00:00
Bruno Randolf
ec748dc895
stm32:l4: Add SYSCFG definitions
...
From RM0394 and RM0351
2018-02-13 23:57:43 +00:00
Bruno Randolf
2e10acc0d4
stm32:l4: rcc: Use PLLM as factor, not register value
...
PLLM in the register is the "M" factor minus one and the macro is
already defined
2018-02-13 23:57:43 +00:00
Bruno Randolf
b438edf45d
stm32:l4: Add SPI
...
Same as F3, tested
2018-02-13 23:57:43 +00:00
Bruno Randolf
075ef82a4b
stm32:l4: Enable USB FS support
...
Reviewed against RM0394 and tested with STM32L433CC.
Aparently some other L4 have USB OTG.
2018-02-13 23:57:42 +00:00
Bruno Randolf
de39ab1584
stm32:l4: Add CRS
...
Reviewed against RM0394, untested
2018-02-13 23:57:42 +00:00
Bruno Randolf
2dd4655aed
stm32:l4: rcc: Add CLK48SEL HSI48
...
This is not NONE on the L4 but HSI48.
Reviewed against RM0394 and RM0351.
2018-02-13 23:57:42 +00:00
Bruno Randolf
f2c629c4ff
stm32:l4: rcc: Add support for HSI48 clock
2018-02-13 23:57:42 +00:00
Bruno Randolf
0cd92c31d6
stm32:l4: Add RTC
...
Use common, some additional registers missing
2018-02-13 23:57:42 +00:00
Bruno Randolf
c90c9fe801
stm32:l4: Add IWDG
...
Same as F3, reviewed against RM0394, tested
2018-02-13 23:57:42 +00:00
Karl Palsson
55ea31fd04
stm32l4: crc-v2: enable common code
...
Possible now that the v2 unification code has landed.
2018-02-13 23:57:42 +00:00
Bruno Randolf
7b6710a914
stm32:l4: Add DMA
...
Same as L1 according to L1-L4 migration guide, untested
2018-02-13 23:57:42 +00:00
Karl Palsson
316c33a6a3
stm32: crc-v2: tweak doxygen output
...
Make it group better and include labels
2018-02-13 23:57:42 +00:00
Gregory Schlomoff
88ca8058aa
ethernet: Add missing BEGIN_DECLS / END_DECLS
2018-02-13 23:57:42 +00:00
Gregory Schlomoff
329b611e4f
stm32: ethernet, flash: tagging some function arguments as const
2018-02-13 23:57:42 +00:00
Grigory Revzin
9ef5860863
stm32: can: removed canport argument from can_filter functions
2018-02-13 23:57:42 +00:00
Karl Palsson
0965e691a9
stm32f2/f4: rcc: deprecate old IO definitions
...
instead of hard breaking, provide them as macros pointing to the new
values, and document them as deprecated.
2018-02-13 23:57:41 +00:00
Yonghua Zheng
eeef996cb0
[BREAKING] rcc: change gpio bit defines to be consistent with reference manual
...
This _breaks_ your gpio code for F2 and F4. It makes them consistent
with the reference manual, and more consistent with all other families
and general expectations.
OLD code -> NEW code
RCC_AHB1RSTR_IOPxRST -> RCC_AHB1RSTR_GPIOxRST
RCC_AHB1ENR_IOPIxEN -> RCC_AHB1ENR_GPIOxEN
RCC_AHB1LPENR_IOPxLPEN -> RCC_AHB1LPENR_GPIOxLPEN
[We're not actually breaking it, see the next commit for deprecated
aliases]
2018-02-13 23:57:21 +00:00
Cem Basoglu
34f57ae06e
stm32: crc-v2: STM32F0/3 extended crc unit
...
Implementation of extended crc unit in f0 and f3
2018-02-13 23:57:21 +00:00
Karl Palsson
533e71777b
stm32f3: crc: drop unused empty file
...
Makefile doesn't even refer to it, and it's empty anyway. Not required
for doxygen purposes, (anymore?) so just drop it. File had _never_ been
included in the f3 makefile.
2018-02-13 23:57:21 +00:00
Karl Palsson
a2c202f944
stm32l4: doc: use autogenerate doxygen lists
...
Fixes d002d9552
doc: dynamically generate correct file lists
(which didn't convert the l4 as well)
2018-02-13 23:57:21 +00:00
Karl Palsson
a46777a2bf
doc: enable @deprecated generation
...
Not very useful having it turned off if we want to use it!
2018-02-13 23:57:21 +00:00
Karl Palsson
0f39bc6e80
doc: remove duplicate l4 generation
...
Doesn't fix l4 docs, but pointless regeneration anyway
2018-02-13 23:05:21 +00:00
Karl Palsson
d68604dedd
doc: gendoxylist: fix syntax error for first file
...
Was hidden earlier by missing new line.
2018-02-13 23:05:21 +00:00
Karl Palsson
efa49e6431
doc: gendoxylist: fix missing first file
...
Missing a \n in the descriptive print.
2018-02-13 23:05:21 +00:00
Karl Palsson
0a6b5653b5
doc: stm32: rcc all: fix typo in doxygen
2018-02-13 23:05:21 +00:00
Karl Palsson
6580721fd1
doc: stm32 can: fix missing doxygen group
2018-02-13 23:05:21 +00:00
Karl Palsson
67d1a63412
doc: stm32:gpio: fix invalid doxygen
...
Just reduces more doxygen warnings, and adds more helpful text.
2018-02-13 23:05:21 +00:00
Karl Palsson
6511b89b27
doc: mk: remove generated files on clean
2018-02-05 21:00:43 +00:00
Karl Palsson
4ba3a27f80
mk: cleanup genlinktests
...
Even if they don't work, at least make them clean up afterthemselves
2018-02-05 21:00:43 +00:00
Karl Palsson
01320881e7
stm32: adc-v2: don't attempt to wait for start.
...
The ADC v2 peripheral doesn't have the same behaviour of starting, where
the hardware clears the bit immediately, on v2, it is not cleared until
the ADC is stopped, or the end of sequence flag is set.
Fixes https://github.com/libopencm3/libopencm3/issues/557
2018-01-25 12:34:03 +00:00
King Kévin
3922cc7d3e
STM32: add MASK defines in sdio.h
2018-01-08 11:18:38 +00:00
Karl Palsson
ed90df85f0
stm32:i2c-v2: Clarify digital filter setting
...
Drop redundant field definitions, fix truncation of argument bug and add
documentation.
Fixes: https://github.com/libopencm3/libopencm3/issues/831
2018-01-08 11:16:24 +00:00
Paul Fertser
965d28ecbe
stm32: ethernet: clarify DMA descriptors buffer requirements
2018-01-08 11:14:07 +00:00
Peter Mortensen
1de1886384
Update README.md
...
Copy edited.
2018-01-07 20:53:01 +01:00
WGH
f59d47cbd1
docs: usb: clarify usbd_register_control_callback()
...
Expand notes on when the control callbacks must be registered.
Reviewed-by: Karl Palsson <karlp@tweak.net.au>
2018-01-04 17:01:48 +00:00
Karl Palsson
c4cf904ef6
spi: drop misleading explicit baudrate comments
...
The SPI br parameter has always been the 3 bit fpclk divider field, and
was never a target or explicit bit rate. Correct the comments, and drop
the duplicate commentary that wasn't included in the doxygen output
anyway.
Fixes: a7a3770d
Add initial SPI code
2018-01-04 09:59:18 +00:00
Yonghua Zheng
580a2a4a63
stm32f7: usart: enable usart peripheral
...
Add usart-v2 to stm32f7 to provide usart support in f7 series.
2017-12-07 10:59:32 +00:00
Karl Palsson
ef04708e92
stm32: pwr-v1: doxygen-ize bit definitions.
...
Rich commentary already existed, just add the second * to let doxygen
pick it up.
2017-12-07 10:33:09 +00:00
Karl Palsson
297d996fa0
stm32f3: pwr: drop duplicate definitions
...
These definitions were in the already included pwr_common_v1.h file.
And add extra WKUP bit definitions.
2017-12-07 10:33:09 +00:00
Baker Ngan
41e14b71b7
stm32: pwr-v1: fix voltage detection logic
...
Reviewed-by: Karl Palsson <karlp@tweak.net.au>
2017-12-07 10:33:06 +00:00
Baker Ngan
e1914eba74
stm32f3:include power ctrl module object files
2017-12-07 10:25:04 +00:00
Karl Palsson
953bf531ea
awk->gawk: Make the gawk dependency explicit
...
Until https://github.com/libopencm3/libopencm3/issues/732 has been
fixed, it's not enough to just have it in the README that you need GNU
awk. Explicitly use the "gawk" command name. This exists on (sane)
systems that have gawk as awk, and for systems that use mawk as default,
the gawk name should also exist.
This should make it significantly easier to diagnost the cause of build
problems.
2017-11-19 20:52:05 +00:00
Damien Nicolet
19d296dd7b
stm32f4: qspi: Typo correction in QUADSPI_ABR
2017-11-16 23:57:11 +00:00
Karl Palsson
368a33773f
stm32:l4: usart: add missing header
...
Fixes: f6796604
stm32:l4: enable usart peripheral
2017-11-10 18:02:14 +00:00
Karl Palsson
f67966046a
stm32:l4: enable usart peripheral
...
Tests in https://github.com/karlp/libopencm3-tests/tree/master/tests/uart-basic
2017-10-25 23:54:32 +00:00
Karl Palsson
c119ee7f9a
stm32:l0: enable usart peripheral
...
Now that the usart-v2 peripheral is extracted cleanly, adding it for l0
is very simple.
2017-10-25 23:26:52 +00:00