aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/adc/g4.rs
Commit message (Collapse)AuthorAgeFilesLines
* adc/g4: optimizexoviat2025-12-061-11/+10
|
* adc: type-erase regs instancexoviat2025-12-061-51/+49
|
* stm32/adc: add lifetime to AnyAdcChannel.Dario Nieuwenhuis2025-12-041-9/+9
|
* Merge branch 'main' into fix/adc-prescaler-calcxoviat2025-11-151-386/+403
|\
| * adc: move enable after configure_sequencexoviat2025-11-151-25/+25
| |
| * adc: fix g4 injected sequencexoviat2025-11-141-8/+15
| |
| * adc: extract prescalersxoviat2025-11-131-68/+14
| |
| * stm32: extract adc4xoviat2025-11-121-102/+104
| | | | | | | | extract adc4 into common adc system and add anyInstance trait to cover adc4 and not adc4
| * stm32/adc: extract into commonxoviat2025-11-121-316/+143
| | | | | | | | add common low-level interface for adc
| * adc: seal special channelsxoviat2025-11-111-16/+16
| |
| * adc: cleanup g4xoviat2025-11-111-77/+48
| |
| * adc: impl. differential channelsxoviat2025-11-111-26/+10
| |
| * adc: consolidate functionsxoviat2025-11-101-69/+56
| |
| * adc: use common vref schemexoviat2025-11-101-63/+22
| |
| * adc: remove sample_time from structxoviat2025-11-101-16/+6
| |
| * Rework how sequences ADC are specified. Update documentation in g4. ↵Jakob2025-11-071-104/+147
| | | | | | | | Carefully chose which methods to expose publicly
| * consume regular ringbufxoviat2025-11-051-17/+27
| |
| * Create raii wrapper for injected conversionsJakob2025-11-051-10/+75
| |
| * Move all injected methods to same palce in fileJakob2025-11-041-56/+60
| |
| * Implement into_ring_buffered for g4. Add methods for configuring injected ↵Jakob2025-11-041-8/+227
| | | | | | | | sampling for g4.
| * 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
* Removed reference to ADC3 for STM32G4x1 if the peripheral does not exist and ↵Wouter Geraedts2025-07-171-0/+2
| | | | added stm32g431kb to CI for testing
* Introduce traits for special channelsDion Dokter2025-07-101-25/+94
|
* Fix compile error in adc_read doc comment codeJakob2025-05-141-2/+2
|
* Logging: Make some things less chattyDion Dokter2025-04-251-1/+1
|
* remove Hz from logSteven Friedman2025-04-081-1/+1
|
* Frequency display is now consistentSteven Friedman2025-04-081-1/+1
|
* fix: stm32g4 calibration delayselagil2025-03-291-1/+5
|
* Remove Peripheral trait, rename PeripheralRef->Peri.Dario Nieuwenhuis2025-03-271-6/+5
|
* feat: calibrating Differential ADC for G4Ivan Li2025-01-071-0/+8
| | | | Signed-off-by: Ivan Li <[email protected]>
* chore: fix buildelagil2025-01-031-4/+4
|
* stm32 adc g4 async readIvan Li2024-11-231-10/+159
| | | | Signed-off-by: Ivan Li <[email protected]>
* delete unused "info!" and fmtChen Yuheng2024-07-111-8/+14
|
* Add oversampling and differential for g4Chen Yuheng2024-07-111-0/+60
|
* stm32 adc: introduce blocking_readAndres Vahter2024-07-031-1/+1
|
* 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-18/+9
|
* Bug: There are at most 18 channels for the ADC.Daniel Igaz2024-04-161-1/+1
|
* stm32/adc: update g4 for new pac.Dario Nieuwenhuis2024-04-141-0/+304