Guillaume Revaillot
553c876fa5
stm32: exti: define AFIO/SYSCFG_EXTICR_FIELDSIZE for all chip.
While on all current chips, exticr gpio port mux selection is coded on 4 bits,
stm32g0 EXTI_EXTICR register uses 8 bits. Align all exti header to reference
that value (was previously defined for f0 as SYCFG_EXTICR_SKIP)
6 years ago
Guillaume Revaillot
7afd86db30
stm32l[01]: flash common: add flash_unlock_acr, allowing to unlock FLASH_ACR RUN_PD bit.
flash_unlock_acr allows to unlock RUN_PD bit from FLASH_ACR register. Relock is done automatically
when writing 0 to RUN_PD, so no flash_lock_acr method.
6 years ago
Guillaume Revaillot
74f460feac
stm32f0: adc: fix doc.
6 years ago
Guillaume Revaillot
ff9664389b
stm32: exti: move register definition of all current stm32 devices to common_v1
Preparation for stm32g0 support, as this chip's exti register map evolved and is
no longer common ...
6 years ago
Harold Tay
9cadd60b3c
stm32: rtc: Fixed typo in macro def (RTC_DR_MT_MASK)
6 years ago
Guillaume Revaillot
708fe1516c
stm32: fix nvic channels name to match dma1/2 on stm32f09x
7 years ago
Guillaume Revaillot
b725a793bf
doc: align doc, add missing entries in layouts.
6 years ago
Karl Palsson
9551da6b6b
devices.data: add stm32l15xx E series
Bigger brother parts, such as the l152re nucleo64 board.
6 years ago
Darrell Harmon
718f86935a
EFM32 I2C: fix base undeclared
libopencm3/include/libopencm3/efm32/common/i2c_common.h:234:29: error: 'base' undeclared (first use in this function)
#define I2C0_CTRL I2C_CTRL(base)
6 years ago
Karl Palsson
33387e8f96
stm32f0:adc: add missing declaration
fixes: 7e1d3daa
stm32f0: adc: API call to clear EOS flag
6 years ago
Karl Palsson
4edba3111d
common: support inclusion into assembly files
Suggested in https://github.com/libopencm3/libopencm3/pull/981
6 years ago
Karl Palsson
72e449f529
stm32f3: rcc: fix typo in PLL clocks for APB1
Reported by jabjoe on irc, fixed by zyp
6 years ago
Karl Palsson
ad10e96811
stm32l4:dma: add Channel Selection defines
Far from complete support for the channel selection systems on f0/l4,
but at least brings in the defines needed for doing this yourself.
Fixes https://github.com/libopencm3/libopencm3/issues/1001
6 years ago
Patrick Yeon
7e1d3daa11
stm32f0: adc: API call to clear EOS flag
6 years ago
Alfred Klomp
1adc418f9a
stm32f42/f43: rcc: add 180 MHz clock options
6 years ago
Alfred Klomp
f0e5c73d98
stm32: pll: disable before configuring
6 years ago
Karl Palsson
8b13977ea0
stm32f0: add DMA1 compatibility alias
6 years ago
Alfred Klomp
b7a9968e4f
fixup! stm32f09: add register definitions for DMA2
6 years ago
Alfred Klomp
a9c0008290
stm32f09: add register definitions for DMA2
6 years ago
Alfred Klomp
53347c266b
stm32f09: add register definitions for USART5..8
6 years ago
Karl Palsson
3af05fb862
stm32f7: spi: fix include error
Badly splitting commits.
Fixes: 2619a45
stm32f7: use spi v2 peripheral
6 years ago
Karl Palsson
1883a4311f
msp432: whitespace fixups spaces->tabs
whitespace only change.
6 years ago
Dmitry Rezvanov
a63d0499de
msp432/e4: Add GPIO support
6 years ago
Karl Palsson
2619a4506c
stm32f7: use spi v2 peripheral.
F7 indeed has v2 peripheral, not the v1. Distinguishing figure is the
8/16bit fifo.
6 years ago
Karl Palsson
076cd67530
stm32: spi-v2: Frame format is available for all.
All spi v2 peripherals include the Motorola/TI Frame formatting options
introduced with F2.
6 years ago
mfm
f6517f7816
stm32: adc common v2: add circular dma mode
Tested only on the F3 so far.
7 years ago
Karl Palsson
bc7e454741
stm32f7: include common dma code
Originally reported at https://github.com/libopencm3/libopencm3/pull/978
6 years ago
Guillaume Revaillot
18eadcfda5
stm32: timer_common: add timer21-22, found on stm32l0 chips.
stm32l0 devices have tim21 and tim22.
6 years ago
Filip Moc
4b16af6e24
stm32: iwdg: correct calculation for all ranges.
The original calculations miscalculated ranges such as
512..639 or 1024..1151 or ... or 32768..32895
Reviewed-by: Karl Palsson <karlp@tweak.net.au>
6 years ago
Karl Palsson
239b4a4704
stm32f7: add irqs from latest ref manuals
Updated from RM410 rev4, RM0385rev8 and RM0431 rev3
Originally reported at https://github.com/libopencm3/libopencm3/issues/974
6 years ago
Karl Palsson
0994762ae7
nvic: include the source json filename in the generated output
Make it a bit more obvious to people what they need to change.
Reported via: https://github.com/libopencm3/libopencm3/issues/974
6 years ago
Jacob Rodgers
e2b67d7264
Set PLL source in rcc_clock_setup_pll() for STM32L0
6 years ago
Karl Palsson
6b0fd864a1
stm32f7: fix RCC_APB1 defns for USART7/USART8
The reset and low power definitions for USART7/USART8 were correct, but
not the primary enable registers.
Fixes: https://github.com/libopencm3/libopencm3/issues/969
6 years ago
Karl Palsson
0d7f1f7708
stm32: f24: dma: clarify stream/channel
It's always stream on the "new" dma controller (unless it's channel....)
Fix a couple of inconsistent prototypes that had carried over from f1
originally. Reported by vampi on irc.
6 years ago
Karl Palsson
cccc1267c5
stm32f7: drop toolchain check for m7 support.
the 2014q3 or later toolchains are now readily available, and we should
now just consider this a user problem. This gets us out of trying to
parse compiler help output and chasing our own tail.
Fixes https://github.com/libopencm3/libopencm3/issues/965
6 years ago
Karl Palsson
9ddafa6284
stm32f7: enable common timers support
7 years ago
Karl Palsson
cae295ee2c
doc: cm3/scb+scs: turn on existing documentation
Lots of registers were already documented extensively. Turn it all in
doxygen with groups and the right syntax.
6 years ago
Karl Palsson
1ad2cda496
doc: add all cm3 headers to doxygen.
Just get them all included as they are. Gets them grouped up and
visible so we can start clarifying the rest of their docs.
6 years ago
Karl Palsson
a21aeab3b1
doc: make sure include/cm3 is pulled in properly.
Much as we had to pull in the individual target's include files
manually, because they're useful without necessarily having .c files
using them, the cortex core headers also need to be included. This also
pulls in the doc-cm3.h file that setup nice groupings.
6 years ago
Karl Palsson
6f0f2ebe8e
readme: add miniblink/template references
6 years ago
Karl Palsson
e04f10e591
tests: gadget0: stm32f3: use library clock setups
F3 rcc configs were overhauled and we can now use standard init code
instead of specifying our own custom clock config.
6 years ago
Karl Palsson
de538c4b80
stm32f7: desig: link common implementation
6 years ago
Clara Casas
889b7de0d7
stm32: adc: Add functions to get and clear flags
This includes adding documentation to the status flags.
Originally tracked at: https://github.com/libopencm3/libopencm3/pull/833
Modified to drop whitespace changes, and simply boolean return.
7 years ago
Daniel Gröber
743513a4b1
stm32: add dma_get_number_of_data
Original discussion at: https://github.com/libopencm3/libopencm3/pull/702
8 years ago
Karl Palsson
824beaa472
lm4f: timers: add basic register definitions
Add the timers to the memory map and the basic registers at least.
6 years ago
Karl Palsson
08c76f25ec
stm32: spi: drop empty spi.c files.
They were originally used to make sure that the doxygen was generated
correctly, but that style is no longer necessary.
There may be more peripherals that can be "cleaned" like this, but let's
do them one step at a time, as we work on that area.
6 years ago
Florian R. Hölzlwimmer
f3c620b51b
stm32f7: spi: include common code
6 years ago
Karl Palsson
00e32ccb4c
gitignore new generated code
6 years ago
Karl Palsson
b7ec3f0b11
tests: usb gadget0: ti: use dummy delay handlers
Not full test coverage, obviously, but at least let it compile until the
delay methods have been implemented.
6 years ago
Karl Palsson
4b3dda2968
tests: usb-gadget0: gitignore generated linker scripts
6 years ago