Karl Palsson
23fc65d44c
ethernet: ksz80x1: fix build/compile
...
Originally sourced from: https://github.com/libopencm3/libopencm3/pull/382
fixed some typos from the manual and poor merging/rebaseing,
and one judgment call on using a specific name for a conflicting
bit definition.
2018-04-14 18:40:54 +00:00
Frantisek Burian
20b7956d82
[ETH/PHY] Add support for Micrel KSZ80X1 family of PHYs
2018-04-14 18:40:54 +00:00
Karl Palsson
6e65170390
cmsis: add new families to dispatch handlers.
...
Some people use the opencmsis headers. Update them to include all the
recently added targets.
Fixes: https://github.com/libopencm3/libopencm3/pull/907
2018-04-13 11:15:32 +00:00
Karl Palsson
297a51a27e
stm32: iwdg (v2) Update doxygen
...
Turn the existing comments into doxygen comments to get more value
2018-03-28 13:23:22 +00:00
Karl Palsson
cab07c0703
stm32: iwdg: fix Window Register name
...
The f0 copy of this file originally had a copy/paste error in the
documentation. F3 and L4 had the "right" name.
2018-03-28 13:17:39 +00:00
Guillaume Revaillot
c670bdca1a
stm32l0: enable iwdg
2018-03-28 13:06:57 +00:00
Guillaume Revaillot
207eb07d4c
stm32: centralize additionnal iwdg window register definition into iwdg-v2.
...
stm32f0, l3, l4 are currently sharing the same duplicated header, and
stm32l0 uses the same peripheral. Stop copy-pasting stuff and centralize
definitions into a iwdg_common_v2.h header.
2018-03-28 13:06:57 +00:00
Guillaume Revaillot
b79de32e9e
stm32: iwdg: fix typo in (unused) register name
2018-03-27 18:35:23 +02:00
Karl Palsson
fb28b4cb7c
stm32f1: bkp: include in doxygen output
...
The original author had included nice descriptions, so only a tiny bit
of massaging to get it all in doxygen nicely too.
2018-03-08 10:57:50 +00:00
Karl Palsson
6b40e9777e
stm32f1: bkp: fix typo in CR_TPAL register
...
Even original documentation had the full TPAL matching the ref man bit
descriptions.
Reported-by: _ami_ on irc.
2018-03-08 10:56:45 +00:00
Karl Palsson
7bd7d48408
stm32l0: add all new IRQs from later families
2018-03-08 09:52:21 +00:00
Guillaume Revaillot
1ab0d2445f
stm32l0: NVIC: channel 16 is tim3 on stm32l0x0, stm32l0x1 and stm32l0x2.
...
tim3 interrupt is wired to nvic channel 16 if present.
2018-03-08 10:25:34 +01:00
Karl Palsson
1379ab4777
stm32l4: enable common exti functionality
...
tested on l476 disco board.
2018-03-04 00:02:44 +00:00
Karl Palsson
8feb711ca0
stm32l0:rcc: add rcc_set_pll_source() as per L1
...
reported by: kaeipnos in https://github.com/libopencm3/libopencm3/pull/609
2018-03-02 22:42:05 +00:00
Frantisek Burian
28aa1e57e9
[ETH/PHY] Add support for STE100 PHY used on some boards from ST
2018-03-02 22:42:05 +00:00
Frantisek Burian
67c2f19d19
[ETH/PHY] Add support for LAN87XX family of PHYs
2018-03-02 22:42:05 +00:00
Frantisek Burian
c2c2ac766b
[eth/phy] Updated style
2018-03-02 22:42:05 +00:00
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
995d19ebfd
efm32hg: usb: add usb support
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
a86948ec6e
efm32hg: add basic makefile, interrupts, device information
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
Bruno Randolf
ec748dc895
stm32:l4: Add SYSCFG definitions
...
From RM0394 and RM0351
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
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
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
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