aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/adc/v4.rs
Commit message (Collapse)AuthorAgeFilesLines
* stm32: fix misc. adc4 issuesxoviat2025-12-121-3/+5
|
* adc: type-erase regs instancexoviat2025-12-061-41/+35
|
* Merge branch 'main' into fix/adc-prescaler-calcxoviat2025-11-151-365/+197
|\
| * remove allow dead_codexoviat2025-11-131-0/+1
| |
| * adc: extract prescalersxoviat2025-11-131-68/+14
| |
| * extract averaging enumxoviat2025-11-131-18/+1
| |
| * stm32: extract adc4xoviat2025-11-121-107/+113
| | | | | | | | extract adc4 into common adc system and add anyInstance trait to cover adc4 and not adc4
| * stm32/adc: extract into commonxoviat2025-11-121-205/+122
| | | | | | | | add common low-level interface for adc
| * adc: seal special channelsxoviat2025-11-111-8/+8
| |
| * adc: use common vref schemexoviat2025-11-101-36/+25
| |
| * adc: remove sample_time from structxoviat2025-11-101-18/+5
| |
| * Rustfmt for edition 2024.Dario Nieuwenhuis2025-10-061-3/+6
| |
* | stm32: Add raw_prescaler function to make it more reusable.Piotr Esden-Tempski2025-10-051-2/+1
| | | | | | | | | | This also puts the explanation why the calculation has to be done that way into one place so it does not need to be copied all over the codebase.
* | stm32/ADC: Fix prescaler calculation to include max frequency.Piotr Esden-Tempski2025-10-051-1/+2
|/ | | | | | | | | | Due to the integer rounding rules one has to subtract 1 from the numerator. For example: Let max clock be 55 and supplied clock be 110 110/55 = 2 which results in the divider being set to 4 and the clock after division ends up being 27 instead of 55 Subtracting 1 to the numerator get around the rounding issue 109/55 = 1 which results in the divider being set to 2 and the clock after division ends up being 55 which is exactly max clock
* derive Debug and Format for Averagingdimi2025-09-151-1/+2
|
* derive Copy, Clone for adc config enumsdimi2025-07-221-0/+1
|
* Fix compile error in adc_read doc comment codeJakob2025-05-141-2/+2
|
* Fix set_ovsr typo, ramp up to latest stm32-data-generatedThomas Giesel2025-04-261-1/+1
| | | | This is an adaption to https://github.com/embassy-rs/stm32-data/pull/597
* remove Hz from logSteven Friedman2025-04-081-1/+1
|
* Frequency display is now consistentSteven Friedman2025-04-081-1/+1
|
* Remove Peripheral trait, rename PeripheralRef->Peri.Dario Nieuwenhuis2025-03-271-6/+5
|
* chore: fix buildelagil2025-01-031-3/+3
|
* fix formattingklownfish2024-12-311-7/+3
|
* fix adc for u5klownfish2024-12-181-1/+1
|
* resuse adc v4 for u5klownfish2024-09-251-1/+18
|
* stm32 adc: introduce blocking_readAndres Vahter2024-07-031-3/+27
|
* Merge pull request #3128 from andresv/stm32-adc-dma-v3Ulf Lilleengen2024-07-031-13/+128
|\ | | | | | | STM32 ADC v3 and V4 DMA support
| * stm32: adc v3: fix for newest pacAndres Vahter2024-07-021-2/+1
| |
| * stm32 adc read_async: add asserts for buf lenAndres Vahter2024-07-021-3/+6
| |
| * add asynchrous sequence read support to adc v4Alexandros Liarokapis2024-07-021-12/+125
| |
* | Enables adc v4 averaging support.Alexandros Liarokapis2024-06-231-0/+38
|/ | | | | | | | The Adc v4 peripheral includes a hardware oversampler. This PR adds an averaging interface that keeps most of the current interface backwards compatible while allowing for the common use-case of hardware-averaging. A more comprehensive oversampler interface may be exposed in the future.
* stm32/rcc: replace generated enable/disable code with runtime infoJan Špaček2024-05-251-2/+2
|
* remove InternalChannel and AdcPinUniva2024-05-221-7/+1
|
* add back InternalChannel and implement it where its missingUniva2024-05-211-1/+7
|
* add AnyAdcChannelUniva2024-05-201-19/+10
|
* stm32 adc: use fn blocking_delay_us(us: u32)Andres Vahter2024-04-101-9/+3
|
* stm32 adc: remove DelayNsAndres Vahter2024-04-101-6/+11
|
* stm32: use embedded_hal_1::delay::DelayNsAndres Vahter2024-04-091-3/+3
| | | | This makes delay compatible with https://lib.rs/crates/rtic-monotonics.
* stm32: use private_bounds for sealed traits.Dario Nieuwenhuis2024-03-231-4/+4
|
* stm32/adc: reexport enums from PAC to avoid boilerplate hell.Dario Nieuwenhuis2024-02-261-1/+1
|
* stm32: add some docs.Dario Nieuwenhuis2023-12-181-0/+11
|
* enable clock firstpbert2023-10-121-1/+1
|
* STM32: combine RccPeripherals reset() and enable() to reset_and_enable()pbert2023-10-121-2/+1
|
* stm32: remove paste and use refcount staticsxoviat2023-09-051-74/+0
|
* stm32: fix merge issuesxoviat2023-09-051-6/+6
|
* initial support for STM32G4 ADCDaehyeok Mun2023-09-041-106/+87
|
* Rename embassy-hal-common to embassy-hal-internal, document it's for ↵Dario Nieuwenhuis2023-07-281-1/+1
| | | | internal use only. (#1700)
* stm32: update stm32-metapac.Dario Nieuwenhuis2023-06-191-99/+73
|
* Remove unnecessary use of atomic-polyfill.Dario Nieuwenhuis2022-12-231-1/+2
| | | | Only use it when CAS is actually needed.
* Refactor: Use `PeripheralRef`Grant Miller2022-10-261-5/+3
|