aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/adc/v2.rs
Commit message (Collapse)AuthorAgeFilesLines
* adc: type-erase regs instancexoviat2025-12-061-31/+27
|
* Make adc v2 resolution publicchemicstry2025-12-061-1/+1
|
* adc: fix start sequence for blocking_readxoviat2025-11-211-8/+9
|
* Update ADC clock frequency constant usagexoviat2025-11-151-1/+1
|
* Fix variable name for frequency in ADC prescalerxoviat2025-11-151-1/+1
|
* Merge branch 'main' into fix/adc-prescaler-calcxoviat2025-11-151-115/+171
|\
| * adc: extract v2 psc.xoviat2025-11-131-34/+17
| |
| * stm32: extract adc4xoviat2025-11-121-30/+36
| | | | | | | | extract adc4 into common adc system and add anyInstance trait to cover adc4 and not adc4
| * stm32/adc: extract into commonxoviat2025-11-121-136/+97
| | | | | | | | add common low-level interface for adc
| * adc: seal special channelsxoviat2025-11-111-4/+4
| |
| * adc: consolidate functionsxoviat2025-11-101-83/+81
| |
| * adc: use common vref schemexoviat2025-11-101-30/+17
| |
| * adc: remove sample_time from structxoviat2025-11-101-12/+5
| |
| * stm32/adc: reorder and unifyxoviat2025-11-031-18/+84
| |
| * unify ringbuffered versionsxoviat2025-11-031-2/+2
| |
| * stm32/adc: cleanup and simplifyxoviat2025-11-031-93/+14
| |
| * stm32/adc: update v2 iface to match v3xoviat2025-11-031-2/+143
| |
| * Rustfmt for edition 2024.Dario Nieuwenhuis2025-10-061-1/+1
| |
* | 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
* Remove Peripheral trait, rename PeripheralRef->Peri.Dario Nieuwenhuis2025-03-271-5/+2
|
* stm32 adc: introduce blocking_readAndres Vahter2024-07-031-1/+1
|
* new PR, taking Dirbao's advice to make the DMA impl in a separate struct ↵seth2024-06-241-0/+3
| | | | that consumes Adc<T> to make RingBufferedAdc<T>. Handling overrun similar to RingBufferedUart
* Emit cargo:rustc-check-cfg instructions from build.rsJan Špaček2024-05-301-1/+1
|
* stm32/rcc: replace generated enable/disable code with runtime infoJan Špaček2024-05-251-3/+3
|
* 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-10/+10
|
* stm32 adc: use fn blocking_delay_us(us: u32)Andres Vahter2024-04-101-4/+2
|
* stm32 adc: remove DelayNsAndres Vahter2024-04-101-6/+5
|
* stm32: use embedded_hal_1::delay::DelayNsAndres Vahter2024-04-091-2/+2
| | | | This makes delay compatible with https://lib.rs/crates/rtic-monotonics.
* stm32: use private_bounds for sealed traits.Dario Nieuwenhuis2024-03-231-3/+3
|
* stm32/adc: reexport enums from PAC to avoid boilerplate hell.Dario Nieuwenhuis2024-02-261-1/+1
|
* Fix ADC max frequency for F2Joonas Javanainen2024-02-011-0/+4
|
* Fix F2 temperature sensor ADC channelJoonas Javanainen2024-02-011-1/+1
| | | | | On all F2 devices (F205/207/215/217) the sensor is connected to ADC1_IN16, and is not shared with VBAT which is connected to ADC1_IN18.
* stm32: update metapac.Dario Nieuwenhuis2024-01-031-3/+3
|
* enable clock firstpbert2023-10-121-1/+1
|
* STM32: combine RccPeripherals reset() and enable() to reset_and_enable()pbert2023-10-121-2/+1
|
* stm32/adc: cleanup f1, f3, v1, and v2xoviat2023-09-271-23/+13
|
* update metapacxoviat2023-09-141-3/+3
|
* stm32: add g4 adc345 and misc.xoviat2023-09-111-1/+1
|
* 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-51/+36
|
* Refactor: Use `PeripheralRef`Grant Miller2022-10-261-5/+3
|
* Refactor: Factor out `Adc` struct declarationGrant Miller2022-10-261-6/+1
|
* Set resolution directlyGrant Miller2022-10-261-4/+3
|
* Refactor: Impl `From` for `SampleTime` and `Resolution`Grant Miller2022-10-261-7/+4
|
* Refactor: Factor out `Resolution`Grant Miller2022-10-261-34/+1
|
* Refactor: Factor out `SampleTime`Grant Miller2022-10-261-37/+1
|
* stm32/adc: Remove voltage and temperature conversionsGrant Miller2022-10-241-23/+0
|