aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/adc/adc4.rs
Commit message (Collapse)AuthorAgeFilesLines
* stm32: fix misc. adc4 issuesxoviat2025-12-121-16/+5
|
* adc: type-erase regs instancexoviat2025-12-061-115/+92
|
* adc: fix start sequence for blocking_readxoviat2025-11-211-23/+12
|
* stm32: Fixed ADC4 enable() for WBAGerzain Mata2025-11-201-1/+17
|
* Merge branch 'main' into fix/adc-prescaler-calcxoviat2025-11-151-325/+167
|\
| * remove allow dead_codexoviat2025-11-131-0/+1
| |
| * adc: extract prescalersxoviat2025-11-131-68/+14
| |
| * stm32: extract adc4xoviat2025-11-121-184/+128
| | | | | | | | extract adc4 into common adc system and add anyInstance trait to cover adc4 and not adc4
| * stm32/adc: extract into commonxoviat2025-11-121-77/+33
| | | | | | | | add common low-level interface for adc
| * adc: remove sample_time from structxoviat2025-11-101-13/+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/+3
|
* Adds ADC4 for WBApurepani2025-06-301-0/+542