aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/adc/c0.rs
Commit message (Collapse)AuthorAgeFilesLines
* adc: type-erase regs instancexoviat2025-12-061-33/+31
|
* Merge branch 'main' into fix/adc-prescaler-calcxoviat2025-11-151-374/+163
|\
| * adc: fix c0 algorithmxoviat2025-11-131-69/+53
| |
| * stm32: extract block_for_usxoviat2025-11-131-1/+1
| | | | | | | | remove from pub api
| * adc: extract c0xoviat2025-11-131-323/+165
| |
| * extract averaging enumxoviat2025-11-131-19/+0
| |
| * adc: seal special channelsxoviat2025-11-111-2/+2
| |
| * adc: use common vref schemexoviat2025-11-101-24/+8
| |
| * adc: remove sample_time from structxoviat2025-11-101-10/+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-1/+2
|
* 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
|
* Added ADC support for STM32C0.Timofei Korostelev2025-03-201-0/+468