Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thirdpin/libopencm3.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-09-21Merge remote-tracking branch 'upstream/master'D. Lisin
# Conflicts: # lib/stm32/f2/Makefile # lib/stm32/f4/Makefile
2019-07-06doc: stm32: adc: upgrade common_v2 documentationGuillaume Revaillot
add register grouping, fixup comment have them pickedup by doxygen, align style and masks.
2019-07-05stm32: lptim: add base supportGuillaume Revaillot
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-05stm32: extract l0 lptimer stuff from timer.h to common lptimer.hGuillaume Revaillot
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-06-17stm32: dma: add dma_set_channel_request to ease dma cselr usage.Guillaume Revaillot
2019-06-17stm32: dma: cselr: factorize register definition.Guillaume Revaillot
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-16doc: stm32: timer: remove redundant groupings and consistent namesKarl Palsson
2019-06-13doc: fix trivial missing trailers or typosKarl Palsson
2019-06-13doc: stm32: exti-v1: fix conditionals, add registersKarl Palsson
Fixes some missing definitions. cond/endcond is hard to get right sometimes!
2019-06-13doc:stm32: usart: fix grouping and heirarchy of base addrsKarl Palsson
They were always landing on the top level, or not even present.
2019-06-13doc: stm32: crc-v2 fix up markup for doxygenKarl Palsson
Eliminates errors, fixes groupings, adds missing groupings.
2019-05-20stm32f4-7: dma2d: fixed wrong color definition and added missing oneOliver Meier
2019-05-20stm32f7: enable existing dma2d headersOliver Meier
2019-05-20stm32f7: fixed typos in dsi header definitionsOliver Meier
2019-05-20stm32f7: enable existing dsi supportOliver Meier
2019-05-20stm32f7: enable existing ltdcOliver Meier
This uses the existing f4 code as a new shared common base code.
2019-05-20stm32f7: enable fsmcOliver Meier
This uses the existing f4 code as a new shared common base code.
2019-05-11stm32: adc-v1m: extract some portions back to f4/f7.Karl Palsson
While this appears to be a backward change, this moves the _register_ definitions (their addresses) and the actually specific to f4/f7 numbering back into the explicit headers. Potentially this could be pulled out again, but it's not much code. This then allows the stm32l1 to use all the rest of this code, with the differences really being just the addresses of the registers.
2019-05-11stm32: adc-v1m: drop lots of noisy useless defines.Karl Palsson
Never seen any reason for these noisy verbose defines. They're not helpful, and we've never needed them for doing sequence setting code anyway. Just drop them.
2019-05-11stm32: adc-v1m: tightenup definitionsKarl Palsson
Use the masks and shifts defined. common style.
2019-05-11stm32: adc: fix f4/f7 temperature sensor channel defines.Karl Palsson
Lots of common stuff, but the F7 fixed the temperature sensor randomness that the f4 had. Separate the definitions properly.
2019-05-11stm32: adc-v1m: fix include guardKarl Palsson
2019-05-09Renamed adc_common_v3 to adc_common_v1_multiMatthew Lai
2019-05-09Added F7 ADC support (almost the same as F4)Matthew Lai
2019-05-09stm32: dac: move DAC_SR to common.Karl Palsson
It's available on f0, f2, f3, f4, f7, l0, l1 and l4. Just note that it's not available on f1.
2019-04-05stm32f7: Include i2c_common_v2Ross Schlaikjer
With the addition of a define for I2C4, the existing common i2c functions seem to work out of the box on the F7 (tested on an STM32F750).
2019-01-31stm32: exti: define AFIO/SYSCFG_EXTICR_FIELDSIZE for all chip.Guillaume Revaillot
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)
2019-01-31stm32l[01]: flash common: add flash_unlock_acr, allowing to unlock FLASH_ACR ↵Guillaume Revaillot
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.
2019-01-18stm32: exti: move register definition of all current stm32 devices to common_v1Guillaume Revaillot
Preparation for stm32g0 support, as this chip's exti register map evolved and is no longer common ...
2019-01-18stm32: rtc: Fixed typo in macro def (RTC_DR_MT_MASK)Harold Tay
2018-11-06fixup! stm32f09: add register definitions for DMA2Alfred Klomp
2018-11-06stm32f09: add register definitions for DMA2Alfred Klomp
2018-10-24stm32: spi-v2: Frame format is available for all.Karl Palsson
All spi v2 peripherals include the Motorola/TI Frame formatting options introduced with F2.
2018-10-20stm32: adc common v2: add circular dma modemfm
Tested only on the F3 so far.
2018-10-06stm32: timer_common: add timer21-22, found on stm32l0 chips.Guillaume Revaillot
stm32l0 devices have tim21 and tim22.
2018-10-01Problem with SDIO fixedLisin Dmitriy
2018-09-28Merge remote-tracking branch 'original_libopencm3/master'Lisin Dmitriy
# Conflicts: # Makefile # include/libopencm3/stm32/common/timer_common_all.h # include/libopencm3/stm32/sdio.h # include/libopencm3/usb/usbstd.h # lib/stm32/f1/Makefile # lib/stm32/f2/Makefile # lib/stm32/f4/Makefile # lib/usb/usb_f107.c # lib/usb/usb_msc.c
2018-09-15stm32: f24: dma: clarify stream/channelKarl Palsson
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.
2018-08-29stm32: adc: Add functions to get and clear flagsClara Casas
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.
2018-08-29stm32: add dma_get_number_of_dataDaniel Gröber
Original discussion at: https://github.com/libopencm3/libopencm3/pull/702
2018-08-17stm32: support i2c3 properlyKarl Palsson
I2C3 is on many parts, but wasn't properly supported with the register definitions. Declare them centrally, just depending on the memorymap defining them. On some parts, the rcc bits were defined, but not the base registers. Fixes: https://github.com/libopencm3/libopencm3/issues/820
2018-07-29stm32: f247: flash: use common code.Karl Palsson
This shows what is _actually_ different for f7. A couple of option bits, and a renaming of bit 7 of the status register, from Program Sequence Error to Erase Sequence Error. We keep the separate implementation of wait_for_last_operation, to meet the "suggestions" of the reference manual to insert a DSB instruction. Keeping the renamed bit/functions also requires us to keep separate implementations of the flag clearing functions
2018-07-29stm32: flash: drop common_f234Karl Palsson
Move the last few register defines back to their relevant headers, add doxygen and groups. While these registers _were_ "common" they were the _only_ common things, so it's simpler for future work (merging f7 with f2/4) to move them back separately.
2018-07-29stm32: flash: extract wait_for_last_operation to top levelKarl Palsson
This then eliminates the misguided attempts at merging f2/4 and f3 flash support. Some headers remain.
2018-07-29stm32: flash: move clear all status flags to single common headerKarl Palsson
We've got a "f" flash file for common apis now, use it.
2018-07-29stm32f3: flash: pgerr is not the same as pgperrKarl Palsson
F3's flash interface is actually quite different, don't try and force sharing code that isn't really related. The "PGERR" is a very different bit than the parallelism error that f2/4/7 have.
2018-07-29stm32: flash_unlock_option_bytes is common code.Karl Palsson
The keys differ between some familes, but the documentation and implementation are standard.
2018-07-29stm32l: flash: rename option unlock keys or consistencyKarl Palsson
Paves the way for using common code.
2018-07-29stm32: flash: pull out i/d cache support.Karl Palsson
Copied a few times.
2018-07-29stm32: flash: pull set_ws up to common codeKarl Palsson
All that changes is the size of the field.