Karl Palsson
54b117c5a5
usb: Use enumerated return codes
...
The enum usbd_request_return_codes has been available for some time. It
should be used internally, not just by users of this code.
2018-03-02 22:42:05 +00:00
Karl Palsson
93cf76b9d1
stm32l1: syscfg: add USB pullup control definition
...
On original stm32l1s, this internal pullup was out of spec, and not
recommended for use. But the -A parts have this fixed, so make sure we
can use it.
2018-03-02 22:42:05 +00:00
Sebastian Holzapfel
64a6f362b8
usb-msc: fix write acknowledgement bug
...
Fixes https://github.com/libopencm3/libopencm3/issues/409
2018-03-02 22:42:05 +00:00
Sebastian Holzapfel
f871e539ed
usb-standard: fix alignment assumption for Cortex-M0 platforms
2018-03-02 22:42:05 +00:00
Sebastian Holzapfel
d79674db09
tests: gadget0: efm32hg: add gadget0 test for efm32hg
2018-03-02 22:42:05 +00:00
Sebastian Holzapfel
36a45c387d
efm32hg: add linker script for efm32hg309f64
2018-03-02 22:42:05 +00:00
Sebastian Holzapfel
995d19ebfd
efm32hg: usb: add usb support
2018-03-02 22:42:05 +00:00
Sebastian Holzapfel
a0669421e1
usb-dwc: handle any-aligned buffers
...
This is required to support armv6m targets using this code.
2018-03-02 22:42:05 +00:00
Sebastian Holzapfel
a2ee90fbfe
usb: stm32fx07 -> usb_dwc_common
...
The stm32fx07 is common DesignWare IP, used in both STM32 and EFM32 chips.
Rename the files to make this more clear, and easier to use in other
targets.
2018-03-02 22:42:05 +00:00
Sebastian Holzapfel
3c855e75d1
efm32hg: cmu: add updated cmu implementation based on efm32lg
2018-03-02 22:42:05 +00:00
Sebastian Holzapfel
18f64812eb
efm32hg/lg: timer: use common timer implementation
2018-03-02 22:42:04 +00:00
Sebastian Holzapfel
b0fdbe2aea
efm32hg/lg: wdog: use common wdog implementation
2018-03-02 22:42:04 +00:00
Sebastian Holzapfel
c6296a4d88
efm32hg/lg: gpio: use common gpio implementation
2018-03-02 22:42:04 +00:00
Sebastian Holzapfel
fd28881559
efm32hg: add memory map
2018-03-02 22:42:04 +00:00
Sebastian Holzapfel
7bd04bffc8
doxygen: efm32hg: update doxygen templates to include efm32hg
2018-03-02 22:42:04 +00:00
Karl Palsson
fcd06c6cae
devices.data: add more efm32hg variants
...
Some of the F32 devices only have 4k RAM
2018-03-02 22:42:04 +00:00
Sebastian Holzapfel
a86948ec6e
efm32hg: add basic makefile, interrupts, device information
2018-03-02 22:42:04 +00:00
Karl Palsson
5cb852efde
travis: build gadget-zero tests as well
...
This helps catch some perhaps unintended api changes
2018-03-02 22:42:04 +00:00
Christian Tacke
a1264f5065
stm32l4: usart: Fix USART3 definition/typo
...
USART*3* should point to *3* not *2*.
2018-02-26 12:53:42 +00:00
Karl Palsson
b19e32782a
readme: add travis status badge
...
Show off how modern we are, building everything!
2018-02-24 12:48:53 +00:00
Karl Palsson
f71798b360
tests: gadget0: stm32l1: fix wait state declaration
...
Fixes: ec1d2855b stm32l1: rcc: use better naming for flash wait states
2018-02-24 12:46:08 +00:00
Karl Palsson
11a7dcf0b9
doc: fix typos and unclear wording
...
Fixes https://github.com/libopencm3/libopencm3/issues/870
2018-02-24 12:45:10 +00:00
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