Dario Nieuwenhuis
c739091085
Update stm32-metapac.
2024-09-11 01:19:46 +02:00
Dario Nieuwenhuis
1ea29f1d2e
Merge pull request #3169 from Adancurusul/g4_dev
...
Add adc oversampling and adc differential for g4
2024-09-10 23:07:11 +00:00
Dario Nieuwenhuis
8884766450
stm32: update metapac
2024-08-17 21:57:40 +02:00
Dion Dokter
ab4d378dda
Merge branch 'master' into stm-dualcore
2024-08-05 11:21:21 +02:00
Dario Nieuwenhuis
2d678d6956
Update to Rust 1.80, make check-cfg unconditional.
2024-07-25 15:53:00 +02:00
Chen Yuheng
fd5501d455
delete unused "info!" and fmt
2024-07-11 15:34:34 +08:00
Chen Yuheng
f01ffbcc12
Add oversampling and differential for g4
2024-07-11 10:33:43 +08:00
Dion Dokter
6db0daf79b
Fix errors
2024-07-09 09:53:01 +02:00
Andres Vahter
f851081e09
stm32 adc: introduce blocking_read
2024-07-03 15:20:31 +03:00
Ulf Lilleengen
914d7c7919
Merge pull request #3128 from andresv/stm32-adc-dma-v3
...
STM32 ADC v3 and V4 DMA support
2024-07-03 08:13:26 +00:00
Ulf Lilleengen
ef78e3283b
Merge pull request #3143 from andresv/stm32-ringbuffered-adc-docs
...
stm32 ringbuffered adc docs
2024-07-03 07:33:10 +00:00
Ulf Lilleengen
b6f76b5ab2
Merge pull request #3110 from liarokapisv/adc_v4_averaging
...
stm32 - Adc v4 - Add averaging support.
2024-07-03 07:22:34 +00:00
Ulf Lilleengen
3e70601fc7
Merge pull request #3124 from Adancurusul/dev
...
Add adc oversampling support
2024-07-03 07:22:03 +00:00
Andres Vahter
d4ff7616f9
stm32 ringbuffered adc docs improvements
2024-07-02 17:35:15 +03:00
Andres Vahter
a4e62314af
stm32: adc v3: fix for newest pac
2024-07-02 17:15:22 +03:00
Andres Vahter
c120efad5b
stm32 adc read_async: add asserts for buf len
2024-07-02 17:07:18 +03:00
Andres Vahter
5e2fd8623a
stm32 adc v3 read_async
2024-07-02 17:07:18 +03:00
Alexandros Liarokapis
02b096915f
add asynchrous sequence read support to adc v4
2024-07-02 17:07:18 +03:00
Andres Vahter
dd69efe708
stm32 ringbuffered adc: add buf size assert
2024-07-02 16:56:19 +03:00
Andres Vahter
b88e1a5d71
stm32 ringbuffered adc docs
2024-07-02 16:53:49 +03:00
Andres Vahter
1f30ad595b
stm32 ringbuffered adc: fix for metapac changes
2024-07-02 09:21:27 +03:00
seth
27652798c7
fix typo, add spaces after //
2024-07-01 06:44:47 -07:00
Chen Yuheng
a0799bf270
Add adc oversampling support
2024-06-27 17:04:26 +08:00
seth
7056783fa2
second adc added to example + API todos completed
2024-06-24 17:53:59 -07:00
seth
f64dd8228b
new PR, taking Dirbao's advice to make the DMA impl in a separate struct that consumes Adc<T> to make RingBufferedAdc<T>. Handling overrun similar to RingBufferedUart
2024-06-24 17:09:43 -07:00
Alexandros Liarokapis
3883a5b2de
Enables adc v4 averaging support.
...
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.
2024-06-23 12:43:24 +03:00
Jan Špaček
368893c9cb
Emit cargo:rustc-check-cfg instructions from build.rs
2024-05-30 18:28:29 +02:00
Jan Špaček
081afca3f0
stm32/rcc: replace generated enable/disable code with runtime info
2024-05-25 18:44:55 +02:00
Univa
4e9206efb8
remove InternalChannel and AdcPin
2024-05-22 19:00:48 -04:00
Univa
41e11d86b9
make AdcChannel required for InternalChannel
2024-05-21 19:08:01 -04:00
Univa
ddbb6c8c31
add back InternalChannel and implement it where its missing
2024-05-21 19:03:14 -04:00
Univa
7cdbae2a5d
add AnyAdcChannel
2024-05-20 21:29:20 -04:00
Dario Nieuwenhuis
a14319f51e
stm32: allow some unused.
2024-05-13 00:00:36 +02:00
Dario Nieuwenhuis
6f44d7a9df
stm32: update metapac. Adds U5 LPDMA, fixes ADC_COMMONs.
2024-04-29 20:52:27 +02:00
Dario Nieuwenhuis
bab4affe7c
Merge pull request #2813 from diondokter/u0-dion
...
More U0 support
2024-04-16 18:45:09 +00:00
Daniel Igaz
32b1b4067f
Bug: There are at most 18 channels for the ADC.
2024-04-16 20:27:12 +02:00
Torin Cooper-Bennun
d928663bae
stm32: adc: fix blocking_delay_us() overflowing when sys freq is high
...
e.g. H503 running at 250 MHz resulted in an upper bound of 17 us here.
casting up to u64 for intermediate calc allows the upper bound to be
increased by a factor of 1e6
2024-04-16 15:13:31 +01:00
Dario Nieuwenhuis
4079a8acf8
stm32/adc: update g4 for new pac.
2024-04-14 22:06:41 +02:00
Dion Dokter
b659e3d529
Add ADC
2024-04-14 00:04:13 +02:00
Dario Nieuwenhuis
52bd24499c
stm32/adc: update g4 for new pac.
2024-04-13 03:34:28 +02:00
Andres Vahter
6e24dc58c6
stm32 adc: use fn blocking_delay_us(us: u32)
2024-04-10 22:23:49 +03:00
Andres Vahter
68b1a840c6
stm32 adc: remove DelayNs
2024-04-10 10:33:15 +03:00
Andres Vahter
fd802ffdfd
stm32: use embedded_hal_1::delay::DelayNs
...
This makes delay compatible with https://lib.rs/crates/rtic-monotonics .
2024-04-09 22:32:09 +03:00
Torin Cooper-Bennun
c953b9045b
stm32: adc: v3: [h5] set OR.OP0 to 1 when ADCx_INP0 is selected, per RM
2024-04-05 13:00:33 +01:00
Dario Nieuwenhuis
2bca875b5f
stm32: use private_bounds for sealed traits.
2024-03-23 01:38:51 +01:00
Dario Nieuwenhuis
72c6f9a101
stm32/adc: reexport enums from PAC to avoid boilerplate hell.
2024-02-26 03:02:58 +01:00
Torin Cooper-Bennun
5d2ccc8fa7
adc: basic H5 support
2024-02-22 15:50:13 +00:00
shufps
34c71b58cf
made adc example working with default clock configuration and switched in v1 to PCLK/2 per default
2024-02-08 11:28:53 +01:00
shufps
dabe48c3bd
fmt
2024-02-08 11:15:28 +01:00
shufps
8d0a9bbefb
clippy
2024-02-08 11:14:14 +01:00